Skip to content

Commit edad66e

Browse files
committed
pulp_distribution: add support for specifying a content_guard
1 parent 3609def commit edad66e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

roles/pulp_distribution/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ Example playbook
4242
base_path: pulp/pulp
4343
repository: pulp/pulp
4444
state: present
45-
# Distribute version 2 of the pulp/pulp repository.
45+
# Distribute version 2 of the pulp/pulp repository with a content guard.
4646
- name: pulp/pulp
4747
base_path: pulp/pulp
4848
repository: pulp/pulp
4949
version: 2
50+
content_guard: secure-content-guard
5051
state: present
5152
pulp_distribution_deb:
5253
# Distribute the latest version of the ubuntu-focal repository.
@@ -60,10 +61,11 @@ Example playbook
6061
repository: ubuntu-focal-security
6162
version: 2
6263
state: present
63-
# Distribute the same publication as the ubuntu-focal distribution.
64+
# Distribute the same publication as the ubuntu-focal distribution with a content guard.
6465
- name: ubuntu-focal-production
6566
base_path: ubuntu-focal-production
6667
distribution: ubuntu-focal
68+
content_guard: secure-content-guard
6769
state: present
6870
pulp_distribution_rpm:
6971
# Distribute the latest version of the centos-baseos repository.
@@ -77,9 +79,10 @@ Example playbook
7779
repository: centos-appstream
7880
version: 2
7981
state: present
80-
# Distribute the same publication as the centos-baseos distribution.
82+
# Distribute the same publication as the centos-baseos distribution with a content guard.
8183
- name: centos-baseos-production
8284
base_path: centos-baseos-production
8385
distribution: centos-baseos
86+
content_guard: secure-content-guard
8487
state: present
8588
```

roles/pulp_distribution/tasks/container.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
base_path: "{{ item.base_path }}"
1010
repository: "{{ item.repository }}"
1111
version: "{{ item.version | default(omit) }}"
12+
content_guard: "{{ item.content_guard | default(omit) }}"
1213
state: "{{ item.state }}"
1314
with_items: "{{ pulp_distribution_container }}"

roles/pulp_distribution/tasks/deb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
name: "{{ item.name }}"
4747
base_path: "{{ item.base_path }}"
4848
publication: "{{ pubs[0].pulp_href if item.state == 'present' else omit }}"
49+
content_guard: "{{ item.content_guard | default(omit) }}"
4950
state: "{{ item.state }}"
5051
with_items: "{{ pulp_distribution_deb }}"
5152
when: >-

roles/pulp_distribution/tasks/rpm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
name: "{{ item.name }}"
4747
base_path: "{{ item.base_path }}"
4848
publication: "{{ pubs[0].pulp_href if item.state == 'present' else omit }}"
49+
content_guard: "{{ item.content_guard | default(omit) }}"
4950
state: "{{ item.state }}"
5051
with_items: "{{ pulp_distribution_rpm }}"
5152
when: >-

0 commit comments

Comments
 (0)