@@ -21,65 +21,64 @@ reachable.
21
21
> Commands below should be run with the ` staging ` environment active, as all
22
22
> Pulp syncs will be done from there.
23
23
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
+ ```
33
33
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 ` .
37
36
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:
40
39
41
40
``` shell
42
- ansible-vault decrypt environments/staging/inventory/group_vars/all/secrets .yml
41
+ ansible-vault decrypt ansible/adhoc/generate-passwords .yml
43
42
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
45
44
```
46
45
47
- 3. Run the adhoc playbook to install and configure Pulp:
46
+ 3. Run the adhoc playbook to install and configure Pulp:
48
47
49
- ```shell
50
- ansible-playbook ansible/adhoc/deploy-pulp.yml
51
- ```
48
+ ` ` ` shell
49
+ ansible-playbook ansible/adhoc/deploy-pulp.yml
50
+ ` ` `
52
51
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.
56
55
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:
59
58
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
+ ```
66
65
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
+ ```
71
70
72
- and vault-encrypt the latter:
71
+ and vault-encrypt the latter:
73
72
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.
81
80
82
- 5. Commit changes.
81
+ 5. Commit changes.
83
82
84
83
## Using an existing Pulp server
85
84
@@ -93,17 +92,17 @@ As above, the `dnf_repos_` variables must not be set in this configuration.
93
92
The appliance can synchronise repositories on local Pulp server from Ark in
94
93
two ways:
95
94
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.
98
97
99
98
2. The sync can be manually be triggered by running:
100
99
101
- ```shell
102
- ansible-playbook ansible/adhoc/sync-pulp.yml
103
- ```
100
+ ```shell
101
+ ansible-playbook ansible/adhoc/sync-pulp.yml
102
+ ```
104
103
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