Skip to content

Commit 4ef4632

Browse files
committed
use shorter internal hostnames for the pulp containers
1 parent 910d9c1 commit 4ef4632

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/roles/candlepin/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
image: "{{ candlepin_container_image }}:{{ candlepin_container_tag }}"
7373
state: quadlet
7474
network: host
75-
hostname: "{{ ansible_facts['fqdn'] }}"
75+
hostname: "{{ ansible_facts['hostname'] }}.local"
7676
secrets:
7777
- 'candlepin-ca-cert,target=/etc/candlepin/certs/candlepin-ca.crt,mode=0440,type=mount'
7878
- 'candlepin-ca-key,target=/etc/candlepin/certs/candlepin-ca.key,mode=0440,type=mount'

src/roles/foreman/tasks/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
state: quadlet
103103
sdnotify: true
104104
network: host
105-
hostname: "{{ ansible_facts['fqdn'] }}"
105+
hostname: "{{ ansible_facts['hostname'] }}.local"
106106
volume:
107107
- 'foreman-data-run:/var/run/foreman:z'
108108
secrets:
@@ -138,7 +138,7 @@
138138
state: quadlet
139139
sdnotify: true
140140
network: host
141-
hostname: "{{ ansible_facts['fqdn'] }}"
141+
hostname: "{{ ansible_facts['hostname'] }}.local"
142142
volume:
143143
- 'foreman-data-run:/var/run/foreman:z'
144144
secrets:
@@ -190,7 +190,7 @@
190190
image: "{{ foreman_container_image }}:{{ foreman_container_tag }}"
191191
sdnotify: false
192192
network: host
193-
hostname: "{{ ansible_facts['fqdn'] }}"
193+
hostname: "{{ ansible_facts['hostname'] }}.local"
194194
command: "foreman-rake {{ item.rake }}"
195195
volume:
196196
- 'foreman-data-run:/var/run/foreman:z'

src/roles/foreman_proxy/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
state: quadlet
2020
sdnotify: true
2121
network: host
22-
hostname: "{{ ansible_facts['fqdn'] }}"
22+
hostname: "{{ ansible_facts['hostname'] }}.local"
2323
secrets:
2424
- 'foreman-proxy-settings-yml,type=mount,target=/etc/foreman-proxy/settings.yml'
2525
- 'foreman-proxy-ssl-ca,type=mount,target=/etc/foreman-proxy/ssl_ca.pem'

src/roles/pulp/tasks/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
sdnotify: true
103103
command: pulp-api
104104
network: host
105-
hostname: "pulp-api.{{ ansible_facts['fqdn'] }}"
105+
hostname: "pulp-api.{{ ansible_facts['hostname'] }}.local"
106106
volumes: "{{ pulp_volumes }}"
107107
security_opt:
108108
- "label=disable"
@@ -133,7 +133,7 @@
133133
sdnotify: true
134134
command: pulp-content
135135
network: host
136-
hostname: "pulp-content.{{ ansible_facts['fqdn'] }}"
136+
hostname: "pulp-content.{{ ansible_facts['hostname'] }}.local"
137137
volumes: "{{ pulp_volumes }}"
138138
security_opt:
139139
- "label=disable"
@@ -164,7 +164,7 @@
164164
state: quadlet
165165
command: pulp-worker
166166
network: host
167-
hostname: "pulp-worker-%i.{{ ansible_facts['fqdn'] }}"
167+
hostname: "pulp-worker-%i.{{ ansible_facts['hostname'] }}.local"
168168
volumes: "{{ pulp_volumes }}"
169169
security_opt:
170170
- "label=disable"

0 commit comments

Comments
 (0)