Adapt code to newer code style (linters)

Makes those files conformant with current linting rules and avoids
linting errors when we need to toch them again.

Previous doing "pre-commit run -a" uncovered these errors, now is no
longer reporting any other errors.

Change-Id: Ie4cf229c8f11c2b55b323eac23c89483b26d3781
This commit is contained in:
Sorin Sbarnea
2018-11-16 12:42:51 +00:00
parent 712b4da542
commit cc82349363
62 changed files with 357 additions and 334 deletions

View File

@@ -1,7 +1,7 @@
--- ---
- name: Prepare the undercloud networks for the overcloud deployment - name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-network - overcloud-prep-network
tags: tags:
@@ -9,7 +9,7 @@
- name: copy over config files - name: copy over config files
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-config - overcloud-prep-config
tags: tags:
@@ -17,7 +17,7 @@
- name: Perpare the baremetal overcloud - name: Perpare the baremetal overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- baremetal-prep-overcloud - baremetal-prep-overcloud
tags: tags:
@@ -25,7 +25,7 @@
- name: Prepare overcloud containers - name: Prepare overcloud containers
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: overcloud-prep-containers, when: containerized_overcloud|bool} - {role: overcloud-prep-containers, when: containerized_overcloud|bool}
tags: tags:
@@ -33,7 +33,7 @@
- name: Run tripleo-validations pre-introspection tests - name: Run tripleo-validations pre-introspection tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -44,7 +44,7 @@
- name: Prepare the overcloud images for deployment - name: Prepare the overcloud images for deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-images - overcloud-prep-images
tags: tags:
@@ -52,7 +52,7 @@
- name: Prepare overcloud flavors - name: Prepare overcloud flavors
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: overcloud-prep-flavors, - {role: overcloud-prep-flavors,
when: step_overcloud_prep_flavors|default(true)|bool} when: step_overcloud_prep_flavors|default(true)|bool}
@@ -61,7 +61,7 @@
- name: Prepare the SSL Configuration for the overcloud deployment - name: Prepare the SSL Configuration for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: overcloud-ssl} - {role: overcloud-ssl}
tags: tags:
@@ -69,7 +69,7 @@
- name: Run tripleo-validations pre-deployment tests - name: Run tripleo-validations pre-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:

View File

@@ -13,7 +13,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-validate - overcloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-sanity-checks, - {role: validate-sanity-checks,
when: run_sanity_checks|default(false)|bool} when: run_sanity_checks|default(false)|bool}
@@ -23,7 +23,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-validate - overcloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-simple, when: test_ping|bool} - {role: validate-simple, when: test_ping|bool}
@@ -32,7 +32,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-validate - overcloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-tempest, when: run_tempest|bool} - {role: validate-tempest, when: run_tempest|bool}
@@ -40,8 +40,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-delete - overcloud-delete
gather_facts: no gather_facts: false
roles: roles:
- {role: overcloud-delete, - {role: overcloud-delete,
when: step_delete_overcloud|default(false)|bool} when: step_delete_overcloud|default(false)|bool}

View File

@@ -1,7 +1,7 @@
--- ---
- name: Deploy the overcloud - name: Deploy the overcloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-deploy - overcloud-deploy
tags: tags:
@@ -10,7 +10,7 @@
# Add the overcloud nodes to the generated inventory. # Add the overcloud nodes to the generated inventory.
- name: Inventory the overcloud - name: Inventory the overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-deploy - overcloud-deploy
vars: vars:
@@ -33,7 +33,7 @@
- name: Run tripleo-validations post-deployment tests - name: Run tripleo-validations post-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -41,4 +41,3 @@
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}

View File

@@ -1,7 +1,7 @@
--- ---
- name: Deploy the undercloud - name: Deploy the undercloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- undercloud-deploy - undercloud-deploy
tags: tags:
@@ -9,11 +9,11 @@
- name: Configure tripleo-validations - name: Configure tripleo-validations
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
run_tripleo_validations_setup: True run_tripleo_validations_setup: true
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
@@ -28,7 +28,7 @@
- name: Build images for quickstart - name: Build images for quickstart
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: build-images, when: to_build|default(false)|bool} - {role: build-images, when: to_build|default(false)|bool}
tags: tags:

View File

@@ -36,7 +36,7 @@
- name: Setup undercloud and baremetal vms and networks in libvirt - name: Setup undercloud and baremetal vms and networks in libvirt
hosts: virthost hosts: virthost
gather_facts: yes gather_facts: true
roles: roles:
- libvirt/setup - libvirt/setup
@@ -44,7 +44,7 @@
# inventory. # inventory.
- name: Inventory the undercloud - name: Inventory the undercloud
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
vars: vars:
inventory: undercloud inventory: undercloud
roles: roles:
@@ -52,7 +52,6 @@
- name: Prepare the host for PXE forwarding - name: Prepare the host for PXE forwarding
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- baremetal-prep-virthost - baremetal-prep-virthost

View File

@@ -8,7 +8,7 @@
- name: Add the undercloud node to the generated inventory - name: Add the undercloud node to the generated inventory
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
tags: tags:
@@ -16,7 +16,7 @@
- name: Setup repositories - name: Setup repositories
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- repo-setup - repo-setup
tags: tags:
@@ -24,7 +24,7 @@
- name: Install packages - name: Install packages
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- baremetal-undercloud/packages - baremetal-undercloud/packages
tags: tags:
@@ -32,7 +32,7 @@
- name: Fetch the overcloud images - name: Fetch the overcloud images
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- fetch-images - fetch-images
tags: tags:

View File

@@ -15,7 +15,7 @@
- name: Inventory the virthost - name: Inventory the virthost
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
tags: tags:

View File

