Skip to content

Commit 4aa9fee

Browse files
committed
fixed sync
1 parent 2e3c4fd commit 4aa9fee

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

ansible/adhoc/sync-pulp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
vars:
77
pulp_site_target_arch: "x86_64"
88
pulp_site_target_distribution: "rocky"
9-
pulp_site_target_distribution_version: "9.5" # TODO: how can we automatically make this the latest??
9+
pulp_site_target_distribution_version: "9.6" # TODO: how can we automatically make this the latest??

ansible/roles/pulp_site/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pulp_site_url: "{{ appliances_pulp_url }}"
22
pulp_site_port: 8080
33
pulp_site_username: admin # shouldn't be changed
4-
pulp_site_password: "{{ vault_pulp_admin_password }}"
4+
pulp_site_password: "{{ vault_pulp_admin_password }}" #todo make more obvious this is different from the password needed for ark (pulp_site_upstream_password)
55
pulp_site_upstream_content_url: https://ark.stackhpc.com/pulp/content
66
pulp_site_default_upstream_suffix: "{{ pulp_site_target_arch }}/os"
77
pulp_site_validate_certs: false

ansible/roles/pulp_site/tasks/sync.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@
33
- ansible.builtin.assert:
44
that: pulp_site_upstream_password != ''
55
quiet: true
6-
fail_msg: "Upstream password not set. Either set env var ARK_PASSWORD or override pulp_site_upstream_password."
7-
8-
- name: Wait for Pulp server
9-
pulp.squeezer.status:
10-
pulp_url: "{{ pulp_site_url }}"
11-
username: "{{ pulp_site_username }}"
12-
password: "{{ pulp_site_password }}"
13-
register: _pulp_status
14-
until: _pulp_status.failed == false
15-
retries: 30
16-
delay: 20
6+
fail_msg: "Upstream password not set. Ensure `pulp_site_upstream_username` and `pulp_site_upstream_password` are overriden to your Ark credentials."
177

188
- name: Ensure Pulp CLI config directory exists
199
ansible.builtin.file:
@@ -27,6 +17,16 @@
2717
dest: ~/.config/pulp/cli.toml
2818
mode: '0644'
2919

20+
- name: Wait for Pulp server
21+
pulp.squeezer.status:
22+
pulp_url: "{{ pulp_site_url }}"
23+
username: "{{ pulp_site_username }}"
24+
password: "{{ pulp_site_password }}"
25+
register: _pulp_status
26+
until: _pulp_status.failed == false
27+
retries: 30
28+
delay: 20
29+
3030
- block:
3131
- name: Ensure squeezer cache exists
3232
ansible.builtin.file:

ansible/roles/pulp_site/templates/cli.toml.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ username = "{{ pulp_site_username }}"
44
password = "{{ pulp_site_password }}"
55
api_root = "/pulp/"
66
domain = "default"
7-
headers = []
87
cert = ""
98
key = ""
109
verify_ssl = true

docs/experimental/pulp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In order to ensure reproducible builds, the appliance can build images using rep
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. To use this, create an inventory file defining a group `pulp_server` containing a single host. The hostvar `ansible_host` should be defined, giving the IP address Ansible should use for ssh.
99

1010
**TODO: should be RL9 (or RL8?)**
11-
**TODO: add size required**
11+
**TODO: add size required (2 vCPUs, 4GB RAM)**
1212
**TODO: example inventory file**
1313

1414
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

environments/common/inventory/groups

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,6 @@ extra_packages
211211

212212
[nhc]
213213
# Hosts to configure for node health checks - either entire 'compute' group or empty
214+
215+
[pulp_server]
216+

0 commit comments

Comments
 (0)