Skip to content

Commit 7253ad0

Browse files
committed
docs tweaks
1 parent dff68b4 commit 7253ad0

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

ansible/adhoc/deploy-pulp.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Usage: ansible-playbook ansible/adhoc/deploy-pulp.yml -e "pulp_server=<pulp server hostname>"
2-
31
- name: Install pulp on server
42
become: yes
53
hosts: pulp_server

ansible/roles/pulp_site/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Requirements
88
------------
99

1010
Requires Ark credentials. The VM you are deploying Pulp on must allow ingress on `pulp_site_port`
11-
and not be externally accessible (as the Pulp server's content is unauthenticated).
11+
and not be externally accessible (as the Pulp server's content is unauthenticated). Rocky Linux 9 has been
12+
tested as the target VM for deploying Pulp.
1213

1314
Role Variables
1415
--------------

ansible/roles/pulp_site/filter_plugins/pulp-list-filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def filters(self):
77
'select_repos': self.select_repos,
88
}
99

10-
def select_repos(self, dnf_repos, target_distro_ver): #TODO: why does baseos get a major and minor version?
10+
def select_repos(self, dnf_repos, target_distro_ver):
1111
""" Filter dnf_repos to only those for a relevant distribution version (M.m or M). Returns a list of dicts.
1212
Also adds pulp_repo_name field to give the repository a unique name in Pulp to be referenced by subsequent
1313
filters

docs/experimental/pulp.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ In order to ensure reproducible builds, the appliance can build images using rep
55
## Deploying/configuring Pulp Server
66

77
### Deploying a Pulp server
8-
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. To use this, create an inventory file defining a group `pulp_server` containing a single host, which requires at least 2 vCPUs and 4GB RAM. Deploying and syncing Pulp has been tested on an RL9 host. The hostvar `ansible_host` should be defined, giving the IP address Ansible should use for ssh. For example:
8+
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. To use this, create an inventory file
9+
defining a group `pulp_server` containing a single host, which requires at least 2 vCPUs and 4GB RAM. The group should be defined in your `site` environment's inventory so that a single Pulp server is shared between all environments and
10+
the same snapshots are tested in staging and production.
11+
Deploying and syncing Pulp has been tested on an RL9 host. The hostvar `ansible_host` should be defined, giving the IP address Ansible should use for ssh. For example, you can create an ini file at `environments/site/inventory/pulp` with the contents:
912

1013
```
1114
[pulp_server]
12-
pulp_host ansible_host=<VM-ip-address> # Note the host name can't conflict with group names i.e can't be called `pulp` or `pulp_server`
15+
pulp_host ansible_host=<VM-ip-address>
1316
```
1417

15-
Once complete, it will print a message giving a value to set for `appliances_pulp_url`, assuming the `ansible_host` address is also the address the cluster
18+
> [!WARNING]
19+
> The inventory hostname cannot conflict with group names i.e can't be called `pulp` or `pulp_server`.
20+
21+
Once complete, it will print a message giving a value to set for `appliances_pulp_url` (see example config below), assuming the `ansible_host` address is also the address the cluster
1622
should use to reach the Pulp server.
1723

1824
Note access to this server's content isn't authenticated so this assumes the `pulp_server` host is not externally reachable.
1925

20-
**TODO: You can actually do this using additional_nodes now, how would we make the pulp store persistant?**
21-
**TODO: don't advise that, we want single server for all environments**
22-
2326
### Using an existing Pulp server
2427
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.
2528

environments/common/inventory/group_vars/all/dnf_repos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# dnf_repos_default: see timestamps.yml
1+
# dnf_repos_default: see role ansible/roles/dnf_repos/README.md for format and timestamps.yml for default definition
22

33
# override this in environments/site/inventory/group_vars/dnf_repos.yml to add repos:
44
dnf_repos_extra: {}

0 commit comments

Comments
 (0)