@@ -15,7 +15,7 @@
- name: Inventory the virthost - name: Inventory the virthost
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
tags: tags:

View File

@@ -12,6 +12,6 @@
- name: Clean up tripleo packages and libvirt - name: Clean up tripleo packages and libvirt
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- virthost-full-cleanup - virthost-full-cleanup

View File

@@ -6,14 +6,14 @@
- name: Ensure the overcloud nodes are added to the generated inventory - name: Ensure the overcloud nodes are added to the generated inventory
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- collect-logs - collect-logs
vars: vars:
inventory: all inventory: all
roles: roles:
- tripleo-inventory - tripleo-inventory
ignore_errors: yes ignore_errors: true
- name: Collect logs - name: Collect logs
hosts: all:!localhost:!127.0.0.2 hosts: all:!localhost:!127.0.0.2

View File

@@ -1,15 +1,16 @@
---
# This is the playbook used by the `quickstart.sh` script. # This is the playbook used by the `quickstart.sh` script.
- include: quickstart-extras.yml - include: quickstart-extras.yml
- name: Collect logs, create docs, publish - name: Collect logs, create docs, publish
hosts: all:!localhost hosts: all:!localhost
gather_facts: no gather_facts: false
roles: roles:
- {role: tripleo-collect-logs, artcl_collect: true} - {role: tripleo-collect-logs, artcl_collect: true}
- name: test overcloud deletion - name: test overcloud deletion
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: overcloud-delete} - {role: overcloud-delete}

View File

@@ -1,7 +1,7 @@
--- ---
- name: Run overcloud prep config - name: Run overcloud prep config
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- role: overcloud-prep-config - role: overcloud-prep-config
# only run when we know we have to, save time otherwise # only run when we know we have to, save time otherwise
@@ -11,13 +11,16 @@
- name: Run overcloud prep roles - name: Run overcloud prep roles
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- { role: overcloud-prep-images, step_overcloud_image: false, step_glance_upload: true, step_register: false } - {role: overcloud-prep-images,
step_overcloud_image: false,
step_glance_upload: true,
step_register: false}
- name: Run tripleo-validations pre-introspection tests - name: Run tripleo-validations pre-introspection tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -28,7 +31,7 @@
- name: Prepare for containerized deployment - name: Prepare for containerized deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-containers - overcloud-prep-containers
roles: roles:
@@ -38,7 +41,7 @@
- name: Run tripleo-validations pre-deployment tests - name: Run tripleo-validations pre-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:

View File

@@ -1,6 +1,7 @@
---
- name: Run tripleo-upgrade role to update the overcloud - name: Run tripleo-upgrade role to update the overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-update - overcloud-update
roles: roles:

View File

@@ -1,8 +1,9 @@
---
- name: Generate repo-setup script for overcloud upgrade - name: Generate repo-setup script for overcloud upgrade
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-upgrade - overcloud-upgrade
gather_facts: no gather_facts: false
vars: vars:
repo_run_live: false repo_run_live: false
repo_setup_script: "repo-setup-{{ target_upgrade_version }}.sh" repo_setup_script: "repo-setup-{{ target_upgrade_version }}.sh"
@@ -18,7 +19,7 @@
- name: Prepare containers for Upgrade - name: Prepare containers for Upgrade
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-containers - overcloud-prep-containers
roles: roles:
@@ -35,7 +36,7 @@
- name: Run tripleo-upgrade role to upgrade overcloud - name: Run tripleo-upgrade role to upgrade overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-upgrade - overcloud-upgrade
vars: vars:

View File

@@ -1,7 +1,7 @@
--- ---
- name: Deploy the overcloud - name: Deploy the overcloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-deploy - overcloud-deploy
environment: environment:
@@ -22,7 +22,7 @@
- name: Run tripleo-validations post-deployment tests - name: Run tripleo-validations post-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -30,4 +30,3 @@
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}

View File

@@ -56,7 +56,7 @@
- name: Validate the Standalone upgrade - name: Validate the Standalone upgrade
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-tempest, when: run_tempest|bool} - {role: validate-tempest, when: run_tempest|bool}
tags: tags:

View File

@@ -1,7 +1,7 @@
--- ---
- name: Add the overcloud nodes to the generated inventory - name: Add the overcloud nodes to the generated inventory
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- standalone - standalone
vars: vars:
@@ -44,7 +44,7 @@
- name: Validate the undercloud - name: Validate the undercloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-tempest, when: run_tempest|bool} - {role: validate-tempest, when: run_tempest|bool}
tags: tags:

View File

@@ -1,7 +1,7 @@
--- ---
- name: Add the overcloud nodes to the generated inventory - name: Add the overcloud nodes to the generated inventory
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-deploy - overcloud-deploy
vars: vars:
@@ -71,11 +71,11 @@
- name: Configure tripleo-validations - name: Configure tripleo-validations
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
run_tripleo_validations_setup: True run_tripleo_validations_setup: true
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}

View File

@@ -14,7 +14,7 @@
tags: tags:
- overcloud-validate - overcloud-validate
- undercloud-validate - undercloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-simple, when: test_ping|bool} - {role: validate-simple, when: test_ping|bool}
- {role: validate-tempest, when: run_tempest|bool} - {role: validate-tempest, when: run_tempest|bool}

View File

@@ -1,7 +1,7 @@
---
# setup the nodepool nodes # setup the nodepool nodes
- name: Setup the provisioned virtual machines to look like nodepool nodes - name: Setup the provisioned virtual machines to look like nodepool nodes
hosts: subnodes hosts: subnodes
gather_facts: yes gather_facts: true
roles: roles:
- nodepool-setup - nodepool-setup

View File

