Merge "Bring consistency to tags"

This commit is contained in:
Jenkins 2017-01-13 16:06:14 +00:00 committed by Gerrit Code Review
commit 6a6b577be7
10 changed files with 53 additions and 24 deletions

View File

@ -40,15 +40,30 @@
- nova-virt-detect - nova-virt-detect
- include: nova_pre_install.yml - include: nova_pre_install.yml
tags:
- nova-install
- include: nova_install.yml - include: nova_install.yml
tags:
- nova-install
- include: nova_post_install.yml - include: nova_post_install.yml
tags:
- nova-config
- include: nova_init_common.yml - include: nova_init_common.yml
tags:
- nova-config
- include: nova_db_setup.yml - include: nova_db_setup.yml
when: inventory_hostname == groups['nova_api_os_compute'][0] when: inventory_hostname == groups['nova_api_os_compute'][0]
tags:
- nova-config
- include: nova_service_setup.yml - include: nova_service_setup.yml
when: inventory_hostname == groups['nova_api_os_compute'][0] when: inventory_hostname == groups['nova_api_os_compute'][0]
tags:
- nova-config
- include: nova_compute.yml - include: nova_compute.yml
when: inventory_hostname in groups['nova_compute'] when: inventory_hostname in groups['nova_compute']

View File

@ -24,7 +24,13 @@
- include: nova_compute_ironic.yml - include: nova_compute_ironic.yml
when: nova_virt_type == 'ironic' when: nova_virt_type == 'ironic'
tags:
- nova-install
- include: nova_compute_key_populate.yml - include: nova_compute_key_populate.yml
tags:
- nova-config
- include: nova_compute_key_distribute.yml - include: nova_compute_key_distribute.yml
tags:
- nova-config

View File

@ -14,6 +14,8 @@
# limitations under the License. # limitations under the License.
- include: nova_compute_kvm_install.yml - include: nova_compute_kvm_install.yml
tags:
- nova-config
- name: Add nova user to libvirtd group - name: Add nova user to libvirtd group
user: user:
@ -21,12 +23,14 @@
groups: "{{ libvirt_group }}" groups: "{{ libvirt_group }}"
append: "yes" append: "yes"
tags: tags:
- nova-install
- nova-libvirt - nova-libvirt
- name: Ensure kvm permissions - name: Ensure kvm permissions
command: "udevadm trigger" command: "udevadm trigger"
changed_when: false changed_when: false
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- name: Set libvirtd config - name: Set libvirtd config
@ -38,6 +42,7 @@
mode: 0644 mode: 0644
notify: Restart libvirt-bin notify: Restart libvirt-bin
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- nova-libvirt - nova-libvirt
@ -53,6 +58,7 @@
or nova_network_type == 'calico' or nova_network_type == 'calico'
notify: Restart libvirt-bin notify: Restart libvirt-bin
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- nova-libvirt - nova-libvirt
@ -67,6 +73,7 @@
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'
notify: Restart libvirt-bin notify: Restart libvirt-bin
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- nova-libvirt - nova-libvirt
@ -81,6 +88,7 @@
- ansible_pkg_mgr == 'yum' - ansible_pkg_mgr == 'yum'
notify: Restart libvirt-bin notify: Restart libvirt-bin
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- nova-libvirt - nova-libvirt
@ -95,11 +103,19 @@
- ansible_pkg_mgr == 'yum' - ansible_pkg_mgr == 'yum'
notify: Restart libvirt-bin notify: Restart libvirt-bin
tags: tags:
- nova-config
- nova-kvm - nova-kvm
- nova-libvirt - nova-libvirt
- include: nova_disable_smt.yml - include: nova_disable_smt.yml
when: when:
- ansible_architecture == 'ppc64le' - ansible_architecture == 'ppc64le'
tags:
- nova-config
- include: nova_compute_kvm_virsh_net_remove.yml - include: nova_compute_kvm_virsh_net_remove.yml
tags:
- nova-config
- nova-kvm
- nova-libvirt
- nova-kvm-virsh-net

