Skip to content

Commit bc5e26e

Browse files
committed
docs/groups corrections
1 parent bda3f0d commit bc5e26e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/experimental/pulp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Pulp Server
22

3-
In order to ensure reproducible builds, the appliance can build images using repository mirrors from StackHPC's "Ark" Pulp server. The appliance can sync relevant repositories to a local Pulp server which will then be used instead of Ark. Using a local Pulp can be enabled by adding `pulp` to the build groups and overriding `dnf_repos_repolist` to point at content hosted on the local server.
3+
In order to ensure reproducible builds, the appliance can build images using repository mirrors from StackHPC's "Ark" Pulp server. The appliance can sync relevant repositories to a local Pulp server which will then be used instead of Ark. Using a local Pulp can be enabled by adding `pulp` to the build groups and overriding `appliances_pulp_url` to point at the local Pulp's URL.
44

55
## Deploying/configuring Pulp Server
66

77
### Deploying a Pulp server
88
A playbook is provided to install and configure a Pulp server on a given host. Admin credentials for this server are automatically generated through the `ansible/adhoc/generate-passwords.yml' playbook. This can be run with
9-
`ansible-playbook ansible/adhoc/deploy-pulp.yml -e "pulp_server=<host_ip>"`
10-
This will print a Pulp endpoint which can be copied to your environments as appropriate. Ensure that the server is accessible on the specified port. Note access to this server's content isn't authenticated so assumes the server is deployed behind a secure network.
9+
`ansible-playbook ansible/adhoc/deploy-pulp.yml -e "pulp_server=<target_host>"`
10+
where `target_host` is any resolvable host. This will print a Pulp URL which can be copied to your environments as appropriate. Ensure that the server is accessible on the specified port. Note access to this server's content isn't authenticated so assumes the server is deployed behind a secure network.
1111

1212
### Using an existing Pulp server
1313
An existing Pulp server can be used to host Ark repos by overriding `pulp_site_password` and `appliances_pulp_url` in the target environment. Note that this assumes the same configuration as the appliance deployed pulp i.e no content authentication.

environments/.stackhpc/inventory/group_vars/builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# appliances_pulp_url: "{{ pulp_server_config[lookup('env','CI_CLOUD')].url }}"
1111
# pulp_site_password: "{{ pulp_server_config[lookup('env','CI_CLOUD')].password }}"
12+
1213
# Alternatively, configure to use ark directly:
1314
dnf_repos_username: slurm-app-ci
1415
dnf_repos_password: "{{ lookup('env','ARK_PASSWORD') }}"

environments/common/inventory/groups

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,6 @@ freeipa_client
149149
# Hosts to replace system repos with Pulp repos
150150
builder
151151

152-
[pulp:children]
152+
[pulp]
153153
# Add builder to this group to enable automatically syncing of pulp during image build
154+
# Warning: when using Ark directly rather than a local Pulp server, adding hosts other than `builder` risks leaking Ark creds

0 commit comments

Comments
 (0)