@@ -7,26 +7,26 @@
- name: Inventory the undercloud instance - name: Inventory the undercloud instance
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
- name: Setup the undercloud - name: Setup the undercloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- undercloud-setup - undercloud-setup
tasks: tasks:
- name: Add eth2 interface from eth2.conf - name: Add eth2 interface from eth2.conf
command: os-net-config -c {{ working_dir }}/eth2.conf -v command: os-net-config -c {{ working_dir }}/eth2.conf -v
become: yes become: true
when: when:
- network_isolation|bool - network_isolation|bool
- use_testenv_broker|default(false)|bool - use_testenv_broker|default(false)|bool
- name: Inventory the undercloud instance - name: Inventory the undercloud instance
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
@@ -49,7 +49,7 @@
- name: Get images for quickstart - name: Get images for quickstart
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
vars: vars:
ib_repo_image_inject: "{{ not to_build|bool }}" ib_repo_image_inject: "{{ not to_build|bool }}"
ib_repo_run_live: false ib_repo_run_live: false
@@ -57,9 +57,23 @@
modify_image_vc_cpu: 4 modify_image_vc_cpu: 4
modify_image_vc_verbose: true modify_image_vc_verbose: true
roles: roles:
- { role: fetch-images, when: not to_build|bool } - {role: fetch-images,
- { role: repo-setup, repo_inject_image_path: "$HOME/overcloud-full.qcow2", repo_run_live: false, when: not to_build|bool } when: not to_build|bool}
- { role: repo-setup, repo_inject_image_path: "$HOME/ironic-python-agent.initramfs", repo_run_live: false, initramfs_image: true, libguestfs_mode: false, when: not to_build|bool } - {role: repo-setup,
- { role: install-built-repo, ib_repo_image_path: "$HOME/overcloud-full.qcow2", when: compressed_gating_repo is defined and not to_build|bool } repo_inject_image_path: "$HOME/overcloud-full.qcow2",
- { role: install-built-repo, ib_repo_image_path: "$HOME/ironic-python-agent.initramfs", initramfs_image: true, libguestfs_mode: false, when: compressed_gating_repo is defined and not to_build|bool } repo_run_live: false,
when: not to_build|bool}
- {role: repo-setup,
repo_inject_image_path: "$HOME/ironic-python-agent.initramfs",
repo_run_live: false,
initramfs_image: true,
libguestfs_mode: false,
when: not to_build|bool}
- {role: install-built-repo,
ib_repo_image_path: "$HOME/overcloud-full.qcow2",
when: compressed_gating_repo is defined and not to_build|bool}
- {role: install-built-repo,
ib_repo_image_path: "$HOME/ironic-python-agent.initramfs",
initramfs_image: true,
libguestfs_mode: false,
when: compressed_gating_repo is defined and not to_build|bool}

View File

@@ -1,6 +1,6 @@
--- ---
- name: Multinode - name: Multinode
hosts: localhost hosts: localhost
gather_facts: no gather_facts: false
roles: roles:
- role: multinodes - role: multinodes

View File

@@ -1,7 +1,8 @@
---
# Prepare any additional configuration files required by the overcloud # Prepare any additional configuration files required by the overcloud
- name: Prepare configuration files for the overcloud deployment - name: Prepare configuration files for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-config - overcloud-prep-config
roles: roles:
@@ -10,7 +11,7 @@
# Prepare the overcloud for a containerized deployment # Prepare the overcloud for a containerized deployment
- name: Prepare overcloud containers - name: Prepare overcloud containers
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-containers - overcloud-prep-containers
roles: roles:
@@ -19,7 +20,7 @@
# Prepare the overcloud images for deployment # Prepare the overcloud images for deployment
- name: Prepare the overcloud images for deployment - name: Prepare the overcloud images for deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-images - overcloud-prep-images
roles: roles:
@@ -27,7 +28,7 @@
- name: Run tripleo-validations pre-introspection tests - name: Run tripleo-validations pre-introspection tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -39,7 +40,7 @@
# Prepare the overcloud flavor configuration # Prepare the overcloud flavor configuration
- name: Prepare overcloud flavors - name: Prepare overcloud flavors
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-flavors - overcloud-prep-flavors
roles: roles:
@@ -48,7 +49,7 @@
# Prepare the undercloud networks for the overcloud deployment # Prepare the undercloud networks for the overcloud deployment
- name: Prepare the undercloud networks for the overcloud deployment - name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-prep-network - overcloud-prep-network
roles: roles:
@@ -56,7 +57,7 @@
- name: Run tripleo-validations pre-deployment tests - name: Run tripleo-validations pre-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -67,7 +68,7 @@
- name: Prepare the SSL Configuration for the overcloud deployment - name: Prepare the SSL Configuration for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- overcloud-scripts - overcloud-scripts
- overcloud-ssl - overcloud-ssl

View File

@@ -1,7 +1,8 @@
---
# Deploy the overcloud # Deploy the overcloud
- name: Deploy the overcloud - name: Deploy the overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-deploy - overcloud-deploy
roles: roles:
@@ -9,7 +10,7 @@
- name: Add the overcloud nodes to the generated inventory - name: Add the overcloud nodes to the generated inventory
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
tags: tags:
- overcloud-deploy - overcloud-deploy
- overcloud-inventory - overcloud-inventory
@@ -20,7 +21,7 @@
- name: Run tripleo-validations post-deployment tests - name: Run tripleo-validations post-deployment tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:

View File