View File

@ -17,21 +17,12 @@
shell: "virsh net-list | awk '/default/'" shell: "virsh net-list | awk '/default/'"
changed_when: false changed_when: false
register: default_net register: default_net
tags:
- nova-kvm
- nova-kvm-virsh-net
- name: Disable libvirt default network - name: Disable libvirt default network
command: "virsh net-autostart default --disable" command: "virsh net-autostart default --disable"
failed_when: false failed_when: false
when: default_net.stdout|search('default') when: default_net.stdout|search('default')
tags:
- nova-kvm
- nova-kvm-virsh-net
- name: Destroy libvirt default network - name: Destroy libvirt default network
command: "virsh net-destroy default" command: "virsh net-destroy default"
when: default_net.stdout|search('default') when: default_net.stdout|search('default')
tags:
- nova-kvm
- nova-kvm-virsh-net

View File

@ -14,6 +14,8 @@
# limitations under the License. # limitations under the License.
- include: nova_compute_lxd_install.yml - include: nova_compute_lxd_install.yml
tags:
- nova-install
- name: Add nova user to lxd group - name: Add nova user to lxd group
user: user:
@ -22,6 +24,7 @@
append: "yes" append: "yes"
tags: tags:
- nova-lxd - nova-lxd
- nova-install
- name: Place lxd config script - name: Place lxd config script
template: template:
@ -33,9 +36,11 @@
register: lxd_init_script register: lxd_init_script
tags: tags:
- nova-lxd - nova-lxd
- nova-config
- name: Configure lxd init - name: Configure lxd init
command: "{{ nova_system_home_folder }}/lxd-init.sh" command: "{{ nova_system_home_folder }}/lxd-init.sh"
when: lxd_init_script | changed when: lxd_init_script | changed
tags: tags:
- nova-lxd - nova-lxd
- nova-config

View File

@ -28,5 +28,4 @@
retries: 5 retries: 5
delay: 2 delay: 2
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages

View File

@ -14,6 +14,9 @@
# limitations under the License. # limitations under the License.
- include: nova_compute_powervm_install.yml - include: nova_compute_powervm_install.yml
tags:
- nova-install
- nova-powervm
- name: Add nova user to pvm_admin group - name: Add nova user to pvm_admin group
user: user:
@ -21,12 +24,14 @@
groups: "pvm_admin" groups: "pvm_admin"
append: "yes" append: "yes"
tags: tags:
- nova-install
- nova-powervm - nova-powervm
- name: Ensure powervm permissions - name: Ensure powervm permissions
command: "udevadm trigger" command: "udevadm trigger"
changed_when: false changed_when: false
tags: tags:
- nova-config
- nova-powervm - nova-powervm
- name: Template Nova interfaces file - name: Template Nova interfaces file
@ -37,4 +42,5 @@
group: "root" group: "root"
mode: 0644 mode: 0644
tags: tags:
- nova-config
- nova-powervm - nova-powervm

View File

@ -18,7 +18,6 @@
path: "/usr/share/novnc" path: "/usr/share/novnc"
state: "absent" state: "absent"
tags: tags:
- nova-install
- nova-novnc-git - nova-novnc-git
- name: Get package from git - name: Get package from git
@ -35,7 +34,6 @@
retries: 5 retries: 5
delay: 2 delay: 2
tags: tags:
- nova-install
- nova-novnc-git - nova-novnc-git
- name: Install pip packages - name: Install pip packages
@ -52,7 +50,6 @@
when: when:
- nova_get_venv | failed or nova_get_venv | skipped or nova_developer_mode | bool - nova_get_venv | failed or nova_get_venv | skipped or nova_developer_mode | bool
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- include: nova_console_novnc_ssl.yml - include: nova_console_novnc_ssl.yml
@ -63,3 +60,4 @@
tags: tags:
- nova-novnc - nova-novnc
- nova-novnc-ssl - nova-novnc-ssl
- nova-config

