Skip to content

Commit 722d98c

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/docs/pulp-fixes' into docs/pulp-fixes
2 parents fc2581f + 3694731 commit 722d98c

File tree

1 file changed

+53
-54
lines changed

1 file changed

+53
-54
lines changed

docs/experimental/pulp.md

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -21,65 +21,64 @@ reachable.
2121
> Commands below should be run with the `staging` environment active, as all
2222
> Pulp syncs will be done from there.
2323
24-
1. Define the host in a group `pulp_server` within the `site` inventory. This
25-
means clusters in all environments use the same Pulp server, and the synced
26-
DNF repository snapshots are tested in staging before use in production. E.g.:
27-
28-
```ini
29-
# environments/site/inventory/pulp:
30-
[pulp_server]
31-
pulp_host ansible_host=<VM-ip-address>
32-
```
24+
1. Define the host in a group `pulp_server` within the `site` inventory. This
25+
means clusters in all environments use the same Pulp server, and the synced
26+
DNF repository snapshots are tested in staging before use in production. E.g.:
27+
28+
```ini
29+
# environments/site/inventory/pulp:
30+
[pulp_server]
31+
pulp_host ansible_host=<VM-ip-address>
32+
```
3333

34-
> [!WARNING]
35-
> The inventory hostname cannot conflict with group names, i.e it cannot be
36-
`pulp_site` or `pulp_server`.
34+
**NB:** The inventory hostname must not conflict with group names, i.e. it
35+
cannot be `pulp_site` or `pulp_server`.
3736

38-
2. If adding Pulp to an existing deployment, ensure Pulp admin credentials
39-
exist:
37+
2. If adding Pulp to an existing deployment, ensure Pulp admin credentials
38+
exist:
4039

4140
```shell
42-
ansible-vault decrypt environments/staging/inventory/group_vars/all/secrets.yml
41+
ansible-vault decrypt ansible/adhoc/generate-passwords.yml
4342
ansible-playbook ansible/adhoc/generate-passwords.yml
44-
ansible-vault encrypt environments/staging/inventory/group_vars/all/secrets.yml
43+
ansible-vault encrypt ansible/adhoc/generate-passwords.yml
4544
```
4645

47-
3. Run the adhoc playbook to install and configure Pulp:
46+
3. Run the adhoc playbook to install and configure Pulp:
4847

49-
```shell
50-
ansible-playbook ansible/adhoc/deploy-pulp.yml
51-
```
48+
```shell
49+
ansible-playbook ansible/adhoc/deploy-pulp.yml
50+
```
5251

53-
Once complete, it will print a message giving a value to set for
54-
`appliances_pulp_url`, assuming the inventory `ansible_host` address is
55-
also the address the cluster should use to reach the Pulp server.
52+
Once complete, it will print a message giving a value to set for
53+
`appliances_pulp_url`, assuming the inventory `ansible_host` address is
54+
also the address the cluster should use to reach the Pulp server.
5655

57-
4. Create group vars files defining `appliances_pulp_url` and dev credentials
58-
for StackHPC's "Ark" Pulp server:
56+
4. Create group vars files defining `appliances_pulp_url` and dev credentials
57+
for StackHPC's "Ark" Pulp server:
5958
60-
```yaml
61-
# environments/site/inventory/group_vars/all/pulp.yml:
62-
appliances_pulp_url: "http://<pulp-host-ip>:8080"
63-
pulp_site_upstream_username: your-ark-username
64-
pulp_site_upstream_password: "{{ vault_pulp_site_upstream_password }}"
65-
```
59+
```yaml
60+
# environments/site/inventory/group_vars/all/pulp.yml:
61+
appliances_pulp_url: "http://<pulp-host-ip>:8080"
62+
pulp_site_upstream_username: your-ark-username
63+
pulp_site_upstream_password: "{{ vault_pulp_site_upstream_password }}"
64+
```
6665
67-
```yaml
68-
# environments/site/inventory/group_vars/all/vault_pulp.yml:
69-
vault_pulp_site_upstream_password: your-ark-password
70-
```
66+
```yaml
67+
# environments/site/inventory/group_vars/all/vault_pulp.yml:
68+
vault_pulp_site_upstream_password: your-ark-password
69+
```
7170
72-
and vault-encrypt the latter:
71+
and vault-encrypt the latter:
7372
74-
```shell
75-
ansible-vault encrypt environments/site/inventory/group_vars/all/vault_pulp.yml
76-
```
77-
78-
If previously using Ark credentials directly e.g. for image builds, ensure
79-
the variables `dnf_repos_username` and `dnf_repos_password` are no longer
80-
set in any environment.
73+
```shell
74+
ansible-vault encrypt environments/site/inventory/group_vars/all/vault_pulp.yml
75+
```
76+
77+
If previously using Ark credentials directly e.g. for image builds, ensure
78+
the variables `dnf_repos_username` and `dnf_repos_password` are no longer
79+
set in any environment.
8180
82-
5. Commit changes.
81+
5. Commit changes.
8382
8483
## Using an existing Pulp server
8584
@@ -93,17 +92,17 @@ As above, the `dnf_repos_` variables must not be set in this configuration.
9392
The appliance can synchronise repositories on local Pulp server from Ark in
9493
two ways:
9594
96-
1. If the `pulp_site` group is added to the Packer build groups, the local Pulp
97-
server will be synced with Ark during image builds.
95+
1. If the `pulp_site` group is added to the Packer build groups, the local Pulp
96+
server will be synced with Ark during image builds.
9897
9998
2. The sync can be manually be triggered by running:
10099
101-
```shell
102-
ansible-playbook ansible/adhoc/sync-pulp.yml
103-
```
100+
```shell
101+
ansible-playbook ansible/adhoc/sync-pulp.yml
102+
```
104103
105-
By default this method syncs repositories for the latest version of RockyLinux
106-
supported by the appliance. This can be overridden by setting
107-
`pulp_site_target_distribution_version` to e.g. `'8.10'`, i.e the `Major.minor`
108-
version of RockyLinux the site clusters are using. **NB:** This value
109-
must be quoted to avoid an incorrect conversion to float.
104+
By default this method syncs repositories for the latest version of RockyLinux
105+
supported by the appliance. This can be overridden by setting
106+
`pulp_site_target_distribution_version` to e.g. `'8.10'`, i.e the `Major.minor`
107+
version of RockyLinux the site clusters are using. **NB:** This value
108+
must be quoted to avoid an incorrect conversion to float.

0 commit comments

Comments
 (0)