@@ -1,7 +1,8 @@
---
# Deploy the FreeIPA server # Deploy the FreeIPA server
- name: Deploy the FreeIPA server - name: Deploy the FreeIPA server
hosts: supplemental hosts: supplemental
gather_facts: no gather_facts: false
tags: tags:
- freeipa-setup - freeipa-setup
roles: roles:
@@ -10,7 +11,7 @@
# setup for the undercloud # setup for the undercloud
- name: Setup the undercloud - name: Setup the undercloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
vars: vars:
ansible_user: root ansible_user: root
tags: tags:
@@ -21,7 +22,7 @@
# Deploy the undercloud # Deploy the undercloud
- name: Deploy the undercloud - name: Deploy the undercloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- undercloud-deploy - undercloud-deploy
roles: roles:
@@ -29,12 +30,11 @@
- name: Configure tripleo-validations - name: Configure tripleo-validations
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
run_tripleo_validations_setup: True run_tripleo_validations_setup: true
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}

View File

@@ -1,3 +1,4 @@
---
# Validate the deployment # Validate the deployment
- name: setup dstat performance monitoring - name: setup dstat performance monitoring
hosts: overcloud hosts: overcloud
@@ -12,7 +13,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-validate - overcloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-simple, when: test_ping|bool} - {role: validate-simple, when: test_ping|bool}
@@ -21,7 +22,7 @@
hosts: undercloud hosts: undercloud
tags: tags:
- overcloud-validate - overcloud-validate
gather_facts: no gather_facts: false
roles: roles:
- {role: validate-tempest, when: tempest_config|bool or run_tempest|bool} - {role: validate-tempest, when: tempest_config|bool or run_tempest|bool}
@@ -30,6 +31,6 @@
hosts: localhost hosts: localhost
tags: tags:
- tripleoui-validate - tripleoui-validate
gather_facts: yes gather_facts: true
roles: roles:
- {role: validate-ui, when: validate_ui_simple|bool and undercloud_enable_ui|default(true)|bool} - {role: validate-ui, when: validate_ui_simple|bool and undercloud_enable_ui|default(true)|bool}

View File

@@ -1,6 +1,6 @@
--- ---
- name: Setup repositories - name: Setup repositories
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- repo-setup - repo-setup

View File

@@ -7,7 +7,7 @@
# Re-inventory the overcloud # Re-inventory the overcloud
- name: Inventory the overcloud - name: Inventory the overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
vars: vars:
inventory: all inventory: all
roles: roles:
@@ -16,6 +16,6 @@
# Validate the overcloud # Validate the overcloud
- name: Validate the overcloud post-delete-node - name: Validate the overcloud post-delete-node
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- validate-simple - validate-simple

View File

@@ -1,7 +1,7 @@
--- ---
- name: Snapshot virts - name: Snapshot virts
hosts: virthost hosts: virthost
gather_facts: yes gather_facts: true
vars: vars:
- libvirt_uri: qemu:///system - libvirt_uri: qemu:///system
- overcloud_nodes: - overcloud_nodes:
@@ -10,4 +10,3 @@
roles: roles:
- snapshot-libvirt - snapshot-libvirt
become: true become: true

View File

@@ -1,6 +1,6 @@
--- ---
- name: Run tempest - name: Run tempest
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- validate-tempest - validate-tempest

View File

