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:
parent
712b4da542
commit
cc82349363
|
@ -1,79 +1,79 @@
|
||||||
---
|
---
|
||||||
- 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:
|
||||||
- overcloud-prep-network
|
- overcloud-prep-network
|
||||||
|
|
||||||
- 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:
|
||||||
- overcloud-prep-config
|
- overcloud-prep-config
|
||||||
|
|
||||||
- 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:
|
||||||
- baremetal-prep-overcloud
|
- baremetal-prep-overcloud
|
||||||
|
|
||||||
- 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:
|
||||||
- overcloud-prep-containers
|
- overcloud-prep-containers
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-introspection']
|
validations_group: ['pre-introspection']
|
||||||
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: 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:
|
||||||
- overcloud-prep-images
|
- overcloud-prep-images
|
||||||
|
|
||||||
- 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}
|
||||||
tags:
|
tags:
|
||||||
- overcloud-prep-flavors
|
- overcloud-prep-flavors
|
||||||
|
|
||||||
- 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:
|
||||||
- overcloud-ssl
|
- overcloud-ssl
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-deployment']
|
validations_group: ['pre-deployment']
|
||||||
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}
|
||||||
|
|
|
@ -5,43 +5,42 @@
|
||||||
tags:
|
tags:
|
||||||
- overcloud-validate
|
- overcloud-validate
|
||||||
roles:
|
roles:
|
||||||
- { role: validate-perf,
|
- {role: validate-perf,
|
||||||
when: validate_performance|bool and run_tempest|bool }
|
when: validate_performance|bool and run_tempest|bool}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Sanity check the overcloud services
|
- name: Sanity check the overcloud services
|
||||||
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}
|
||||||
|
|
||||||
# Validate the deployment
|
# Validate the deployment
|
||||||
- name: validate the overcloud
|
- name: validate the overcloud
|
||||||
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}
|
||||||
|
|
||||||
# Execute tempest against the overcloud deployment
|
# Execute tempest against the overcloud deployment
|
||||||
- name: Execute tempest against the overcloud
|
- name: Execute tempest against the overcloud
|
||||||
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}
|
||||||
|
|
||||||
- name: Delete the overcloud
|
- name: Delete the overcloud
|
||||||
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}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
---
|
---
|
||||||
- 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:
|
||||||
- overcloud-deploy
|
- overcloud-deploy
|
||||||
|
|
||||||
# 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:
|
||||||
inventory: all
|
inventory: all
|
||||||
roles:
|
roles:
|
||||||
- tripleo-inventory
|
- tripleo-inventory
|
||||||
|
|
||||||
- name: Check the result of the deployment
|
- name: Check the result of the deployment
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- overcloud-deploy
|
- overcloud-deploy
|
||||||
|
@ -33,12 +33,11 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['post-deployment']
|
validations_group: ['post-deployment']
|
||||||
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}
|
||||||
|
|
||||||
|
|
|
@ -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,28 +9,28 @@
|
||||||
|
|
||||||
- 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: Validate the undercloud
|
- name: Validate the undercloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
roles:
|
roles:
|
||||||
- { role: validate-undercloud,
|
- {role: validate-undercloud,
|
||||||
when: run_validate_undercloud|default(false)|bool }
|
when: run_validate_undercloud|default(false)|bool}
|
||||||
tags:
|
tags:
|
||||||
- validate-undercloud
|
- validate-undercloud
|
||||||
|
|
||||||
- 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:
|
||||||
- get-images
|
- get-images
|
||||||
- images
|
- images
|
||||||
|
|
|
@ -34,25 +34,24 @@
|
||||||
roles:
|
roles:
|
||||||
- environment/setup
|
- environment/setup
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
# Add the undercloud node to the generated
|
# Add the undercloud node to the generated
|
||||||
# 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:
|
||||||
- tripleo-inventory
|
- tripleo-inventory
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
tags:
|
tags:
|
||||||
- provision
|
- provision
|
||||||
|
|
||||||
- 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:
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
tags:
|
tags:
|
||||||
- provision
|
- provision
|
||||||
|
|
||||||
- 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:
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
ansible_user: "root"
|
ansible_user: "root"
|
||||||
ansible_host: "{{ virthost }}"
|
ansible_host: "{{ virthost }}"
|
||||||
|
|
||||||
- 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
|
||||||
|
|
|
@ -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
|
||||||
|
@ -23,4 +23,4 @@
|
||||||
- name: Create docs, publish logs
|
- name: Create docs, publish logs
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- {role: collect-logs, artcl_collect: false }
|
- {role: collect-logs, artcl_collect: false}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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,24 +11,27 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-introspection']
|
validations_group: ['pre-introspection']
|
||||||
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: 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,11 +41,11 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-deployment']
|
validations_group: ['pre-deployment']
|
||||||
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}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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,12 +22,11 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['post-deployment']
|
validations_group: ['post-deployment']
|
||||||
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}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
||||||
roles:
|
roles:
|
||||||
- build-test-packages
|
- build-test-packages
|
||||||
- { role: install-built-repo, when: compressed_gating_repo is defined }
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
||||||
tags:
|
tags:
|
||||||
- standalone-upgrade
|
- standalone-upgrade
|
||||||
|
|
||||||
|
@ -56,8 +56,8 @@
|
||||||
|
|
||||||
- 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:
|
||||||
- standalone-upgrade
|
- standalone-upgrade
|
||||||
|
|
|
@ -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:
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
||||||
roles:
|
roles:
|
||||||
- build-test-packages
|
- build-test-packages
|
||||||
- { role: install-built-repo, when: compressed_gating_repo is defined }
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
||||||
tags:
|
tags:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@
|
||||||
|
|
||||||
- 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:
|
||||||
- standalone
|
- standalone
|
||||||
|
|
|
@ -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:
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
|
||||||
roles:
|
roles:
|
||||||
- build-test-packages
|
- build-test-packages
|
||||||
- { role: install-built-repo, when: compressed_gating_repo is defined }
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
||||||
tags:
|
tags:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
@ -71,14 +71,14 @@
|
||||||
|
|
||||||
- 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: Validate the undercloud
|
- name: Validate the undercloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
tags:
|
tags:
|
||||||
- overcloud-validate
|
- overcloud-validate
|
||||||
roles:
|
roles:
|
||||||
- { role: validate-perf,
|
- {role: validate-perf,
|
||||||
when: validate_performance|bool and run_tempest|bool }
|
when: validate_performance|bool and run_tempest|bool}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
# Validate the deployment
|
# Validate the deployment
|
||||||
- name: validate the overcloud
|
- name: validate the overcloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -5,28 +5,28 @@
|
||||||
- include: prepare-slave.yml
|
- include: prepare-slave.yml
|
||||||
when: use_testenv_broker|default(false)|bool
|
when: 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
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
@ -42,14 +42,14 @@
|
||||||
artg_repos_dir: "{{ repo_clone_dir|default('/opt/stack/new') }}"
|
artg_repos_dir: "{{ repo_clone_dir|default('/opt/stack/new') }}"
|
||||||
ib_create_web_repo: "{{ to_build|bool }}"
|
ib_create_web_repo: "{{ to_build|bool }}"
|
||||||
roles:
|
roles:
|
||||||
- { role: build-test-packages, when: build_test_packages|default(false)|bool }
|
- {role: build-test-packages, when: build_test_packages|default(false)|bool}
|
||||||
- { role: install-built-repo, when: compressed_gating_repo is defined }
|
- {role: install-built-repo, when: compressed_gating_repo is defined}
|
||||||
tags:
|
tags:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
- 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}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Multinode
|
- name: Multinode
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: false
|
||||||
roles:
|
roles:
|
||||||
- role: multinodes
|
- role: multinodes
|
||||||
|
|
|
@ -1,25 +1,26 @@
|
||||||
|
---
|
||||||
# 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:
|
||||||
- overcloud-prep-config
|
- overcloud-prep-config
|
||||||
|
|
||||||
# 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:
|
||||||
- overcloud-prep-containers
|
- overcloud-prep-containers
|
||||||
|
|
||||||
# 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,28 +28,28 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-introspection']
|
validations_group: ['pre-introspection']
|
||||||
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}
|
||||||
|
|
||||||
# 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:
|
||||||
- overcloud-prep-flavors
|
- overcloud-prep-flavors
|
||||||
|
|
||||||
# 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,20 +57,20 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-deployment']
|
validations_group: ['pre-deployment']
|
||||||
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: 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
|
||||||
roles:
|
roles:
|
||||||
- { role: overcloud-ssl }
|
- {role: overcloud-ssl}
|
||||||
|
|
|
@ -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,28 +10,28 @@
|
||||||
|
|
||||||
- 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
|
||||||
vars:
|
vars:
|
||||||
inventory: all
|
inventory: all
|
||||||
roles:
|
roles:
|
||||||
- tripleo-inventory
|
- tripleo-inventory
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['post-deployment']
|
validations_group: ['post-deployment']
|
||||||
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}
|
||||||
|
|
||||||
# Check the results of the deployment, note after inventory has executed
|
# Check the results of the deployment, note after inventory has executed
|
||||||
- name: Check the result of the deployment
|
- name: Check the result of the deployment
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tags:
|
tags:
|
||||||
- overcloud-deploy
|
- overcloud-deploy
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
|
---
|
||||||
# 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:
|
||||||
- { role: freeipa-setup, when: deploy_supplemental_node|bool and enable_tls_everywhere|bool }
|
- {role: freeipa-setup, when: deploy_supplemental_node|bool and enable_tls_everywhere|bool}
|
||||||
|
|
||||||
# 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:
|
||||||
- undercloud-setup
|
- undercloud-setup
|
||||||
roles:
|
roles:
|
||||||
- { role: undercloud-setup, when: undercloud_setup|bool }
|
- {role: undercloud-setup, when: undercloud_setup|bool}
|
||||||
|
|
||||||
# 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}
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,36 @@
|
||||||
|
---
|
||||||
# Validate the deployment
|
# Validate the deployment
|
||||||
- name: setup dstat performance monitoring
|
- name: setup dstat performance monitoring
|
||||||
hosts: overcloud
|
hosts: overcloud
|
||||||
tags:
|
tags:
|
||||||
- overcloud-validate
|
- overcloud-validate
|
||||||
roles:
|
roles:
|
||||||
- { role: validate-perf,
|
- {role: validate-perf,
|
||||||
when: validate_performance|bool and run_tempest|bool }
|
when: validate_performance|bool and run_tempest|bool}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: validate the overcloud
|
- name: validate the overcloud
|
||||||
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}
|
||||||
|
|
||||||
# Execute tempest against the overcloud deployment
|
# Execute tempest against the overcloud deployment
|
||||||
- name: Execute tempest against the overcloud
|
- name: Execute tempest against the overcloud
|
||||||
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}
|
||||||
|
|
||||||
# Execute simple TripleO-UI validations
|
# Execute simple TripleO-UI validations
|
||||||
- name: Execute simple TripleO-UI validations
|
- name: Execute simple TripleO-UI validations
|
||||||
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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
---
|
---
|
||||||
- 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:
|
||||||
- name: subnode-0
|
- name: subnode-0
|
||||||
- name: subnode-1
|
- name: subnode-1
|
||||||
roles:
|
roles:
|
||||||
- snapshot-libvirt
|
- snapshot-libvirt
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -2,23 +2,22 @@
|
||||||
|
|
||||||
- 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:
|
||||||
validations_group: ['pre-introspection']
|
validations_group: ['pre-introspection']
|
||||||
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}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -18,32 +18,32 @@
|
||||||
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:
|
||||||
- createrepo
|
- createrepo
|
||||||
- gcc
|
- gcc
|
||||||
- git
|
- git
|
||||||
- libffi-devel
|
- libffi-devel
|
||||||
- mock
|
- mock
|
||||||
- openssl-devel
|
- openssl-devel
|
||||||
- redhat-rpm-config
|
- redhat-rpm-config
|
||||||
- rsync
|
- rsync
|
||||||
- rpm-build
|
- rpm-build
|
||||||
- rpmdevtools
|
- rpmdevtools
|
||||||
- sqlite
|
- sqlite
|
||||||
- >
|
- >
|
||||||
{% if ansible_python.version.major == 3 %}
|
{% if ansible_python.version.major == 3 %}
|
||||||
python3-libselinux
|
python3-libselinux
|
||||||
{% else %}
|
{% else %}
|
||||||
libselinux-python
|
libselinux-python
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- 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
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
pip install -r requirements.txt;
|
pip install -r requirements.txt;
|
||||||
python setup.py install;
|
python setup.py install;
|
||||||
args:
|
args:
|
||||||
chdir: '{{ build_repo_dir }}/DLRN'
|
chdir: '{{ build_repo_dir }}/DLRN'
|
||||||
when: dlrn_pre_installed|bool
|
when: dlrn_pre_installed|bool
|
||||||
|
|
||||||
- name: copy the DLRN scripts in the virtualenv to the scripts dir
|
- name: copy the DLRN scripts in the virtualenv to the scripts dir
|
||||||
|
@ -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;
|
||||||
|
@ -224,7 +226,7 @@
|
||||||
exit $?;
|
exit $?;
|
||||||
done;
|
done;
|
||||||
args:
|
args:
|
||||||
chdir: '{{ build_repo_dir }}/DLRN'
|
chdir: '{{ build_repo_dir }}/DLRN'
|
||||||
register: repo_built_multi
|
register: repo_built_multi
|
||||||
when: not artg_build_one|bool
|
when: not artg_build_one|bool
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
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
|
||||||
shell: >
|
shell: >
|
||||||
|
@ -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
|
||||||
|
|
|
@ -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: >
|
||||||
|
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 }} >
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: Set the number of workers in tempest
|
- name: Set the number of workers in tempest
|
||||||
set_fact:
|
set_fact:
|
||||||
tempest_workers: "{{ ansible_processor_vcpus|int // 2 }}"
|
tempest_workers: "{{ ansible_processor_vcpus|int // 2 }}"
|
||||||
when: tempest_workers is not defined
|
when: tempest_workers is not defined
|
||||||
|
|
||||||
- name: Set rc file to be sourced to run tempest
|
- name: Set rc file to be sourced to run tempest
|
||||||
set_fact:
|
set_fact:
|
||||||
rc_file: "{{ working_dir }}/{% if tempest_undercloud %}stackrc{% else %}overcloudrc{% endif %}"
|
rc_file: "{{ working_dir }}/{% if tempest_undercloud %}stackrc{% else %}overcloudrc{% endif %}"
|
||||||
|
|
||||||
- name: Set rc file to be sourced to run tempest with in container
|
- name: Set rc file to be sourced to run tempest with in container
|
||||||
set_fact:
|
set_fact:
|
||||||
rc_file_container: "{{ tempest_data }}/{% if tempest_undercloud %}stackrc{% else %}overcloudrc{% endif %}"
|
rc_file_container: "{{ tempest_data }}/{% if tempest_undercloud %}stackrc{% else %}overcloudrc{% endif %}"
|
||||||
when: tempest_format == 'container'
|
when: tempest_format == 'container'
|
||||||
|
|
||||||
- name: Create overcloud tempest setup script
|
- name: Create overcloud tempest setup script
|
||||||
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
|
|
||||||
- name: Set tempest init command
|
- name: Set tempest init command
|
||||||
set_fact:
|
set_fact:
|
||||||
tempest_init: "{% if release == 'newton' %}/usr/share/openstack-tempest-*/tools/configure-tempest-directory{% else %}tempest init {{ tempest_dir }}{% endif %}"
|
tempest_init: "{% if release == 'newton' %}/usr/share/openstack-tempest-*/tools/configure-tempest-directory{% else %}tempest init {{ tempest_dir }}{% endif %}"
|
||||||
|
|
||||||
- name: Set tempestconf call
|
- name: Set tempestconf call
|
||||||
set_fact:
|
set_fact:
|
||||||
tempestconf: "{% if release == 'newton' %}{{ tempest_dir }}/tools/config_tempest.py{% else %}/usr/bin/discover-tempest-config{% endif %}"
|
tempestconf: "{% if release == 'newton' %}{{ tempest_dir }}/tools/config_tempest.py{% else %}/usr/bin/discover-tempest-config{% endif %}"
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
validate_ui_simple: false
|
validate_ui_simple: false
|
||||||
ui_validate_simple_script: validate_ui_simple.sh.j2
|
ui_validate_simple_script: validate_ui_simple.sh.j2
|
||||||
ui_validate_simple_log: validate_ui_simple.log
|
ui_validate_simple_log: validate_ui_simple.log
|
||||||
virthost_addr: "{{ hostvars[groups['virthost'][0]].ansible_host }}"
|
virthost_addr: "{{ hostvars[groups['virthost'][0]].ansible_host }}"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- extras-common
|
- extras-common
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
- extras-common
|
- extras-common
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
with_items: "{{ vms.list_vms }}"
|
with_items: "{{ vms.list_vms }}"
|
||||||
|
|
||||||
- name: destroy any remaining vms
|
- name: destroy any remaining vms
|
||||||
virt : command=destroy name={{ item }}
|
virt: command=destroy name={{ item }}
|
||||||
with_items: "{{ vms.list_vms }}"
|
with_items: "{{ vms.list_vms }}"
|
||||||
|
|
||||||
- name: remove images from /var/lib/libvirt/images
|
- name: remove images from /var/lib/libvirt/images
|
||||||
|
@ -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,32 +130,33 @@
|
||||||
- /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
|
- libvirt
|
||||||
- libvirt
|
- libvirt-daemon
|
||||||
- libvirt-daemon
|
- openvswitch
|
||||||
- openvswitch
|
- NetworkManager
|
||||||
- NetworkManager
|
- qemu-*
|
||||||
- qemu-*
|
- openstack-*
|
||||||
- openstack-*
|
- python-qpid-*
|
||||||
- python-qpid-*
|
- pexpect
|
||||||
- pexpect
|
- python-pexpect
|
||||||
- python-pexpect
|
- python-tuskarclient*
|
||||||
- python-tuskarclient*
|
- python-keystone*
|
||||||
- python-keystone*
|
- python-openstackclient
|
||||||
- python-openstackclient
|
- python-oslo*
|
||||||
- python-oslo*
|
- python-qpid
|
||||||
- python-qpid
|
- python-ironic*
|
||||||
- python-ironic*
|
- python-eventlet
|
||||||
- python-eventlet
|
- tripleo-*
|
||||||
- tripleo-*
|
- 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 "
|
||||||
|
@ -170,7 +171,7 @@
|
||||||
register: delorean_rpms
|
register: delorean_rpms
|
||||||
|
|
||||||
# BUG: when this task encounters an rpm of the form "1:somerpm" it fails
|
# BUG: when this task encounters an rpm of the form "1:somerpm" it fails
|
||||||
#- name: debug
|
# - name: debug
|
||||||
# debug: var={{ item }}
|
# debug: var={{ item }}
|
||||||
# with_flattened:
|
# with_flattened:
|
||||||
# - director_rpms.stdout_lines
|
# - director_rpms.stdout_lines
|
||||||
|
@ -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 }}"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
- tripleo-undercloud-jobs
|
- tripleo-undercloud-jobs
|
||||||
|
|
Loading…
Reference in New Issue