View File

@ -25,6 +25,8 @@
local_action: command cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }} local_action: command cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }}
changed_when: false changed_when: false
register: nova_console_user_ssl_combined register: nova_console_user_ssl_combined
tags:
- nova-config
- name: Drop user provided ssl cert and key - name: Drop user provided ssl cert and key
copy: copy:
@ -38,3 +40,5 @@
- { content: "{{ nova_console_user_ssl_combined.stdout ~ '\n' }}", dest: "{{ nova_console_ssl_cert }}", mode: "0644" } - { content: "{{ nova_console_user_ssl_combined.stdout ~ '\n' }}", dest: "{{ nova_console_ssl_cert }}", mode: "0644" }
- { src: "{{ nova_console_user_ssl_key }}", dest: "{{ nova_console_ssl_key }}", mode: "0640" } - { src: "{{ nova_console_user_ssl_key }}", dest: "{{ nova_console_ssl_key }}", mode: "0640" }
notify: Restart nova services notify: Restart nova services
tags:
- nova-config

View File

@ -68,7 +68,6 @@
delay: 2 delay: 2
with_items: "{{ nova_distro_packages }}" with_items: "{{ nova_distro_packages }}"
tags: tags:
- nova-install
- nova-apt-packages - nova-apt-packages
- name: Remove known problem packages for the Spice console - name: Remove known problem packages for the Spice console
@ -84,7 +83,6 @@
- inventory_hostname in groups['nova_console'] - inventory_hostname in groups['nova_console']
- nova_console_type == "spice" - nova_console_type == "spice"
tags: tags:
- nova-install
- nova-apt-packages - nova-apt-packages
- nova-spice-apt-packages - nova-spice-apt-packages
@ -101,7 +99,6 @@
- inventory_hostname in groups['nova_console'] - inventory_hostname in groups['nova_console']
- nova_console_type == "novnc" - nova_console_type == "novnc"
tags: tags:
- nova-install
- nova-apt-packages - nova-apt-packages
- nova-novnc-apt-packages - nova-novnc-apt-packages
@ -146,7 +143,6 @@
{% endfor %} {% endfor %}
when: nova_developer_mode | bool when: nova_developer_mode | bool
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Install requires pip packages - name: Install requires pip packages
@ -161,7 +157,6 @@
retries: 5 retries: 5
delay: 2 delay: 2
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Attempt venv download - name: Attempt venv download
@ -172,7 +167,6 @@
register: nova_get_venv register: nova_get_venv
when: nova_venv_download | bool when: nova_venv_download | bool
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Remove existing venv - name: Remove existing venv
@ -181,7 +175,6 @@
state: absent state: absent
when: nova_get_venv | changed when: nova_get_venv | changed
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Create nova venv dir - name: Create nova venv dir
@ -190,7 +183,6 @@
state: directory state: directory
register: nova_venv_dir register: nova_venv_dir
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Unarchive pre-built venv - name: Unarchive pre-built venv
@ -203,7 +195,6 @@
- nova_get_venv | changed - nova_get_venv | changed
notify: Restart nova services notify: Restart nova services
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: Install pip packages - name: Install pip packages
@ -223,7 +214,6 @@
when: nova_get_venv | failed or nova_get_venv | skipped or nova_developer_mode | bool when: nova_get_venv | failed or nova_get_venv | skipped or nova_developer_mode | bool
notify: Restart nova services notify: Restart nova services
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- name: CentOS remove python from path first - name: CentOS remove python from path first
@ -242,7 +232,6 @@
- not nova_developer_mode | bool - not nova_developer_mode | bool
- nova_get_venv | changed - nova_get_venv | changed
tags: tags:
- nova-install
- nova-pip-packages - nova-pip-packages
- include: nova_console_spice_install.yml - include: nova_console_spice_install.yml