-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# DEB repository server | ||
|
||
| | repo-deb01.osuosl.theforeman.org | | ||
| - | - | | ||
| type | OpenStack VM | | ||
| OS | CentOS Stream 9 | | ||
| CPUs | 2 | | ||
| RAM | 4GB | | ||
| Storage | /dev/sda (30GB): root, /dev/sdb (150GB): data (LVM) | | ||
| Managed by | [deb.pp](https://github.com/theforeman/foreman-infra/blob/master/puppet/modules/profiles/manifests/repo/deb.pp) | | ||
|
||
## Domains | ||
|
||
These domains are all hosted on the server. | ||
|
||
* deb.theforeman.org | ||
* stagingdeb.theforeman.org | ||
* archivedeb.theforeman.org | ||
|
||
### Fastly CDN | ||
|
||
A Fastly CDN exists that sits in front of: | ||
|
||
* deb.theforeman.org | ||
* stagingdeb.theforeman.org | ||
* archivedeb.theforeman.org | ||
|
||
For these, the server acts as a backend while the content is served from the Fastly CDN to users. | ||
|
||
#### Configuration | ||
|
||
The Fastly configuration happens through the `ansible/fastly.yml` Ansible playbook in this repository. | ||
|
||
The major points of the configuration are: | ||
|
||
* Set the backend to `<vhost>-backend.repo-deb01.osuosl.theforeman.org` | ||
* Enable shielding: a central system fetches the assets and then distributes them across the CDN instead of each CDN node fetches them itself, this costs more CDN traffic, but is usually faster | ||
* Configure a health-check and serve stale content when it fails | ||
|
||
#### TLS | ||
|
||
Fastly provides a shared certificate which has `theforeman.org` and `*.theforeman.org` as DNSAltName. | ||
|
||
This certificate is signed by GlobalSign and we have a `_globalsign-domain-verification` TXT record in the `theforeman.org` DNS zone for verification of ownership. | ||
|
||
#### DNS | ||
|
||
Each vhost has a CNAME pointing at `dualstack.p2.shared.global.fastly.net` which is the Fastly global, dualstack loadbalancer. | ||
|
||
Alternatively one can use `p2.shared.global.fastly.net` for an IPv4-only setup. | ||
|
||
## Volumes | ||
|
||
/var/www is mounted on a separate 140GB block device. /var/www/freight* contain the staging areas for freight (deb), and /var/www/vhosts contain the web roots themselves. | ||
|
||
## Firewall | ||
|
||
There is no firewall on the machine itself. OpenStack has the following ports open: | ||
|
||
* 22/tcp (SSH) | ||
* 80/tcp (HTTP) | ||
* 443/tcp (HTTPS) | ||
|
||
## Other | ||
|
||
* freight and freightstage users have private auto-signing GPG key imported manually (non-puppetized) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# RPM repository server | ||
|
||
| | repo-rpm01.osuosl.theforeman.org | | ||
| - | - | | ||
| type | OpenStack VM | | ||
| OS | CentOS Stream 9 | | ||
| CPUs | 2 | | ||
| RAM | 4GB | | ||
| Storage | /dev/sda (30GB): root, /dev/sdb (100GB): data (LVM) | | ||
| Managed by | [rpm.pp](https://github.com/theforeman/foreman-infra/blob/master/puppet/modules/profiles/manifests/repo/rpm.pp) | | ||
|
||
## Domains | ||
|
||
These domains are all hosted on the server. | ||
|
||
* rpm.theforeman.org | ||
* stagingrpm.theforeman.org | ||
|
||
### Fastly CDN | ||
|
||
A Fastly CDN exists that sits in front of: | ||
|
||
* rpm.theforeman.org | ||
* stagingrpm.theforeman.org | ||
|
||
For these, the server acts as a backend while the content is served from the Fastly CDN to users. | ||
|
||
#### Configuration | ||
|
||
The Fastly configuration happens through the `ansible/fastly.yml` Ansible playbook in this repository. | ||
|
||
The major points of the configuration are: | ||
|
||
* Set the backend to `<vhost>-backend.repo-rpm01.osuosl.theforeman.org` | ||
* Enable shielding: a central system fetches the assets and then distributes them across the CDN instead of each CDN node fetches them itself, this costs more CDN traffic, but is usually faster | ||
* Configure a health-check and serve stale content when it fails | ||
|
||
#### TLS | ||
|
||
Fastly provides a shared certificate which has `theforeman.org` and `*.theforeman.org` as DNSAltName. | ||
|
||
This certificate is signed by GlobalSign and we have a `_globalsign-domain-verification` TXT record in the `theforeman.org` DNS zone for verification of ownership. | ||
|
||
#### DNS | ||
|
||
Each vhost has a CNAME pointing at `dualstack.p2.shared.global.fastly.net` which is the Fastly global, dualstack loadbalancer. | ||
|
||
Alternatively one can use `p2.shared.global.fastly.net` for an IPv4-only setup. | ||
|
||
## Volumes | ||
|
||
/var/www is mounted on a separate 140GB block device. /var/www/vhosts contain the web roots themselves. | ||
|
||
## Firewall | ||
|
||
There is no firewall on the machine itself. OpenStack has the following ports open: | ||
|
||
* 22/tcp (SSH) | ||
* 80/tcp (HTTP) | ||
* 443/tcp (HTTPS) |