@@ -2,18 +2,18 @@
- name: Configure tripleo-validations - name: Configure tripleo-validations
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
run_tripleo_validations_setup: True run_tripleo_validations_setup: true
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
- name: Run tripleo-validations pre-introspection tests - name: Run tripleo-validations pre-introspection tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
tags: tags:
- tripleo-validations - tripleo-validations
vars: vars:
@@ -21,4 +21,3 @@
roles: roles:
- {role: tripleo-validations, - {role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}

View File

@@ -34,7 +34,7 @@ Example Playbook
- name: Prepare for deployment on baremetal overcloud - name: Prepare for deployment on baremetal overcloud
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- ansible-role-tripleo-overcloud-prep-baremetal - ansible-role-tripleo-overcloud-prep-baremetal

View File

@@ -7,9 +7,7 @@
mode: 0755 mode: 0755
- name: Adjust MTU values and modify dnsmasq-ironic.conf - name: Adjust MTU values and modify dnsmasq-ironic.conf
become: yes become: true
shell: > shell: >
"{{ working_dir }}"/adjust-interface-mtus.sh "{{ working_dir }}"/adjust-interface-mtus.sh
when: step_adjust_mtu|bool when: step_adjust_mtu|bool

View File

@@ -7,7 +7,7 @@
mode: 0755 mode: 0755
- name: Allow traffic for the controller - name: Allow traffic for the controller
become: yes become: true
shell: > shell: >
"{{ working_dir }}"/allow-traffic-for-controller.sh "{{ working_dir }}"/allow-traffic-for-controller.sh
when: when:

View File

@@ -32,7 +32,7 @@ Example Playbook
- name: Prepare the host for PXE forwarding - name: Prepare the host for PXE forwarding
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- ansible-role-tripleo-baremetal-prep-virthost - ansible-role-tripleo-baremetal-prep-virthost

View File

@@ -9,6 +9,6 @@
wait_for: path="{{ working_dir }}/add-provisioning-interface.sh" wait_for: path="{{ working_dir }}/add-provisioning-interface.sh"
- name: Add provisioning interface to the "brovc" bridge - name: Add provisioning interface to the "brovc" bridge
become: yes become: true
shell: > shell: >
"{{ working_dir }}"/add-provisioning-interface.sh "{{ working_dir }}"/add-provisioning-interface.sh

View File

@@ -219,7 +219,7 @@ others coming from various related to tripleo-quickstart:
# Machine at this point is provided # Machine at this point is provided
- name: Add the undercloud node to the generated inventory - name: Add the undercloud node to the generated inventory
hosts: localhost hosts: localhost
gather_facts: yes gather_facts: true
roles: roles:
- tripleo-inventory - tripleo-inventory
tags: tags:
@@ -228,7 +228,7 @@ others coming from various related to tripleo-quickstart:
# Deploy the undercloud # Deploy the undercloud
- name: Install undercloud - name: Install undercloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- tripleo/undercloud - tripleo/undercloud
tags: tags:
@@ -245,7 +245,7 @@ others coming from various related to tripleo-quickstart:
# Prepare any additional configuration files required by the overcloud # Prepare any additional configuration files required by the overcloud
- name: Prepare configuration files for the overcloud deployment - name: Prepare configuration files for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-config - overcloud-prep-config
tags: tags:
@@ -254,7 +254,7 @@ others coming from various related to tripleo-quickstart:
# Prepare the overcloud images for deployment # Prepare the overcloud images for deployment
- name: Prepare the overcloud images for deployment - name: Prepare the overcloud images for deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-images - overcloud-prep-images
tags: tags:
@@ -263,7 +263,7 @@ others coming from various related to tripleo-quickstart:
# Prepare the overcloud flavor configuration # Prepare the overcloud flavor configuration
- name: Prepare overcloud flavors - name: Prepare overcloud flavors
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-flavors - overcloud-prep-flavors
tags: tags:
@@ -272,7 +272,7 @@ others coming from various related to tripleo-quickstart:
# Prepare the undercloud networks for the overcloud deployment # Prepare the undercloud networks for the overcloud deployment
- name: Prepare the undercloud networks for the overcloud deployment - name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- overcloud-prep-network - overcloud-prep-network
tags: tags:
@@ -281,7 +281,7 @@ others coming from various related to tripleo-quickstart:
# Deploy the overcloud # Deploy the overcloud
- name: Deploy the overcloud - name: Deploy the overcloud
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
roles: roles:
- overcloud-deploy - overcloud-deploy
tags: tags:
@@ -289,7 +289,7 @@ others coming from various related to tripleo-quickstart:
- name: Add the overcloud nodes to the generated inventory - name: Add the overcloud nodes to the generated inventory
hosts: undercloud hosts: undercloud
gather_facts: yes gather_facts: true
vars: vars:
inventory: all inventory: all
roles: roles:

View File

@@ -18,7 +18,7 @@
when: python_cmd is not defined when: python_cmd is not defined
- name: Ensure DLRN package dependencies - name: Ensure DLRN package dependencies
become: yes become: true
package: package:
state: present state: present
name: name:
@@ -43,7 +43,7 @@
- name: Check if virtualenv is in the system - name: Check if virtualenv is in the system
shell: "{{ python_cmd }} -m virtualenv --version" shell: "{{ python_cmd }} -m virtualenv --version"
args: args:
warn: no warn: false
register: virtualenv_exist register: virtualenv_exist
changed_when: false changed_when: false
failed_when: false failed_when: false
@@ -60,17 +60,17 @@
{% endif %} {% endif %}
- name: Create mock group - name: Create mock group
become: yes become: true
group: group:
name: mock name: mock
state: present state: present
- name: Add user to mock group - name: Add user to mock group
become: yes become: true
user: user:
name: '{{ ansible_user_id }}' name: '{{ ansible_user_id }}'
groups: mock groups: mock
append: yes append: true
- name: Ensure DLRN dir is present - name: Ensure DLRN dir is present
file: file:
@@ -81,7 +81,7 @@
shell: shell:
rm -rf '{{ build_repo_dir }}/DLRN/*' rm -rf '{{ build_repo_dir }}/DLRN/*'
args: args:
warn: no warn: false
register: result register: result
changed_when: result.stdout or result.stderr changed_when: result.stdout or result.stderr
@@ -138,8 +138,10 @@
gawk '{ print $0 }; /^# repos$/ { exit }' {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}.cfg gawk '{ print $0 }; /^# repos$/ { exit }' {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}.cfg
> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg; > {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg;
cat /etc/yum.repos.d/quickstart-{{ ansible_distribution | lower }}-*.repo >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg; cat /etc/yum.repos.d/quickstart-{{ ansible_distribution | lower }}-*.repo >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg;
find /etc/yum.repos.d -name "delorean*repo" ! -name "delorean*build-deps.repo" -exec cat {} \; >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg; find /etc/yum.repos.d -name "delorean*repo" ! -name "delorean*build-deps.repo" -exec cat {} \;
find /etc/yum.repos.d -name "delorean*build-deps.repo" -exec sed 's/enabled=.*/enabled=1/g' {} \; >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg; >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg;
find /etc/yum.repos.d -name "delorean*build-deps.repo" -exec sed 's/enabled=.*/enabled=1/g' {} \;
>> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg;
echo '"""' >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg; echo '"""' >> {{ build_repo_dir }}/DLRN/scripts/{{ ansible_distribution | lower }}-local.cfg;
mkdir -p /tmp/fake-dlrn-repos/current; mkdir -p /tmp/fake-dlrn-repos/current;
touch /tmp/fake-dlrn-repos/delorean-deps.repo; touch /tmp/fake-dlrn-repos/delorean-deps.repo;

View File

@@ -16,7 +16,7 @@
only_successful_tasks: "{{ influxdb_only_successful_tasks }}" only_successful_tasks: "{{ influxdb_only_successful_tasks }}"
- name: Get ARA json data for undercloud - name: Get ARA json data for undercloud
become: yes become: true
shell: "{{ local_working_dir }}/bin/ara result list --all -f json" shell: "{{ local_working_dir }}/bin/ara result list --all -f json"
register: ara_root_data register: ara_root_data

View File

@@ -306,7 +306,7 @@
dest: "/tmp/{{ inventory_hostname }}-rsync-filter" dest: "/tmp/{{ inventory_hostname }}-rsync-filter"
- name: Gather the logs to /tmp - name: Gather the logs to /tmp
become: yes become: true
shell: > shell: >
set -o pipefail && set -o pipefail &&
rsync --quiet --recursive --copy-links --prune-empty-dirs rsync --quiet --recursive --copy-links --prune-empty-dirs
@@ -333,16 +333,16 @@
fetch: fetch:
src: "/tmp/{{ inventory_hostname }}.tar.gz" src: "/tmp/{{ inventory_hostname }}.tar.gz"
dest: "{{ artcl_collect_dir }}/{{ inventory_hostname }}.tar.gz" dest: "{{ artcl_collect_dir }}/{{ inventory_hostname }}.tar.gz"
flat: yes flat: true
validate_checksum: no validate_checksum: false
when: artcl_tar_gz|bool when: artcl_tar_gz|bool
- name: Fetch log archive (tar) - name: Fetch log archive (tar)
fetch: fetch:
src: "/tmp/{{ inventory_hostname }}.tar" src: "/tmp/{{ inventory_hostname }}.tar"
dest: "{{ artcl_collect_dir }}/{{ inventory_hostname }}.tar" dest: "{{ artcl_collect_dir }}/{{ inventory_hostname }}.tar"
flat: yes flat: true
validate_checksum: no validate_checksum: false
when: artcl_gzip_only|bool when: artcl_gzip_only|bool
- name: Delete temporary log directory after collection - name: Delete temporary log directory after collection

View File

@@ -8,7 +8,7 @@
shell: > shell: >
gunzip "{{ artcl_collect_dir }}/undercloud/home/{{ undercloud_user }}/{{ item }}.sh.gz"; gunzip "{{ artcl_collect_dir }}/undercloud/home/{{ undercloud_user }}/{{ item }}.sh.gz";
with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}" with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}"
ignore_errors: yes ignore_errors: true
when: artcl_gzip_only|bool when: artcl_gzip_only|bool
- name: Generate rST docs from scripts and move to Sphinx src dir - name: Generate rST docs from scripts and move to Sphinx src dir
@@ -17,19 +17,19 @@
"{{ artcl_collect_dir }}/undercloud/home/{{ undercloud_user }}/{{ item }}.sh" > \ "{{ artcl_collect_dir }}/undercloud/home/{{ undercloud_user }}/{{ item }}.sh" > \
"{{ artcl_docs_source_dir }}/{{ item }}.rst" "{{ artcl_docs_source_dir }}/{{ item }}.rst"
with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}" with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}"
ignore_errors: yes ignore_errors: true
- name: Fetch static rST docs to include in output docs - name: Fetch static rST docs to include in output docs
shell: > shell: >
cp "{{ artcl_docs_source_dir }}/../static/{{ item }}.rst" "{{ artcl_docs_source_dir }}" cp "{{ artcl_docs_source_dir }}/../static/{{ item }}.rst" "{{ artcl_docs_source_dir }}"
with_items: "{{ artcl_create_docs_payload.included_static_docs }}" with_items: "{{ artcl_create_docs_payload.included_static_docs }}"
ignore_errors: yes ignore_errors: true
- name: Generate fresh index.rst for Sphinx - name: Generate fresh index.rst for Sphinx
template: template:
src: index.rst.j2 src: index.rst.j2
dest: "{{ artcl_docs_source_dir }}/index.rst" dest: "{{ artcl_docs_source_dir }}/index.rst"
force: yes force: true
- name: Ensure docs dir exists - name: Ensure docs dir exists
file: file:
@@ -41,4 +41,4 @@
set -o pipefail && set -o pipefail &&
sphinx-build -b html "{{ artcl_docs_source_dir }}" "{{ artcl_docs_build_dir }}" sphinx-build -b html "{{ artcl_docs_source_dir }}" "{{ artcl_docs_build_dir }}"
2>&1 {{ timestamper_cmd }} > {{ artcl_collect_dir }}/docs/sphinx_build.log 2>&1 {{ timestamper_cmd }} > {{ artcl_collect_dir }}/docs/sphinx_build.log
ignore_errors: yes ignore_errors: true

