Merge "Get the undercloud.conf file from where it actually is"
This commit is contained in:
commit
db82088f5c
|
@ -5,14 +5,17 @@
|
|||
Panko has been deprecated since the Train Release.
|
||||
The 'ceilometerdb-size' validation is now considered as deprecated too.
|
||||
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Check if telemetry services are enabled
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: enable_telemetry
|
||||
register: enable_telemetry
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: successful check with ctlplane-subnet
|
||||
include_role:
|
||||
|
@ -26,12 +25,12 @@
|
|||
|
||||
- name: override undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
local_subnet = 192.168.254.0/24
|
||||
[192.168.254.0/24]
|
||||
gateway = 8.8.8.8
|
||||
gateway = 0.0.0.0
|
||||
|
||||
- name: successful check with local_ip
|
||||
include_role:
|
||||
|
@ -41,7 +40,7 @@
|
|||
block:
|
||||
- name: override undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[ctlplane-subnet]
|
||||
gateway = 192.168.254.254
|
||||
|
|
|
@ -11,7 +11,7 @@ platforms:
|
|||
registry:
|
||||
url: registry.access.redhat.com
|
||||
dockerfile: Dockerfile
|
||||
pkg_extras: python*setuptools python*-PyYAML iputils
|
||||
pkg_extras: python*setuptools python*-pyyaml iputils
|
||||
volumes:
|
||||
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
||||
- /etc/pki/rpm-gpg:/etc/pki/rpm-gpg
|
||||
|
|
|
@ -20,35 +20,17 @@
|
|||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[ctlplane-subnet]
|
||||
gateway = 8.8.8.8
|
||||
gateway = 0.0.0.0
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get the local_subnet name from the undercloud_conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: local_subnet
|
||||
ignore_missing_file: true
|
||||
|
@ -16,7 +19,7 @@
|
|||
- name: Get gateway value from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: "{% if local_subnet.value %}{{ local_subnet.value }}{% else %}ctlplane-subnet{% endif %}"
|
||||
key: gateway
|
||||
ignore_missing_file: true
|
||||
|
@ -25,7 +28,7 @@
|
|||
- name: Get local_ip value from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: local_ip
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -19,36 +19,17 @@
|
|||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
local_interface = em0
|
||||
|
|
|
@ -18,36 +18,17 @@
|
|||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_images_file= /home/stack/containers-prepare-parameter.yaml
|
||||
|
|
|
@ -19,36 +19,17 @@
|
|||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
local_interface = em0
|
||||
|
|
|
@ -19,36 +19,17 @@
|
|||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_images_file= /containers-prepare-parameter.yaml
|
||||
|
|
|
@ -19,36 +19,17 @@
|
|||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
local_interface = em0
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
---
|
||||
- name: Verify required properties
|
||||
lineinfile:
|
||||
name: "{{ tripleo_undercloud_conf_file }}"
|
||||
name: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
regexp: "^{{ item }}\\s*=.*$"
|
||||
state: absent
|
||||
check_mode: true
|
||||
register: uc_conf
|
||||
loop: "{{ required_params }}"
|
||||
|
||||
- name: "Fail if parameter not present in {{ tripleo_undercloud_conf_file }}"
|
||||
- name: "Fail if parameter not present in {{ ansible_env.HOME }}/undercloud.conf"
|
||||
fail:
|
||||
msg: >-
|
||||
Property {{ item.item }} is required in
|
||||
{{ tripleo_undercloud_conf_file }}"
|
||||
{{ ansible_env.HOME }}/undercloud.conf
|
||||
failed_when: not item.changed
|
||||
loop: "{{ uc_conf.results }}"
|
||||
|
||||
|
@ -22,14 +22,14 @@
|
|||
fail:
|
||||
msg: >-
|
||||
Parameters {{ common_deprecated | join(', ') }} are deprecated for
|
||||
{{ tripleo_undercloud_conf_file }}
|
||||
{{ ansible_env.HOME }}/undercloud.conf
|
||||
when:
|
||||
- common_deprecated is defined
|
||||
- common_deprecated|length > 0
|
||||
|
||||
- name: Get hw_types from conf file
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: enabled_hardware_types
|
||||
register: hw_types
|
||||
|
|
|
@ -15,15 +15,18 @@
|
|||
# under the License.
|
||||
|
||||
|
||||
# "check_undercloud_conf" tasks
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: "Retrieve {{ tripleo_undercloud_conf_file }} content"
|
||||
# "check_undercloud_conf" tasks
|
||||
- name: "Retrieve {{ ansible_env.HOME }}/undercloud.conf content"
|
||||
slurp:
|
||||
src: "{{ tripleo_undercloud_conf_file }}"
|
||||
src: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
register: uc_conf_content
|
||||
|
||||
- name: Store all properties and file type properties
|
||||
|
@ -43,7 +46,7 @@
|
|||
|
||||
- name: Get value from conf file
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: "{{ item }}"
|
||||
register: conf_values
|
||||
|
@ -58,7 +61,7 @@
|
|||
- name: fail if location doesn't exist
|
||||
fail:
|
||||
msg: >-
|
||||
File configured in {{ tripleo_undercloud_conf_file }} {{ item.item.item }}
|
||||
File configured in {{ ansible_env.HOME }}/undercloud.conf {{ item.item.item }}
|
||||
does not exist
|
||||
when: not item.stat.exists
|
||||
loop: "{{ file_prop_stat.results }}"
|
||||
|
|
|
@ -10,14 +10,17 @@
|
|||
block:
|
||||
- name: Set container_cli fact from undercloud.conf
|
||||
block:
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get container client from undercloud.conf
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -18,36 +18,20 @@
|
|||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: prepare directory tree for hiera
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate a hiera config
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
- json
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Test good values
|
||||
block:
|
||||
- name: populate undercloud.conf with right range length
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[ctlplane-subnet]
|
||||
dhcp_start = 192.168.12.10
|
||||
|
@ -59,7 +43,7 @@
|
|||
block:
|
||||
- name: populate undercloud.conf with wrong range length
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[ctlplane-subnet]
|
||||
dhcp_start = 192.168.12.10
|
||||
|
|
|
@ -24,31 +24,3 @@
|
|||
package:
|
||||
name: python*-netaddr
|
||||
state: installed
|
||||
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
state: installed
|
||||
|
||||
- name: prepare directory tree for hiera
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate a hiera config
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
- json
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get dhcp_start value from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: ctlplane-subnet
|
||||
key: dhcp_start
|
||||
ignore_missing_file: true
|
||||
|
@ -17,7 +20,7 @@
|
|||
- name: Get dhcp_end value from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: ctlplane-subnet
|
||||
key: dhcp_end
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
hiera: name="tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Gather undercloud.conf values
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: local_interface
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -7,15 +7,18 @@
|
|||
|
||||
- when: "'Undercloud' in group_names"
|
||||
block:
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get the Container CLI from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
---
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Set facts for undercloud handlers to clean up
|
||||
set_fact:
|
||||
novajoin_temp_krb_caches: []
|
||||
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera: name="tripleo_undercloud_conf_file"
|
||||
check_mode: false
|
||||
|
||||
- name: Get the Container CLI from the undercloud.conf file (stein+)
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
register: container_cli
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
check_mode: false
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Verify that nameservers are set in undercloud.conf
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: undercloud_nameservers
|
||||
ignore_missing_file: false
|
||||
|
@ -57,7 +59,7 @@
|
|||
- name: Get domain as set in undercloud.conf
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: overcloud_domain_name
|
||||
ignore_missing_file: false
|
||||
|
@ -93,7 +95,7 @@
|
|||
- name: Get enable_novajoin flag from undercloud.conf
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: enable_novajoin
|
||||
ignore_missing_file: false
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: working detection
|
||||
include_role:
|
||||
|
@ -28,7 +27,7 @@
|
|||
block:
|
||||
- name: Override container_cli
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_cli = docker
|
||||
|
|
|
@ -18,37 +18,18 @@
|
|||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
||||
- name: create hiera tree
|
||||
file:
|
||||
path: /etc/puppet
|
||||
state: directory
|
||||
|
||||
- name: populate hiera.yaml
|
||||
copy:
|
||||
dest: /etc/puppet/hiera.yaml
|
||||
content: |
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_cli = podman
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera: name="tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get the Container CLI from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
---
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera:
|
||||
name: "tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get the Container CLI from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: working detection
|
||||
include_role:
|
||||
|
@ -28,7 +27,7 @@
|
|||
block:
|
||||
- name: Override container_cli
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_cli = docker
|
||||
|
|
|
@ -18,8 +18,15 @@
|
|||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
|
||||
tasks:
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: install hiera
|
||||
package:
|
||||
name: hiera
|
||||
|
@ -38,15 +45,8 @@
|
|||
:yaml:
|
||||
:datadir: "/etc/puppet/"
|
||||
:hierarchy:
|
||||
- "common"
|
||||
- "service_configs"
|
||||
|
||||
- name: populate hiera content
|
||||
copy:
|
||||
dest: /etc/puppet/common.yaml
|
||||
content: |
|
||||
tripleo_undercloud_conf_file: /undercloud.conf
|
||||
|
||||
- name: populate service config content
|
||||
copy:
|
||||
dest: /etc/puppet/service_configs.yaml
|
||||
|
@ -55,7 +55,7 @@
|
|||
|
||||
- name: populate undercloud.conf
|
||||
copy:
|
||||
dest: /undercloud.conf
|
||||
dest: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
content: |
|
||||
[DEFAULT]
|
||||
container_cli = podman
|
||||
|
|
|
@ -9,15 +9,18 @@
|
|||
- ansible_facts['keystone::token_provider'] != 'fernet'
|
||||
- ansible_facts['keystone::token_provider'] != 'jws'
|
||||
block:
|
||||
|
||||
- name: Get the path of tripleo undercloud config file
|
||||
become: true
|
||||
hiera: name="tripleo_undercloud_conf_file"
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- env
|
||||
|
||||
- name: Get the Container CLI from the undercloud.conf file
|
||||
become: true
|
||||
validations_read_ini:
|
||||
path: "{{ tripleo_undercloud_conf_file }}"
|
||||
path: "{{ ansible_env.HOME }}/undercloud.conf"
|
||||
section: DEFAULT
|
||||
key: container_cli
|
||||
ignore_missing_file: true
|
||||
|
|
|
@ -261,7 +261,6 @@
|
|||
parent: tripleo-validations-centos-8-base
|
||||
vars:
|
||||
tripleo_validations_role_name: check_network_gateway
|
||||
voting: false
|
||||
- job:
|
||||
files:
|
||||
- ^roles/undercloud_heat_purge_deleted/.*
|
||||
|
|
Loading…
Reference in New Issue