diff --git a/ansible/roles/aodh/tasks/precheck.yml b/ansible/roles/aodh/tasks/precheck.yml index e5132d3784..48dafbe961 100644 --- a/ansible/roles/aodh/tasks/precheck.yml +++ b/ansible/roles/aodh/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ aodh_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/barbican/tasks/precheck.yml b/ansible/roles/barbican/tasks/precheck.yml index 517d6c5e6c..da3e4e4077 100644 --- a/ansible/roles/barbican/tasks/precheck.yml +++ b/ansible/roles/barbican/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ barbican_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/blazar/tasks/precheck.yml b/ansible/roles/blazar/tasks/precheck.yml index 6a9b59635f..f47b01e52b 100644 --- a/ansible/roles/blazar/tasks/precheck.yml +++ b/ansible/roles/blazar/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ blazar_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/ceilometer/tasks/precheck.yml b/ansible/roles/ceilometer/tasks/precheck.yml index 8e6291ddc0..dd5d430ee6 100644 --- a/ansible/roles/ceilometer/tasks/precheck.yml +++ b/ansible/roles/ceilometer/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ ceilometer_services }}" + service_name: "{{ project_name }}" + - name: Checking gnocchi backend for ceilometer fail: msg: "gnocchi is required but not enabled" diff --git a/ansible/roles/chrony/tasks/precheck.yml b/ansible/roles/chrony/tasks/precheck.yml index 39fe6b6486..13b37e2ef2 100644 --- a/ansible/roles/chrony/tasks/precheck.yml +++ b/ansible/roles/chrony/tasks/precheck.yml @@ -1,3 +1,9 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ chrony_services }}" + service_name: "{{ project_name }}" + # TODO(Jeffrey4l), need check whether udp 123 port is used. But there is no # module to do this now. diff --git a/ansible/roles/cinder/tasks/precheck.yml b/ansible/roles/cinder/tasks/precheck.yml index 177c4aed42..febe0295b1 100644 --- a/ansible/roles/cinder/tasks/precheck.yml +++ b/ansible/roles/cinder/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ cinder_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/cloudkitty/tasks/precheck.yml b/ansible/roles/cloudkitty/tasks/precheck.yml index 1a78b37b0a..7002db1767 100644 --- a/ansible/roles/cloudkitty/tasks/precheck.yml +++ b/ansible/roles/cloudkitty/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ cloudkitty_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/collectd/tasks/precheck.yml b/ansible/roles/collectd/tasks/precheck.yml index ed97d539c0..f3b60f8aca 100644 --- a/ansible/roles/collectd/tasks/precheck.yml +++ b/ansible/roles/collectd/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ collectd_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/common/tasks/precheck.yml b/ansible/roles/common/tasks/precheck.yml index ed97d539c0..9b075bcec7 100644 --- a/ansible/roles/common/tasks/precheck.yml +++ b/ansible/roles/common/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ common_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/congress/tasks/precheck.yml b/ansible/roles/congress/tasks/precheck.yml index 666e7d4258..f9dd246772 100644 --- a/ansible/roles/congress/tasks/precheck.yml +++ b/ansible/roles/congress/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ congress_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/cyborg/tasks/precheck.yml b/ansible/roles/cyborg/tasks/precheck.yml index f7470f3e1c..9167122cd2 100644 --- a/ansible/roles/cyborg/tasks/precheck.yml +++ b/ansible/roles/cyborg/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ cyborg_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/designate/tasks/precheck.yml b/ansible/roles/designate/tasks/precheck.yml index c470b39743..ea2eb1b38b 100644 --- a/ansible/roles/designate/tasks/precheck.yml +++ b/ansible/roles/designate/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ designate_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/elasticsearch/tasks/precheck.yml b/ansible/roles/elasticsearch/tasks/precheck.yml index 3124b06ee7..54e3f4b390 100644 --- a/ansible/roles/elasticsearch/tasks/precheck.yml +++ b/ansible/roles/elasticsearch/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ elasticsearch_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/etcd/tasks/precheck.yml b/ansible/roles/etcd/tasks/precheck.yml index cc9deb3377..be45e3a356 100644 --- a/ansible/roles/etcd/tasks/precheck.yml +++ b/ansible/roles/etcd/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ etcd_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/freezer/tasks/precheck.yml b/ansible/roles/freezer/tasks/precheck.yml index 94f8e42165..555a53e5f8 100644 --- a/ansible/roles/freezer/tasks/precheck.yml +++ b/ansible/roles/freezer/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ freezer_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/glance/tasks/precheck.yml b/ansible/roles/glance/tasks/precheck.yml index 49337a4e77..dc334fbc7d 100644 --- a/ansible/roles/glance/tasks/precheck.yml +++ b/ansible/roles/glance/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ glance_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/gnocchi/tasks/precheck.yml b/ansible/roles/gnocchi/tasks/precheck.yml index 4b43ed97f0..283f33c291 100644 --- a/ansible/roles/gnocchi/tasks/precheck.yml +++ b/ansible/roles/gnocchi/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ gnocchi_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/grafana/tasks/precheck.yml b/ansible/roles/grafana/tasks/precheck.yml index 2c30876c51..aaedcbc1c1 100644 --- a/ansible/roles/grafana/tasks/precheck.yml +++ b/ansible/roles/grafana/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ grafana_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/haproxy/tasks/precheck.yml b/ansible/roles/haproxy/tasks/precheck.yml index 69cbf03bb0..29422bcc03 100644 --- a/ansible/roles/haproxy/tasks/precheck.yml +++ b/ansible/roles/haproxy/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ haproxy_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/heat/tasks/precheck.yml b/ansible/roles/heat/tasks/precheck.yml index fc75b7804b..a4e6d093ae 100644 --- a/ansible/roles/heat/tasks/precheck.yml +++ b/ansible/roles/heat/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ heat_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/horizon/tasks/precheck.yml b/ansible/roles/horizon/tasks/precheck.yml index f565ed1b88..7e7490a0a4 100644 --- a/ansible/roles/horizon/tasks/precheck.yml +++ b/ansible/roles/horizon/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ horizon_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/influxdb/tasks/precheck.yml b/ansible/roles/influxdb/tasks/precheck.yml index b8f33288b8..7728a845a9 100644 --- a/ansible/roles/influxdb/tasks/precheck.yml +++ b/ansible/roles/influxdb/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ influxdb_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/ironic/tasks/precheck.yml b/ansible/roles/ironic/tasks/precheck.yml index ba8d782997..b4a9b694b7 100644 --- a/ansible/roles/ironic/tasks/precheck.yml +++ b/ansible/roles/ironic/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ ironic_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/iscsi/tasks/precheck.yml b/ansible/roles/iscsi/tasks/precheck.yml index fed4e3a34b..dcc6c64488 100644 --- a/ansible/roles/iscsi/tasks/precheck.yml +++ b/ansible/roles/iscsi/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ iscsi_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/kafka/tasks/precheck.yml b/ansible/roles/kafka/tasks/precheck.yml index 1006df0de7..a6f76ca84b 100644 --- a/ansible/roles/kafka/tasks/precheck.yml +++ b/ansible/roles/kafka/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ kafka_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/karbor/tasks/precheck.yml b/ansible/roles/karbor/tasks/precheck.yml index 624b69ab8d..fd4a8da068 100644 --- a/ansible/roles/karbor/tasks/precheck.yml +++ b/ansible/roles/karbor/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ karbor_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/keystone/tasks/precheck.yml b/ansible/roles/keystone/tasks/precheck.yml index fc7d8cd0ca..735d069120 100644 --- a/ansible/roles/keystone/tasks/precheck.yml +++ b/ansible/roles/keystone/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ keystone_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/kibana/tasks/precheck.yml b/ansible/roles/kibana/tasks/precheck.yml index 90294ca5f9..e5db1096d9 100644 --- a/ansible/roles/kibana/tasks/precheck.yml +++ b/ansible/roles/kibana/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ kibana_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/kuryr/tasks/precheck.yml b/ansible/roles/kuryr/tasks/precheck.yml index 27afba68ff..4597bb1c4a 100644 --- a/ansible/roles/kuryr/tasks/precheck.yml +++ b/ansible/roles/kuryr/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ kuryr_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/magnum/tasks/precheck.yml b/ansible/roles/magnum/tasks/precheck.yml index c6e33188a6..de612b0dad 100644 --- a/ansible/roles/magnum/tasks/precheck.yml +++ b/ansible/roles/magnum/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ magnum_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/manila/tasks/precheck.yml b/ansible/roles/manila/tasks/precheck.yml index c5b0a4eca8..8c88562dcf 100644 --- a/ansible/roles/manila/tasks/precheck.yml +++ b/ansible/roles/manila/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ manila_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/mariadb/tasks/precheck.yml b/ansible/roles/mariadb/tasks/precheck.yml index 877c988456..5c84496067 100644 --- a/ansible/roles/mariadb/tasks/precheck.yml +++ b/ansible/roles/mariadb/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ mariadb_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/masakari/tasks/precheck.yml b/ansible/roles/masakari/tasks/precheck.yml index fd41f5b631..07b99314c0 100644 --- a/ansible/roles/masakari/tasks/precheck.yml +++ b/ansible/roles/masakari/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ masakari_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/memcached/tasks/precheck.yml b/ansible/roles/memcached/tasks/precheck.yml index 51334a5797..ac8945c014 100644 --- a/ansible/roles/memcached/tasks/precheck.yml +++ b/ansible/roles/memcached/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ memcached_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/mistral/tasks/precheck.yml b/ansible/roles/mistral/tasks/precheck.yml index 4a2a76b3dc..c6c00efafc 100644 --- a/ansible/roles/mistral/tasks/precheck.yml +++ b/ansible/roles/mistral/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ mistral_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/monasca/tasks/precheck.yml b/ansible/roles/monasca/tasks/precheck.yml index ef19091d09..392cb26cdc 100644 --- a/ansible/roles/monasca/tasks/precheck.yml +++ b/ansible/roles/monasca/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ monasca_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/mongodb/tasks/precheck.yml b/ansible/roles/mongodb/tasks/precheck.yml index d093befa71..6451f1b53c 100644 --- a/ansible/roles/mongodb/tasks/precheck.yml +++ b/ansible/roles/mongodb/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ mongodb_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/multipathd/tasks/precheck.yml b/ansible/roles/multipathd/tasks/precheck.yml index ed97d539c0..307c52a959 100644 --- a/ansible/roles/multipathd/tasks/precheck.yml +++ b/ansible/roles/multipathd/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ multipathd_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/murano/tasks/precheck.yml b/ansible/roles/murano/tasks/precheck.yml index 17019d125a..cedd21ff7f 100644 --- a/ansible/roles/murano/tasks/precheck.yml +++ b/ansible/roles/murano/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ murano_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/neutron/tasks/precheck.yml b/ansible/roles/neutron/tasks/precheck.yml index b131b308eb..e58ef40530 100644 --- a/ansible/roles/neutron/tasks/precheck.yml +++ b/ansible/roles/neutron/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ neutron_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/nova-cell/tasks/precheck.yml b/ansible/roles/nova-cell/tasks/precheck.yml index 880e5586bc..861081e3dd 100644 --- a/ansible/roles/nova-cell/tasks/precheck.yml +++ b/ansible/roles/nova-cell/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ nova_cell_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/nova/tasks/precheck.yml b/ansible/roles/nova/tasks/precheck.yml index e11964fe0d..dd52dfdf05 100644 --- a/ansible/roles/nova/tasks/precheck.yml +++ b/ansible/roles/nova/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ nova_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/octavia/tasks/precheck.yml b/ansible/roles/octavia/tasks/precheck.yml index 7f2698e1bc..6e00c29b02 100644 --- a/ansible/roles/octavia/tasks/precheck.yml +++ b/ansible/roles/octavia/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ octavia_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/openvswitch/tasks/precheck.yml b/ansible/roles/openvswitch/tasks/precheck.yml index 8a19c0cd3f..ab87dd981b 100644 --- a/ansible/roles/openvswitch/tasks/precheck.yml +++ b/ansible/roles/openvswitch/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ openvswitch_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/ovs-dpdk/tasks/precheck.yml b/ansible/roles/ovs-dpdk/tasks/precheck.yml index ed97d539c0..7ac334b197 100644 --- a/ansible/roles/ovs-dpdk/tasks/precheck.yml +++ b/ansible/roles/ovs-dpdk/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ ovsdpdk_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/panko/tasks/precheck.yml b/ansible/roles/panko/tasks/precheck.yml index 097211c15c..6d1e15136b 100644 --- a/ansible/roles/panko/tasks/precheck.yml +++ b/ansible/roles/panko/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ panko_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/placement/tasks/precheck.yml b/ansible/roles/placement/tasks/precheck.yml index 760c3f8f49..97381b93f8 100644 --- a/ansible/roles/placement/tasks/precheck.yml +++ b/ansible/roles/placement/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ placement_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/prometheus/tasks/precheck.yml b/ansible/roles/prometheus/tasks/precheck.yml index 2b6c6c2d77..514972c967 100644 --- a/ansible/roles/prometheus/tasks/precheck.yml +++ b/ansible/roles/prometheus/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ prometheus_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/qdrouterd/tasks/precheck.yml b/ansible/roles/qdrouterd/tasks/precheck.yml index 67b3a44435..c01ad703ff 100644 --- a/ansible/roles/qdrouterd/tasks/precheck.yml +++ b/ansible/roles/qdrouterd/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ qdrouterd_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/qinling/tasks/precheck.yml b/ansible/roles/qinling/tasks/precheck.yml index cd98766b3a..b548f59800 100644 --- a/ansible/roles/qinling/tasks/precheck.yml +++ b/ansible/roles/qinling/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ qinling_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/rabbitmq/tasks/precheck.yml b/ansible/roles/rabbitmq/tasks/precheck.yml index 966e32bf97..a7baf2afa4 100644 --- a/ansible/roles/rabbitmq/tasks/precheck.yml +++ b/ansible/roles/rabbitmq/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ rabbitmq_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/rally/tasks/precheck.yml b/ansible/roles/rally/tasks/precheck.yml index ed97d539c0..0ea49ab7f1 100644 --- a/ansible/roles/rally/tasks/precheck.yml +++ b/ansible/roles/rally/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ rally_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/redis/tasks/precheck.yml b/ansible/roles/redis/tasks/precheck.yml index 7a21bc7fc0..9cfe2ff3b4 100644 --- a/ansible/roles/redis/tasks/precheck.yml +++ b/ansible/roles/redis/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ redis_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/sahara/tasks/precheck.yml b/ansible/roles/sahara/tasks/precheck.yml index 86b3d182d3..2df581c1fb 100644 --- a/ansible/roles/sahara/tasks/precheck.yml +++ b/ansible/roles/sahara/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ sahara_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/searchlight/tasks/precheck.yml b/ansible/roles/searchlight/tasks/precheck.yml index ef2d3ae999..fd1a2f2da5 100644 --- a/ansible/roles/searchlight/tasks/precheck.yml +++ b/ansible/roles/searchlight/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ searchlight_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/senlin/tasks/precheck.yml b/ansible/roles/senlin/tasks/precheck.yml index af0677acd1..a5b351022e 100644 --- a/ansible/roles/senlin/tasks/precheck.yml +++ b/ansible/roles/senlin/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ senlin_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/service-precheck/defaults/main.yml b/ansible/roles/service-precheck/defaults/main.yml new file mode 100644 index 0000000000..eac10273ad --- /dev/null +++ b/ansible/roles/service-precheck/defaults/main.yml @@ -0,0 +1,5 @@ +--- +# Common role for prechecks. + +# Dict of services. +service_precheck_services: {} diff --git a/ansible/roles/service-precheck/tasks/main.yml b/ansible/roles/service-precheck/tasks/main.yml new file mode 100644 index 0000000000..24d0259d06 --- /dev/null +++ b/ansible/roles/service-precheck/tasks/main.yml @@ -0,0 +1,15 @@ +--- +- name: "{{ project_name }} | Validate inventory groups" + vars: + service_name: "{{ item.key }}" + service: "{{ item.value }}" + fail: + msg: >- + Ansible inventory does not contain the expected group {{ service.group }} + for service {{ service_name }} in {{ project_name }}. + loop: "{{ query('dict', service_precheck_services) }}" + when: + - "'group' in service" + - service.group not in groups + loop_control: + label: "{{ service_name }}" diff --git a/ansible/roles/skydive/tasks/precheck.yml b/ansible/roles/skydive/tasks/precheck.yml index 611475f61a..711d1b855d 100644 --- a/ansible/roles/skydive/tasks/precheck.yml +++ b/ansible/roles/skydive/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ skydive_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/solum/tasks/precheck.yml b/ansible/roles/solum/tasks/precheck.yml index 7d79a18e0b..372ee0d071 100644 --- a/ansible/roles/solum/tasks/precheck.yml +++ b/ansible/roles/solum/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ solum_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/storm/tasks/precheck.yml b/ansible/roles/storm/tasks/precheck.yml index e835686532..266645c84e 100644 --- a/ansible/roles/storm/tasks/precheck.yml +++ b/ansible/roles/storm/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ storm_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/swift/tasks/precheck.yml b/ansible/roles/swift/tasks/precheck.yml index 0b95a82610..0b8b102e74 100644 --- a/ansible/roles/swift/tasks/precheck.yml +++ b/ansible/roles/swift/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ swift_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/tacker/tasks/precheck.yml b/ansible/roles/tacker/tasks/precheck.yml index 944af80136..8bb0bfddb6 100644 --- a/ansible/roles/tacker/tasks/precheck.yml +++ b/ansible/roles/tacker/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ tacker_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/telegraf/tasks/precheck.yml b/ansible/roles/telegraf/tasks/precheck.yml index ed97d539c0..061b295e5e 100644 --- a/ansible/roles/telegraf/tasks/precheck.yml +++ b/ansible/roles/telegraf/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ telegraf_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/tempest/tasks/precheck.yml b/ansible/roles/tempest/tasks/precheck.yml index ed97d539c0..e1fdb52c62 100644 --- a/ansible/roles/tempest/tasks/precheck.yml +++ b/ansible/roles/tempest/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ tempest_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/trove/tasks/precheck.yml b/ansible/roles/trove/tasks/precheck.yml index befcc5bb2e..9954dc9367 100644 --- a/ansible/roles/trove/tasks/precheck.yml +++ b/ansible/roles/trove/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ trove_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/vitrage/tasks/precheck.yml b/ansible/roles/vitrage/tasks/precheck.yml index 65d2e2ae21..d5da64838f 100644 --- a/ansible/roles/vitrage/tasks/precheck.yml +++ b/ansible/roles/vitrage/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ vitrage_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/vmtp/tasks/precheck.yml b/ansible/roles/vmtp/tasks/precheck.yml index ed97d539c0..a0f3087b66 100644 --- a/ansible/roles/vmtp/tasks/precheck.yml +++ b/ansible/roles/vmtp/tasks/precheck.yml @@ -1 +1,6 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ vmtp_services }}" + service_name: "{{ project_name }}" diff --git a/ansible/roles/watcher/tasks/precheck.yml b/ansible/roles/watcher/tasks/precheck.yml index 32a32c630c..75bd1694db 100644 --- a/ansible/roles/watcher/tasks/precheck.yml +++ b/ansible/roles/watcher/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ watcher_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/zookeeper/tasks/precheck.yml b/ansible/roles/zookeeper/tasks/precheck.yml index f411378891..0547a6ba7f 100644 --- a/ansible/roles/zookeeper/tasks/precheck.yml +++ b/ansible/roles/zookeeper/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ zookeeper_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/ansible/roles/zun/tasks/precheck.yml b/ansible/roles/zun/tasks/precheck.yml index d862f9c810..a23dc95886 100644 --- a/ansible/roles/zun/tasks/precheck.yml +++ b/ansible/roles/zun/tasks/precheck.yml @@ -1,4 +1,10 @@ --- +- import_role: + name: service-precheck + vars: + service_precheck_services: "{{ zun_services }}" + service_name: "{{ project_name }}" + - name: Get container facts become: true kolla_container_facts: diff --git a/releasenotes/notes/ansible-group-precheck-fb1d1497ab92b235.yaml b/releasenotes/notes/ansible-group-precheck-fb1d1497ab92b235.yaml new file mode 100644 index 0000000000..633afe571f --- /dev/null +++ b/releasenotes/notes/ansible-group-precheck-fb1d1497ab92b235.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Adds new checks to ``kolla-ansible prechecks`` that validate that expected + Ansible groups exist.