View File

@@ -21,35 +21,35 @@
{{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.json; {{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.json;
cp -r {{ local_working_dir }}/ara_oooq {{ artcl_collect_dir }}/; cp -r {{ local_working_dir }}/ara_oooq {{ artcl_collect_dir }}/;
{% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq;{% endif %} {% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq;{% endif %}
ignore_errors: yes ignore_errors: true
- name: Generate and retrieve root the ARA static playbook report - name: Generate and retrieve root the ARA static playbook report
become: yes become: true
shell: > shell: >
{{ local_working_dir }}/bin/ara generate html {{ local_working_dir }}/ara_oooq_root; {{ local_working_dir }}/bin/ara generate html {{ local_working_dir }}/ara_oooq_root;
{{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.oooq.root.json; {{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.oooq.root.json;
cp -r {{ local_working_dir }}/ara_oooq_root {{ artcl_collect_dir }}/; cp -r {{ local_working_dir }}/ara_oooq_root {{ artcl_collect_dir }}/;
{% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq_root;{% endif %} {% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq_root;{% endif %}
ignore_errors: yes ignore_errors: true
- name: Generate and retrieve the ARA static playbook report for OC deploy - name: Generate and retrieve the ARA static playbook report for OC deploy
become: yes become: true
shell: > shell: >
{{ local_working_dir }}/bin/ara generate html {{ local_working_dir }}/ara_oooq_oc; {{ local_working_dir }}/bin/ara generate html {{ local_working_dir }}/ara_oooq_oc;
{{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.oooq.oc.json; {{ local_working_dir }}/bin/ara task list --all -f json > {{ artcl_collect_dir }}/ara.oooq.oc.json;
cp -r {{ local_working_dir }}/ara_oooq_oc {{ artcl_collect_dir }}/; cp -r {{ local_working_dir }}/ara_oooq_oc {{ artcl_collect_dir }}/;
{% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq_oc;{% endif %} {% if artcl_gzip_only|bool %}gzip --best --recursive {{ artcl_collect_dir }}/ara_oooq_oc;{% endif %}
ignore_errors: yes ignore_errors: true
environment: environment:
ARA_DATABASE: 'sqlite:///{{ ara_overcloud_db_path }}' ARA_DATABASE: 'sqlite:///{{ ara_overcloud_db_path }}'
- include: ara_graphite.yml - include: ara_graphite.yml
when: ara_graphite_server is defined when: ara_graphite_server is defined
ignore_errors: yes ignore_errors: true
- include: ara_influxdb.yml - include: ara_influxdb.yml
when: influxdb_url is defined or influxdb_create_data_file|bool when: influxdb_url is defined or influxdb_create_data_file|bool
ignore_errors: yes ignore_errors: true
- name: fetch stackviz results to the root of the collect_dir - name: fetch stackviz results to the root of the collect_dir
shell: > shell: >

View File

@@ -30,7 +30,7 @@ Sample playbook to call the role
# Deploy the FreeIPA Server # Deploy the FreeIPA Server
- name: Deploy FreeIPA - name: Deploy FreeIPA
hosts: freeipa_host hosts: freeipa_host
gather_facts: no gather_facts: false
roles: roles:
- freeipa-setup - freeipa-setup
``` ```

View File

@@ -36,13 +36,13 @@ Including an example of how to use this role
--- ---
- name: Run repo install - name: Run repo install
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- install-built-repo - install-built-repo
- name: Run repo install - name: Run repo install
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
vars: vars:
ib_repo_image_inject: true ib_repo_image_inject: true
ib_repo_image_path: "{{ working_dir }}/overcloud-full.qcow2" ib_repo_image_path: "{{ working_dir }}/overcloud-full.qcow2"

View File

@@ -52,7 +52,7 @@ Example Playbook
--- ---
- name: Multinode - name: Multinode
hosts: localhost hosts: localhost
gather_facts: no gather_facts: false
roles: roles:
- role: multinodes - role: multinodes

View File

@@ -30,7 +30,7 @@ Example Playbook
- name: Copy configuration files - name: Copy configuration files
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- ansible-role-tripleo-overcloud-prep-config - ansible-role-tripleo-overcloud-prep-config

View File

@@ -47,7 +47,7 @@ Example Playbook
- name: Copy configuration files - name: Copy configuration files
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- ansible-role-tripleo-overcloud-prep-config - ansible-role-tripleo-overcloud-prep-config

View File

@@ -76,7 +76,7 @@ Example Playbook
- name: Copy configuration files - name: Copy configuration files
hosts: virthost hosts: virthost
gather_facts: no gather_facts: false
roles: roles:
- ansible-role-tripleo-overcloud-prep-config - ansible-role-tripleo-overcloud-prep-config

View File

@@ -39,7 +39,7 @@ Example Usage
--- ---
- name: Create a snapshot (or update a snapshot) - name: Create a snapshot (or update a snapshot)
hosts: virthost hosts: virthost
gather_facts: yes gather_facts: true
vars: vars:
- snapshot_create: true - snapshot_create: true
- libvirt_volume_path: /opt/vm_images - libvirt_volume_path: /opt/vm_images
@@ -53,7 +53,7 @@ Example Usage
- name: Restore a snapshot - name: Restore a snapshot
hosts: virthost hosts: virthost
gather_facts: yes gather_facts: true
vars: vars:
- snapshot_restore: true - snapshot_restore: true
- libvirt_volume_path: /opt/vm_images - libvirt_volume_path: /opt/vm_images

View File

@@ -196,7 +196,7 @@ Sample playbook to call the role
# Deploy the undercloud # Deploy the undercloud
- name: Install undercloud - name: Install undercloud
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- undercloud-deploy - undercloud-deploy
``` ```
@@ -319,7 +319,7 @@ And an example playbook to call the role is:
# Deploy the undercloud # Deploy the undercloud
- name: Deploy undercloud (experimental) - name: Deploy undercloud (experimental)
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
vars: vars:
containerized_undercloud: true containerized_undercloud: true
undercloud_install_script: undercloud-deploy.sh.j2 undercloud_install_script: undercloud-deploy.sh.j2

View File

@@ -58,7 +58,7 @@ Example Playbook
- name: Set up CentOS undercloud node to run TripleO Quickstart - name: Set up CentOS undercloud node to run TripleO Quickstart
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- undercloud-setup - undercloud-setup

View File

@@ -11,7 +11,7 @@
mode: 0755 mode: 0755
- name: Setup interfaces, connectivity on the undercloud - name: Setup interfaces, connectivity on the undercloud
become: yes become: true
shell: > shell: >
set -o pipefail && set -o pipefail &&
{{ working_dir }}/ovb-undercloud-connectivity.sh 2>&1 {{ timestamper_cmd }} > {{ working_dir }}/ovb-undercloud-connectivity.sh 2>&1 {{ timestamper_cmd }} >

View File

@@ -145,7 +145,7 @@ Example Playbook
--- ---
- name: Run tempest - name: Run tempest
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: false
roles: roles:
- validate-tempest - validate-tempest

View File

@@ -53,7 +53,7 @@
when: run_tempest|bool when: run_tempest|bool
tags: tags:
- run-stackviz - run-stackviz
ignore_errors: yes ignore_errors: true
- include: post-tempest.yml - include: post-tempest.yml
when: post_tempest|bool and run_tempest|bool when: post_tempest|bool and run_tempest|bool

View File

@@ -44,17 +44,20 @@
when: tempest_whitelist|length > 0 when: tempest_whitelist|length > 0
- name: Install packages to generate subunit results - name: Install packages to generate subunit results
become: yes become: true
package: name={{ item }} state=present package:
with_items: name:
- python-subunit - python-subunit
- subunit-filters - subunit-filters
- python-os-testr - python-os-testr
state: present
when: tempest_format in ['container', 'packages'] when: tempest_format in ['container', 'packages']
- name: Install stestr - name: Install stestr
become: yes become: true
package: name=python-stestr state=present package:
name: python-stestr
state: present
when: tempest_format in ['container', 'packages'] and release not in ['newton', 'ocata'] when: tempest_format in ['container', 'packages'] and release not in ['newton', 'ocata']
- ignore_errors: true - ignore_errors: true
@@ -87,5 +90,5 @@
--to-file "{{ working_dir }}/{{ skip_file }}" --format txt --to-file "{{ working_dir }}/{{ skip_file }}" --format txt
args: args:
chdir: "{{ working_dir }}/bugcheck" chdir: "{{ working_dir }}/bugcheck"
ignore_errors: yes ignore_errors: true
when: check_tempest_bugs|bool when: check_tempest_bugs|bool

View File

@@ -41,13 +41,13 @@
fetch: fetch:
src: "{{ working_dir }}/tempest/tempest.html" src: "{{ working_dir }}/tempest/tempest.html"
dest: "{{ local_working_dir }}/tempest.html" dest: "{{ local_working_dir }}/tempest.html"
flat: yes flat: true
- name: Fetch nosetests results - name: Fetch nosetests results
fetch: fetch:
src: "{{ working_dir }}/tempest/tempest.xml" src: "{{ working_dir }}/tempest/tempest.xml"
dest: "{{ local_working_dir }}/nosetests.xml" dest: "{{ local_working_dir }}/nosetests.xml"
flat: yes flat: true
- name: Copying tempestmail files - name: Copying tempestmail files
synchronize: synchronize:
@@ -71,5 +71,4 @@
--skip-file "{{ working_dir }}/tempestmail/tempest_skip_{{ release }}.yml" --skip-file "{{ working_dir }}/tempestmail/tempest_skip_{{ release }}.yml"
args: args:
chdir: "{{ working_dir }}/tempestmail" chdir: "{{ working_dir }}/tempestmail"
ignore_errors: yes ignore_errors: true

View File

@@ -19,7 +19,7 @@
- name: Install openstack services tempest plugins - name: Install openstack services tempest plugins
yum: state=latest name={{ item }} yum: state=latest name={{ item }}
with_items: "{{ tempest_plugins }}" with_items: "{{ tempest_plugins }}"
become: yes become: true
when: tempest_plugins|length > 0 when: tempest_plugins|length > 0
- name: Install openstack tempest - name: Install openstack tempest

View File

@@ -1,2 +1,3 @@
---
dependencies: dependencies:
- extras-common - extras-common

View File

@@ -1,2 +1,3 @@
---
dependencies: dependencies:
- extras-common - extras-common

View File

@@ -51,11 +51,11 @@
command: virsh net-destroy default command: virsh net-destroy default
- name: destroy default pool - name: destroy default pool
become: yes become: true
command: virsh pool-destroy default command: virsh pool-destroy default
- name: destroy local libvirt storage, networks and config - name: destroy local libvirt storage, networks and config
become: yes become: true
shell: "rm -rf {{ working_dir }}/.config/libvirt" shell: "rm -rf {{ working_dir }}/.config/libvirt"
- name: get user_id for stack user - name: get user_id for stack user
@@ -118,7 +118,7 @@
- name: kill all the network managers processes - name: kill all the network managers processes
shell: kill -9 $(ps aux | grep NetworkManager | awk '{print $2}') shell: kill -9 $(ps aux | grep NetworkManager | awk '{print $2}')
ignore_errors: yes # When no NM running, killall exits with 1 ignore_errors: true # When no NM running, killall exits with 1
- name: ensure the network service is enabled - name: ensure the network service is enabled
service: name=network enabled=yes service: name=network enabled=yes
@@ -130,9 +130,8 @@
- /usr/bin/instack-setup-host - /usr/bin/instack-setup-host
- name: remove any instack rpms from the host - name: remove any instack rpms from the host
yum: name={{item}} state=absent yum:
ignore_errors: yes name:
with_items:
- instack-* - instack-*
- rdo-release - rdo-release
- rhos-release - rhos-release
@@ -156,6 +155,8 @@
- python-rdomanager-* - python-rdomanager-*
- jq - jq
- python-tripleo* - python-tripleo*
state: absent
ignore_errors: true
- name: find any remaining rpms from director repos - name: find any remaining rpms from director repos
shell: "yumdb search from_repo rhelosp-*-director* | egrep -v from_repo | grep -v '^$' | tail -n +2 " shell: "yumdb search from_repo rhelosp-*-director* | egrep -v from_repo | grep -v '^$' | tail -n +2 "
@@ -179,7 +180,7 @@
- name: remove any openstack rpms from the host - name: remove any openstack rpms from the host
yum: name={{item}} state=absent yum: name={{item}} state=absent
ignore_errors: yes ignore_errors: true
with_flattened: with_flattened:
- "{{ director_rpms.stdout_lines }}" - "{{ director_rpms.stdout_lines }}"
- "{{ rhos_rpms.stdout_lines }}" - "{{ rhos_rpms.stdout_lines }}"

View File

@@ -1,3 +1,4 @@
---
- project: - project:
templates: templates:
- tripleo-undercloud-jobs - tripleo-undercloud-jobs