ipa: add env_suffix for stg

This commit is contained in:
Mark O'Brien 2021-05-06 12:30:29 +01:00
parent aff35d0dc3
commit 2649c23c52

View file

@ -1,7 +1,5 @@
--- ---
# Configuration for IPA # Configuration for IPA
#
# TODO: remove staging tag afetr freeze
- name: on rhel8 hosts enable the correct idm module - name: on rhel8 hosts enable the correct idm module
copy: copy:
src: "{{item}}" src: "{{item}}"
@ -11,7 +9,7 @@
- idm.module - idm.module
- pki-core.module - pki-core.module
- pki-deps.module - pki-deps.module
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' and env == 'staging' when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat'
tags: tags:
- ipa/server - ipa/server
- config - config
@ -84,7 +82,7 @@
when: not ipa_initial when: not ipa_initial
- name: create replica file - name: create replica file
delegate_to: ipa01.iad2.fedoraproject.org delegate_to: ipa01{{ env_suffix }}.iad2.fedoraproject.org
command: ipa-replica-prepare command: ipa-replica-prepare
--password={{ipa_dm_password}} --password={{ipa_dm_password}}
{{inventory_hostname}} {{inventory_hostname}}
@ -95,7 +93,7 @@
when: not ipa_initial and ansible_distribution_major_version|int < 8 and not replication_status.stat.exists when: not ipa_initial and ansible_distribution_major_version|int < 8 and not replication_status.stat.exists
- name: retrieve replica file - name: retrieve replica file
delegate_to: ipa01.iad2.fedoraproject.org delegate_to: ipa01{{ env_suffix }}.iad2.fedoraproject.org
fetch: src=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg fetch: src=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg
dest=/tmp/ipa_replica_{{inventory_hostname}}.gpg dest=/tmp/ipa_replica_{{inventory_hostname}}.gpg
flat=yes flat=yes
@ -159,7 +157,7 @@
--force-join --force-join
--log-file=/var/log/ipainstall.log --log-file=/var/log/ipainstall.log
--domain={{ipa_realm}} --domain={{ipa_realm}}
--server=ipa01.iad2.fedoraproject.org --server=ipa01{{ env_suffix }}.iad2.fedoraproject.org
creates=/etc/ipa/default.conf creates=/etc/ipa/default.conf
tags: tags:
- ipa/server - ipa/server