From e251d85fdd63b6fd5a720b02e1570d1140cf67e2 Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Wed, 5 Dec 2018 15:39:23 +0300 Subject: [PATCH] Remove hostname-related playbooks Change-Id: Ia2a617e337de987fb371c8507013c78c2ca80cd3 --- .zuul.yaml | 8 -------- playbooks/orchestrate-tempest.yaml | 14 -------------- playbooks/pre.yaml | 3 --- roles/add-hostnames-to-hosts/tasks/main.yaml | 16 ---------------- 4 files changed, 41 deletions(-) delete mode 100644 playbooks/orchestrate-tempest.yaml delete mode 100644 playbooks/pre.yaml delete mode 100644 roles/add-hostnames-to-hosts/tasks/main.yaml diff --git a/.zuul.yaml b/.zuul.yaml index b7c8e0cc9..a4052ac7c 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -74,17 +74,12 @@ name: watcher-tempest-multinode parent: watcher-tempest-functional nodeset: openstack-two-node - pre-run: playbooks/pre.yaml - run: playbooks/orchestrate-tempest.yaml roles: - zuul: openstack/tempest group-vars: subnode: devstack_local_conf: post-config: - $NOVA_CONF: - libvirt: - live_migration_uri: qemu+ssh://root@%s/system $WATCHER_CONF: watcher_cluster_data_model_collectors.compute: period: 120 @@ -110,9 +105,6 @@ vars: devstack_local_conf: post-config: - $NOVA_CONF: - libvirt: - live_migration_uri: qemu+ssh://root@%s/system $WATCHER_CONF: watcher_cluster_data_model_collectors.compute: period: 120 diff --git a/playbooks/orchestrate-tempest.yaml b/playbooks/orchestrate-tempest.yaml deleted file mode 100644 index 5f6d82f73..000000000 --- a/playbooks/orchestrate-tempest.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- hosts: all - # This is the default strategy, however since orchestrate-devstack requires - # "linear", it is safer to enforce it in case this is running in an - # environment configured with a different default strategy. - strategy: linear - roles: - - orchestrate-devstack - -- hosts: tempest - roles: - - setup-tempest-run-dir - - setup-tempest-data-dir - - acl-devstack-files - - run-tempest \ No newline at end of file diff --git a/playbooks/pre.yaml b/playbooks/pre.yaml deleted file mode 100644 index 6367cd4a0..000000000 --- a/playbooks/pre.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- hosts: all - roles: - - add-hostnames-to-hosts \ No newline at end of file diff --git a/roles/add-hostnames-to-hosts/tasks/main.yaml b/roles/add-hostnames-to-hosts/tasks/main.yaml deleted file mode 100644 index 5756752b2..000000000 --- a/roles/add-hostnames-to-hosts/tasks/main.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- name: Set up the list of hostnames and addresses - set_fact: - hostname_addresses: > - {% set hosts = {} -%} - {% for host, vars in hostvars.items() -%} - {% set _ = hosts.update({vars['ansible_hostname']: vars['nodepool']['private_ipv4']}) -%} - {% endfor -%} - {{- hosts -}} -- name: Add inventory hostnames to the hosts file - become: yes - lineinfile: - dest: /etc/hosts - state: present - insertafter: EOF - line: "{{ item.value }} {{ item.key }}" - with_dict: "{{ hostname_addresses }}" \ No newline at end of file