From 43e28b25c2d5f86121d2df658f0990af4abb1714 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Sat, 24 Feb 2024 11:33:22 -0800 Subject: [PATCH] Retire Tripleo: remove repo content TripleO project is retiring - https://review.opendev.org/c/openstack/governance/+/905145 this commit remove the content of this project repo Change-Id: I3f007ba782e067fe575fb9c348a13b9b84f7834d --- .ansible-lint | 7 - .gitignore | 6 - .mdlrc | 1 - .pre-commit-config.yaml | 49 - .stestr.conf | 3 - .yamllint | 11 - LICENSE | 202 --- README.md | 9 - README.rst | 10 + ansible-requirements.txt | 1 - bindep.txt | 37 - ci/playbooks/publish_collection.yml | 76 -- doc/requirements.txt | 13 - doc/source/_exts/ansible-autodoc.py | 298 ----- doc/source/bestpractices.rst | 43 - doc/source/conf.py | 87 -- doc/source/contributing.rst | 26 - doc/source/index.rst | 19 - doc/source/installation.rst | 31 - doc/source/roles.rst | 9 - doc/source/roles/role-test_molecule_prep.rst | 6 - .../role-tripleo_config_generate_ansible.rst | 6 - .../role-tripleo_container_image_delete.rst | 6 - .../role-tripleo_container_image_list.rst | 6 - .../role-tripleo_container_image_prepare.rst | 6 - ...ripleo_container_image_prepare_default.rst | 6 - .../role-tripleo_container_image_push.rst | 6 - .../role-tripleo_container_image_show.rst | 6 - doc/source/roles/role-tripleo_deploy.rst | 6 - ...ripleo_overcloud_container_image_build.rst | 6 - ...pleo_overcloud_container_image_prepare.rst | 6 - .../roles/role-tripleo_overcloud_deploy.rst | 6 - .../roles/role-tripleo_overcloud_export.rst | 6 - .../roles/role-tripleo_overcloud_failures.rst | 6 - .../role-tripleo_overcloud_image_build.rst | 6 - .../role-tripleo_overcloud_image_upload.rst | 6 - ...-tripleo_overcloud_node_bios_configure.rst | 6 - ...role-tripleo_overcloud_node_bios_reset.rst | 6 - .../role-tripleo_overcloud_node_clean.rst | 6 - .../role-tripleo_overcloud_node_configure.rst | 6 - .../role-tripleo_overcloud_node_delete.rst | 6 - .../role-tripleo_overcloud_node_discover.rst | 6 - ...leo_overcloud_node_extract_provisioned.rst | 6 - .../role-tripleo_overcloud_node_import.rst | 6 - ...role-tripleo_overcloud_node_introspect.rst | 6 - .../role-tripleo_overcloud_node_provision.rst | 6 - .../roles/role-tripleo_overcloud_status.rst | 6 - .../role-tripleo_overcloud_update_prepare.rst | 6 - .../role-tripleo_overcloud_update_run.rst | 6 - doc/source/roles/role-tripleo_repos.rst | 6 - .../roles/role-tripleo_undercloud_backup.rst | 6 - .../roles/role-tripleo_undercloud_install.rst | 6 - ...role-tripleo_undercloud_minion_install.rst | 6 - ...role-tripleo_undercloud_minion_upgrade.rst | 6 - .../roles/role-tripleo_undercloud_upgrade.rst | 6 - doc/source/usage.rst | 7 - galaxy.yml | 58 - meta/runtime.yml | 2 - molecule-requirements.txt | 7 - playbooks/README.md | 15 - playbooks/container-build.yaml | 37 - playbooks/container-prepare.yml | 50 - playbooks/import-nodes.yml | 51 - playbooks/overcloud-deploy.yml | 60 - playbooks/overcloud-images.yml | 67 - playbooks/overcloud-post-installation.yml | 93 -- playbooks/standalone.yml | 113 -- playbooks/undercloud.yml | 104 -- plugins/README.md | 31 - plugins/action/timestamp_file.py | 164 --- plugins/filter/shell_args.py | 51 - plugins/modules/tripleo_shell_script.py | 144 -- releasenotes/source/_static/.placeholder | 0 releasenotes/source/conf.py | 270 ---- releasenotes/source/index.rst | 18 - releasenotes/source/unreleased.rst | 5 - requirements.txt | 0 roles/.gitkeep | 0 roles/README.md | 94 -- roles/test_molecule_prep/README.md | 44 - roles/test_molecule_prep/defaults/main.yml | 4 - roles/test_molecule_prep/meta/main.yml | 44 - .../molecule/default/converge.yml | 13 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/test_molecule_prep/tasks/main.yml | 12 - roles/test_molecule_prep/tests/inventory | 1 - roles/test_molecule_prep/tests/test.yml | 4 - roles/tripleo_ceph_deploy/README.md | 92 -- roles/tripleo_ceph_deploy/defaults/main.yml | 46 - roles/tripleo_ceph_deploy/meta/main.yml | 45 - .../molecule/default/converge.yml | 30 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_ceph_deploy/tasks/main.yml | 110 -- roles/tripleo_ceph_spec/README.md | 79 -- roles/tripleo_ceph_spec/defaults/main.yml | 19 - roles/tripleo_ceph_spec/meta/main.yml | 45 - .../molecule/default/converge.yml | 28 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_ceph_spec/tasks/main.yml | 63 - roles/tripleo_ceph_user/README.md | 101 -- roles/tripleo_ceph_user/defaults/main.yml | 16 - roles/tripleo_ceph_user/meta/main.yml | 45 - .../molecule/default/converge.yml | 25 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_ceph_user/tasks/main.yml | 57 - .../tripleo_config_generate_ansible/README.md | 50 - .../defaults/main.yml | 11 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 45 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 40 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_container_image_build/README.md | 70 - .../defaults/main.yml | 30 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 242 ---- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 70 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../tripleo_container_image_delete/README.md | 51 - .../defaults/main.yml | 9 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 89 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 32 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_container_image_list/README.md | 52 - .../defaults/main.yml | 8 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 70 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 37 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../tripleo_container_image_prepare/README.md | 56 - .../defaults/main.yml | 18 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 84 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 34 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 50 - .../defaults/main.yml | 9 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 54 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 26 - .../tests/inventory | 1 - .../tests/test.yml | 6 - roles/tripleo_container_image_push/README.md | 59 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 149 --- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 39 - .../tests/inventory | 1 - .../tests/test.yml | 7 - roles/tripleo_container_image_show/README.md | 53 - .../defaults/main.yml | 7 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 61 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 36 - .../tests/inventory | 1 - .../tests/test.yml | 7 - roles/tripleo_deploy/README.md | 86 -- roles/tripleo_deploy/defaults/main.yml | 44 - roles/tripleo_deploy/meta/main.yml | 44 - .../molecule/default/converge.yml | 436 ------ .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_deploy/tasks/main.yml | 107 -- roles/tripleo_deploy/tests/inventory | 1 - roles/tripleo_deploy/tests/test.yml | 4 - .../README.md | 62 - .../defaults/main.yml | 18 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 92 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 59 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_overcloud_backup/README.md | 58 - .../defaults/main.yml | 19 - roles/tripleo_overcloud_backup/meta/main.yml | 44 - .../molecule/default/converge.yml | 104 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_overcloud_backup/tasks/main.yml | 49 - .../tripleo_overcloud_backup/tests/inventory | 1 - roles/tripleo_overcloud_backup/tests/test.yml | 5 - roles/tripleo_overcloud_cell_export/README.md | 62 - .../defaults/main.yml | 18 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 70 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 63 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 62 - .../defaults/main.yml | 18 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 69 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 62 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 61 - .../defaults/main.yml | 19 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 108 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 59 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 74 - .../defaults/main.yml | 29 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 206 --- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 83 -- .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 59 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 44 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 56 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 61 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 46 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 55 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_overcloud_credentials/README.md | 58 - .../defaults/main.yml | 16 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 43 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 57 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_overcloud_delete/README.md | 60 - .../defaults/main.yml | 17 - roles/tripleo_overcloud_delete/meta/main.yml | 44 - .../molecule/default/converge.yml | 55 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_overcloud_delete/tasks/main.yml | 58 - .../tripleo_overcloud_delete/tests/inventory | 1 - roles/tripleo_overcloud_delete/tests/test.yml | 5 - roles/tripleo_overcloud_deploy/README.md | 106 -- .../defaults/main.yml | 57 - roles/tripleo_overcloud_deploy/meta/main.yml | 44 - .../molecule/default/converge.yml | 590 -------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_overcloud_deploy/tasks/main.yml | 120 -- .../tripleo_overcloud_deploy/tests/inventory | 1 - roles/tripleo_overcloud_deploy/tests/test.yml | 4 - roles/tripleo_overcloud_export/README.md | 61 - .../defaults/main.yml | 14 - roles/tripleo_overcloud_export/meta/main.yml | 44 - .../molecule/default/converge.yml | 89 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_overcloud_export/tasks/main.yml | 50 - .../tripleo_overcloud_export/tests/inventory | 1 - roles/tripleo_overcloud_export/tests/test.yml | 4 - .../README.md | 65 - .../defaults/main.yml | 22 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 103 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 65 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 64 - .../defaults/main.yml | 21 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 91 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 64 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_failures/README.md | 52 - .../defaults/main.yml | 7 - .../tripleo_overcloud_failures/meta/main.yml | 44 - .../molecule/default/converge.yml | 33 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tripleo_overcloud_failures/tasks/main.yml | 35 - .../tests/inventory | 1 - .../tripleo_overcloud_failures/tests/test.yml | 4 - .../README.md | 98 -- .../defaults/main.yml | 50 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 489 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 108 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 99 -- .../defaults/main.yml | 50 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 488 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 108 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 63 - .../defaults/main.yml | 18 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 67 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 60 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 65 - .../defaults/main.yml | 22 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 117 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 67 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_overcloud_image_build/README.md | 63 - .../defaults/main.yml | 20 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 81 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 61 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../tripleo_overcloud_image_upload/README.md | 70 - .../defaults/main.yml | 25 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 143 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 73 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 56 - .../defaults/main.yml | 13 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 32 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 54 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 57 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 44 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 57 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 58 - .../defaults/main.yml | 15 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 46 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 57 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 54 - .../defaults/main.yml | 12 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 79 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 49 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 52 - .../defaults/main.yml | 8 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 64 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 35 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_node_clean/README.md | 53 - .../defaults/main.yml | 9 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 79 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 35 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 60 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 155 --- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 42 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_node_delete/README.md | 65 - .../defaults/main.yml | 16 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 140 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 53 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../tripleo_overcloud_node_discover/README.md | 65 - .../defaults/main.yml | 22 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 237 ---- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 60 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 58 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 93 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 72 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_overcloud_node_import/README.md | 68 - .../defaults/main.yml | 23 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 121 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 58 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 66 - .../defaults/main.yml | 20 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 175 --- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 50 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../tripleo_overcloud_node_provide/README.md | 57 - .../defaults/main.yml | 14 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 50 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 56 - .../tests/inventory | 1 - .../tests/test.yml | 7 - .../README.md | 64 - .../defaults/main.yml | 23 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 137 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 71 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 62 - .../defaults/main.yml | 19 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 72 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 61 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../tripleo_overcloud_profiles_list/README.md | 60 - .../defaults/main.yml | 15 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 104 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 48 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 65 - .../defaults/main.yml | 20 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 166 --- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 64 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_raid_create/README.md | 62 - .../defaults/main.yml | 16 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 47 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 56 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 59 - .../defaults/main.yml | 13 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 60 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 46 - roles/tripleo_overcloud_roles_list/README.md | 57 - .../defaults/main.yml | 12 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 71 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 45 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_roles_show/README.md | 58 - .../defaults/main.yml | 11 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 64 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 44 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_status/README.md | 52 - .../defaults/main.yml | 6 - roles/tripleo_overcloud_status/meta/main.yml | 44 - roles/tripleo_overcloud_status/tasks/main.yml | 33 - .../tripleo_overcloud_status/tests/inventory | 1 - roles/tripleo_overcloud_status/tests/test.yml | 4 - .../README.md | 56 - .../defaults/main.yml | 11 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 64 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 44 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 98 -- .../defaults/main.yml | 50 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 488 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 108 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 99 -- .../defaults/main.yml | 51 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 502 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 110 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_update_run/README.md | 64 - .../defaults/main.yml | 20 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 81 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 64 - .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 97 -- .../defaults/main.yml | 49 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 473 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 107 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - .../README.md | 98 -- .../defaults/main.yml | 49 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 473 ------- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 107 -- .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_overcloud_upgrade_run/README.md | 65 - .../defaults/main.yml | 21 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 90 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 67 - .../tests/inventory | 1 - .../tests/test.yml | 4 - roles/tripleo_repos/README.md | 52 - roles/tripleo_repos/defaults/main.yml | 15 - roles/tripleo_repos/handlers/main.yml | 2 - roles/tripleo_repos/meta/main.yml | 44 - roles/tripleo_repos/tasks/install.yml | 36 - roles/tripleo_repos/tasks/main.yml | 44 - roles/tripleo_repos/tests/inventory | 1 - roles/tripleo_repos/tests/test.yml | 5 - roles/tripleo_repos/vars/main.yml | 2 - roles/tripleo_undercloud_backup/README.md | 60 - .../defaults/main.yml | 19 - roles/tripleo_undercloud_backup/meta/main.yml | 44 - .../molecule/default/converge.yml | 120 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tripleo_undercloud_backup/tasks/main.yml | 51 - .../tripleo_undercloud_backup/tests/inventory | 1 - .../tripleo_undercloud_backup/tests/test.yml | 5 - roles/tripleo_undercloud_install/README.md | 59 - .../defaults/main.yml | 18 - .../tripleo_undercloud_install/meta/main.yml | 44 - .../molecule/default/converge.yml | 88 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tripleo_undercloud_install/tasks/main.yml | 50 - .../tests/inventory | 1 - .../tripleo_undercloud_install/tests/test.yml | 5 - .../README.md | 57 - .../defaults/main.yml | 16 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 66 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 48 - .../tests/inventory | 1 - .../tests/test.yml | 5 - .../README.md | 58 - .../defaults/main.yml | 16 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 66 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 48 - .../tests/inventory | 1 - .../tests/test.yml | 5 - roles/tripleo_undercloud_upgrade/README.md | 59 - .../defaults/main.yml | 18 - .../tripleo_undercloud_upgrade/meta/main.yml | 44 - .../molecule/default/converge.yml | 88 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tripleo_undercloud_upgrade/tasks/main.yml | 50 - .../tests/inventory | 1 - .../tripleo_undercloud_upgrade/tests/test.yml | 5 - roles/tripleo_upgrade/README.md | 85 -- roles/tripleo_upgrade/defaults/main.yml | 43 - roles/tripleo_upgrade/meta/main.yml | 44 - .../molecule/default/converge.yml | 420 ------ .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_upgrade/tasks/main.yml | 106 -- roles/tripleo_upgrade/tests/inventory | 1 - roles/tripleo_upgrade/tests/test.yml | 4 - roles/tripleo_validator_group_info/README.md | 44 - .../defaults/main.yml | 2 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 20 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 18 - roles/tripleo_validator_list/README.md | 43 - .../tripleo_validator_list/defaults/main.yml | 2 - roles/tripleo_validator_list/meta/main.yml | 44 - .../molecule/default/converge.yml | 20 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_validator_list/tasks/main.yml | 18 - roles/tripleo_validator_run/README.md | 51 - roles/tripleo_validator_run/defaults/main.yml | 8 - roles/tripleo_validator_run/meta/main.yml | 44 - .../molecule/default/converge.yml | 110 -- .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_validator_run/tasks/main.yml | 54 - roles/tripleo_validator_show/README.md | 44 - .../tripleo_validator_show/defaults/main.yml | 3 - roles/tripleo_validator_show/meta/main.yml | 44 - .../molecule/default/converge.yml | 23 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - roles/tripleo_validator_show/tasks/main.yml | 36 - .../README.md | 46 - .../defaults/main.yml | 5 - .../meta/main.yml | 44 - .../molecule/default/converge.yml | 36 - .../molecule/default/molecule.yml | 19 - .../molecule/default/prepare.yml | 8 - .../tasks/main.yml | 44 - setup.cfg | 45 - setup.py | 20 - test-requirements.txt | 13 - tests/__init__.py | 0 tests/base.py | 23 - tests/plugins/__init__.py | 0 tests/plugins/action/__init__.py | 0 tests/plugins/action/test_timestamp_file.py | 192 --- tests/plugins/filter/__init__.py | 0 tests/plugins/filter/test_shell_args.py | 73 - tests/plugins/modules/__init__.py | 0 .../modules/test_tripleo_shell_script.py | 183 --- tox.ini | 135 -- zuul.d/layout.yaml | 94 -- zuul.d/molecule.yaml | 1186 ----------------- 748 files changed, 10 insertions(+), 30617 deletions(-) delete mode 100644 .ansible-lint delete mode 100644 .gitignore delete mode 100644 .mdlrc delete mode 100644 .pre-commit-config.yaml delete mode 100644 .stestr.conf delete mode 100644 .yamllint delete mode 100644 LICENSE delete mode 100644 README.md create mode 100644 README.rst delete mode 100644 ansible-requirements.txt delete mode 100644 bindep.txt delete mode 100644 ci/playbooks/publish_collection.yml delete mode 100644 doc/requirements.txt delete mode 100644 doc/source/_exts/ansible-autodoc.py delete mode 100644 doc/source/bestpractices.rst delete mode 100755 doc/source/conf.py delete mode 100644 doc/source/contributing.rst delete mode 100644 doc/source/index.rst delete mode 100644 doc/source/installation.rst delete mode 100644 doc/source/roles.rst delete mode 100644 doc/source/roles/role-test_molecule_prep.rst delete mode 100644 doc/source/roles/role-tripleo_config_generate_ansible.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_delete.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_list.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_prepare.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_prepare_default.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_push.rst delete mode 100644 doc/source/roles/role-tripleo_container_image_show.rst delete mode 100644 doc/source/roles/role-tripleo_deploy.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_container_image_build.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_container_image_prepare.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_deploy.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_export.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_failures.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_image_build.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_image_upload.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_bios_configure.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_bios_reset.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_clean.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_configure.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_delete.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_discover.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_extract_provisioned.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_import.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_introspect.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_node_provision.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_status.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_update_prepare.rst delete mode 100644 doc/source/roles/role-tripleo_overcloud_update_run.rst delete mode 100644 doc/source/roles/role-tripleo_repos.rst delete mode 100644 doc/source/roles/role-tripleo_undercloud_backup.rst delete mode 100644 doc/source/roles/role-tripleo_undercloud_install.rst delete mode 100644 doc/source/roles/role-tripleo_undercloud_minion_install.rst delete mode 100644 doc/source/roles/role-tripleo_undercloud_minion_upgrade.rst delete mode 100644 doc/source/roles/role-tripleo_undercloud_upgrade.rst delete mode 100644 doc/source/usage.rst delete mode 100644 galaxy.yml delete mode 100644 meta/runtime.yml delete mode 100644 molecule-requirements.txt delete mode 100644 playbooks/README.md delete mode 100644 playbooks/container-build.yaml delete mode 100644 playbooks/container-prepare.yml delete mode 100644 playbooks/import-nodes.yml delete mode 100644 playbooks/overcloud-deploy.yml delete mode 100644 playbooks/overcloud-images.yml delete mode 100644 playbooks/overcloud-post-installation.yml delete mode 100644 playbooks/standalone.yml delete mode 100644 playbooks/undercloud.yml delete mode 100644 plugins/README.md delete mode 100644 plugins/action/timestamp_file.py delete mode 100644 plugins/filter/shell_args.py delete mode 100644 plugins/modules/tripleo_shell_script.py delete mode 100644 releasenotes/source/_static/.placeholder delete mode 100644 releasenotes/source/conf.py delete mode 100644 releasenotes/source/index.rst delete mode 100644 releasenotes/source/unreleased.rst delete mode 100644 requirements.txt delete mode 100644 roles/.gitkeep delete mode 100644 roles/README.md delete mode 100644 roles/test_molecule_prep/README.md delete mode 100644 roles/test_molecule_prep/defaults/main.yml delete mode 100644 roles/test_molecule_prep/meta/main.yml delete mode 100644 roles/test_molecule_prep/molecule/default/converge.yml delete mode 100644 roles/test_molecule_prep/molecule/default/molecule.yml delete mode 100644 roles/test_molecule_prep/molecule/default/prepare.yml delete mode 100644 roles/test_molecule_prep/tasks/main.yml delete mode 100644 roles/test_molecule_prep/tests/inventory delete mode 100644 roles/test_molecule_prep/tests/test.yml delete mode 100644 roles/tripleo_ceph_deploy/README.md delete mode 100644 roles/tripleo_ceph_deploy/defaults/main.yml delete mode 100644 roles/tripleo_ceph_deploy/meta/main.yml delete mode 100644 roles/tripleo_ceph_deploy/molecule/default/converge.yml delete mode 100644 roles/tripleo_ceph_deploy/molecule/default/molecule.yml delete mode 100644 roles/tripleo_ceph_deploy/molecule/default/prepare.yml delete mode 100644 roles/tripleo_ceph_deploy/tasks/main.yml delete mode 100644 roles/tripleo_ceph_spec/README.md delete mode 100644 roles/tripleo_ceph_spec/defaults/main.yml delete mode 100644 roles/tripleo_ceph_spec/meta/main.yml delete mode 100644 roles/tripleo_ceph_spec/molecule/default/converge.yml delete mode 100644 roles/tripleo_ceph_spec/molecule/default/molecule.yml delete mode 100644 roles/tripleo_ceph_spec/molecule/default/prepare.yml delete mode 100644 roles/tripleo_ceph_spec/tasks/main.yml delete mode 100644 roles/tripleo_ceph_user/README.md delete mode 100644 roles/tripleo_ceph_user/defaults/main.yml delete mode 100644 roles/tripleo_ceph_user/meta/main.yml delete mode 100644 roles/tripleo_ceph_user/molecule/default/converge.yml delete mode 100644 roles/tripleo_ceph_user/molecule/default/molecule.yml delete mode 100644 roles/tripleo_ceph_user/molecule/default/prepare.yml delete mode 100644 roles/tripleo_ceph_user/tasks/main.yml delete mode 100644 roles/tripleo_config_generate_ansible/README.md delete mode 100644 roles/tripleo_config_generate_ansible/defaults/main.yml delete mode 100644 roles/tripleo_config_generate_ansible/meta/main.yml delete mode 100644 roles/tripleo_config_generate_ansible/molecule/default/converge.yml delete mode 100644 roles/tripleo_config_generate_ansible/molecule/default/molecule.yml delete mode 100644 roles/tripleo_config_generate_ansible/molecule/default/prepare.yml delete mode 100644 roles/tripleo_config_generate_ansible/tasks/main.yml delete mode 100644 roles/tripleo_config_generate_ansible/tests/inventory delete mode 100644 roles/tripleo_config_generate_ansible/tests/test.yml delete mode 100644 roles/tripleo_container_image_build/README.md delete mode 100644 roles/tripleo_container_image_build/defaults/main.yml delete mode 100644 roles/tripleo_container_image_build/meta/main.yml delete mode 100644 roles/tripleo_container_image_build/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_build/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_build/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_build/tasks/main.yml delete mode 100644 roles/tripleo_container_image_build/tests/inventory delete mode 100644 roles/tripleo_container_image_build/tests/test.yml delete mode 100644 roles/tripleo_container_image_delete/README.md delete mode 100644 roles/tripleo_container_image_delete/defaults/main.yml delete mode 100644 roles/tripleo_container_image_delete/meta/main.yml delete mode 100644 roles/tripleo_container_image_delete/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_delete/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_delete/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_delete/tasks/main.yml delete mode 100644 roles/tripleo_container_image_delete/tests/inventory delete mode 100644 roles/tripleo_container_image_delete/tests/test.yml delete mode 100644 roles/tripleo_container_image_list/README.md delete mode 100644 roles/tripleo_container_image_list/defaults/main.yml delete mode 100644 roles/tripleo_container_image_list/meta/main.yml delete mode 100644 roles/tripleo_container_image_list/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_list/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_list/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_list/tasks/main.yml delete mode 100644 roles/tripleo_container_image_list/tests/inventory delete mode 100644 roles/tripleo_container_image_list/tests/test.yml delete mode 100644 roles/tripleo_container_image_prepare/README.md delete mode 100644 roles/tripleo_container_image_prepare/defaults/main.yml delete mode 100644 roles/tripleo_container_image_prepare/meta/main.yml delete mode 100644 roles/tripleo_container_image_prepare/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_prepare/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_prepare/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_prepare/tasks/main.yml delete mode 100644 roles/tripleo_container_image_prepare/tests/inventory delete mode 100644 roles/tripleo_container_image_prepare/tests/test.yml delete mode 100644 roles/tripleo_container_image_prepare_default/README.md delete mode 100644 roles/tripleo_container_image_prepare_default/defaults/main.yml delete mode 100644 roles/tripleo_container_image_prepare_default/meta/main.yml delete mode 100644 roles/tripleo_container_image_prepare_default/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_prepare_default/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_prepare_default/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_prepare_default/tasks/main.yml delete mode 100644 roles/tripleo_container_image_prepare_default/tests/inventory delete mode 100644 roles/tripleo_container_image_prepare_default/tests/test.yml delete mode 100644 roles/tripleo_container_image_push/README.md delete mode 100644 roles/tripleo_container_image_push/defaults/main.yml delete mode 100644 roles/tripleo_container_image_push/meta/main.yml delete mode 100644 roles/tripleo_container_image_push/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_push/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_push/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_push/tasks/main.yml delete mode 100644 roles/tripleo_container_image_push/tests/inventory delete mode 100644 roles/tripleo_container_image_push/tests/test.yml delete mode 100644 roles/tripleo_container_image_show/README.md delete mode 100644 roles/tripleo_container_image_show/defaults/main.yml delete mode 100644 roles/tripleo_container_image_show/meta/main.yml delete mode 100644 roles/tripleo_container_image_show/molecule/default/converge.yml delete mode 100644 roles/tripleo_container_image_show/molecule/default/molecule.yml delete mode 100644 roles/tripleo_container_image_show/molecule/default/prepare.yml delete mode 100644 roles/tripleo_container_image_show/tasks/main.yml delete mode 100644 roles/tripleo_container_image_show/tests/inventory delete mode 100644 roles/tripleo_container_image_show/tests/test.yml delete mode 100644 roles/tripleo_deploy/README.md delete mode 100644 roles/tripleo_deploy/defaults/main.yml delete mode 100644 roles/tripleo_deploy/meta/main.yml delete mode 100644 roles/tripleo_deploy/molecule/default/converge.yml delete mode 100644 roles/tripleo_deploy/molecule/default/molecule.yml delete mode 100644 roles/tripleo_deploy/molecule/default/prepare.yml delete mode 100644 roles/tripleo_deploy/tasks/main.yml delete mode 100644 roles/tripleo_deploy/tests/inventory delete mode 100644 roles/tripleo_deploy/tests/test.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/README.md delete mode 100644 roles/tripleo_overcloud_admin_authorize/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/meta/main.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_admin_authorize/tests/inventory delete mode 100644 roles/tripleo_overcloud_admin_authorize/tests/test.yml delete mode 100644 roles/tripleo_overcloud_backup/README.md delete mode 100644 roles/tripleo_overcloud_backup/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_backup/meta/main.yml delete mode 100644 roles/tripleo_overcloud_backup/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_backup/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_backup/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_backup/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_backup/tests/inventory delete mode 100644 roles/tripleo_overcloud_backup/tests/test.yml delete mode 100644 roles/tripleo_overcloud_cell_export/README.md delete mode 100644 roles/tripleo_overcloud_cell_export/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_cell_export/meta/main.yml delete mode 100644 roles/tripleo_overcloud_cell_export/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_cell_export/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_cell_export/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_cell_export/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_cell_export/tests/inventory delete mode 100644 roles/tripleo_overcloud_cell_export/tests/test.yml delete mode 100644 roles/tripleo_overcloud_config_download/README.md delete mode 100644 roles/tripleo_overcloud_config_download/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_config_download/meta/main.yml delete mode 100644 roles/tripleo_overcloud_config_download/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_config_download/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_config_download/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_config_download/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_config_download/tests/inventory delete mode 100644 roles/tripleo_overcloud_config_download/tests/test.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/README.md delete mode 100644 roles/tripleo_overcloud_container_image_build/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/meta/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_build/tests/inventory delete mode 100644 roles/tripleo_overcloud_container_image_build/tests/test.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/README.md delete mode 100644 roles/tripleo_overcloud_container_image_prepare/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/meta/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_prepare/tests/inventory delete mode 100644 roles/tripleo_overcloud_container_image_prepare/tests/test.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/README.md delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/meta/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/tests/inventory delete mode 100644 roles/tripleo_overcloud_container_image_tag_discover/tests/test.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/README.md delete mode 100644 roles/tripleo_overcloud_container_image_upload/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/meta/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_container_image_upload/tests/inventory delete mode 100644 roles/tripleo_overcloud_container_image_upload/tests/test.yml delete mode 100644 roles/tripleo_overcloud_credentials/README.md delete mode 100644 roles/tripleo_overcloud_credentials/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_credentials/meta/main.yml delete mode 100644 roles/tripleo_overcloud_credentials/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_credentials/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_credentials/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_credentials/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_credentials/tests/inventory delete mode 100644 roles/tripleo_overcloud_credentials/tests/test.yml delete mode 100644 roles/tripleo_overcloud_delete/README.md delete mode 100644 roles/tripleo_overcloud_delete/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_delete/meta/main.yml delete mode 100644 roles/tripleo_overcloud_delete/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_delete/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_delete/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_delete/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_delete/tests/inventory delete mode 100644 roles/tripleo_overcloud_delete/tests/test.yml delete mode 100644 roles/tripleo_overcloud_deploy/README.md delete mode 100644 roles/tripleo_overcloud_deploy/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_deploy/meta/main.yml delete mode 100644 roles/tripleo_overcloud_deploy/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_deploy/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_deploy/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_deploy/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_deploy/tests/inventory delete mode 100644 roles/tripleo_overcloud_deploy/tests/test.yml delete mode 100644 roles/tripleo_overcloud_export/README.md delete mode 100644 roles/tripleo_overcloud_export/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_export/meta/main.yml delete mode 100644 roles/tripleo_overcloud_export/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_export/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_export/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_export/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_export/tests/inventory delete mode 100644 roles/tripleo_overcloud_export/tests/test.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/README.md delete mode 100644 roles/tripleo_overcloud_external_update_run/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/meta/main.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_external_update_run/tests/inventory delete mode 100644 roles/tripleo_overcloud_external_update_run/tests/test.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/README.md delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/meta/main.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/tests/inventory delete mode 100644 roles/tripleo_overcloud_external_upgrade_run/tests/test.yml delete mode 100644 roles/tripleo_overcloud_failures/README.md delete mode 100644 roles/tripleo_overcloud_failures/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_failures/meta/main.yml delete mode 100644 roles/tripleo_overcloud_failures/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_failures/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_failures/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_failures/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_failures/tests/inventory delete mode 100644 roles/tripleo_overcloud_failures/tests/test.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/README.md delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/meta/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/tests/inventory delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_converge/tests/test.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/README.md delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/meta/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/inventory delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/test.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/README.md delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/meta/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/tests/inventory delete mode 100644 roles/tripleo_overcloud_ffwd_upgrade_run/tests/test.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/README.md delete mode 100644 roles/tripleo_overcloud_generate_fencing/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/meta/main.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_generate_fencing/tests/inventory delete mode 100644 roles/tripleo_overcloud_generate_fencing/tests/test.yml delete mode 100644 roles/tripleo_overcloud_image_build/README.md delete mode 100644 roles/tripleo_overcloud_image_build/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_image_build/meta/main.yml delete mode 100644 roles/tripleo_overcloud_image_build/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_image_build/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_image_build/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_image_build/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_image_build/tests/inventory delete mode 100644 roles/tripleo_overcloud_image_build/tests/test.yml delete mode 100644 roles/tripleo_overcloud_image_upload/README.md delete mode 100644 roles/tripleo_overcloud_image_upload/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_image_upload/meta/main.yml delete mode 100644 roles/tripleo_overcloud_image_upload/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_image_upload/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_image_upload/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_image_upload/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_image_upload/tests/inventory delete mode 100644 roles/tripleo_overcloud_image_upload/tests/test.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/README.md delete mode 100644 roles/tripleo_overcloud_netenv_validate/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/meta/main.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_netenv_validate/tests/inventory delete mode 100644 roles/tripleo_overcloud_netenv_validate/tests/test.yml delete mode 100644 roles/tripleo_overcloud_network_provision/README.md delete mode 100644 roles/tripleo_overcloud_network_provision/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_network_provision/meta/main.yml delete mode 100644 roles/tripleo_overcloud_network_provision/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_network_provision/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_network_provision/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_network_provision/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_network_provision/tests/inventory delete mode 100644 roles/tripleo_overcloud_network_provision/tests/test.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/README.md delete mode 100644 roles/tripleo_overcloud_network_vip_provision/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/meta/main.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_network_vip_provision/tests/inventory delete mode 100644 roles/tripleo_overcloud_network_vip_provision/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/README.md delete mode 100644 roles/tripleo_overcloud_node_bios_configure/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_configure/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_bios_configure/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/README.md delete mode 100644 roles/tripleo_overcloud_node_bios_reset/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_bios_reset/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_bios_reset/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_clean/README.md delete mode 100644 roles/tripleo_overcloud_node_clean/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_clean/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_clean/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_clean/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_clean/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_clean/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_clean/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_clean/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_configure/README.md delete mode 100644 roles/tripleo_overcloud_node_configure/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_configure/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_configure/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_configure/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_configure/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_configure/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_configure/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_configure/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_delete/README.md delete mode 100644 roles/tripleo_overcloud_node_delete/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_delete/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_delete/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_delete/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_delete/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_delete/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_delete/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_delete/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_discover/README.md delete mode 100644 roles/tripleo_overcloud_node_discover/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_discover/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_discover/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_discover/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_discover/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_discover/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_discover/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_discover/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/README.md delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_extract_provisioned/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_import/README.md delete mode 100644 roles/tripleo_overcloud_node_import/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_import/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_import/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_import/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_import/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_import/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_import/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_import/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/README.md delete mode 100644 roles/tripleo_overcloud_node_introspect/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_introspect/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_introspect/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_provide/README.md delete mode 100644 roles/tripleo_overcloud_node_provide/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_provide/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_provide/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_provide/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_provide/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_provide/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_provide/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_provide/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_provision/README.md delete mode 100644 roles/tripleo_overcloud_node_provision/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_provision/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_provision/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_provision/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_provision/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_provision/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_provision/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_provision/tests/test.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/README.md delete mode 100644 roles/tripleo_overcloud_node_unprovision/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/meta/main.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_node_unprovision/tests/inventory delete mode 100644 roles/tripleo_overcloud_node_unprovision/tests/test.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/README.md delete mode 100644 roles/tripleo_overcloud_profiles_list/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/meta/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_list/tests/inventory delete mode 100644 roles/tripleo_overcloud_profiles_list/tests/test.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/README.md delete mode 100644 roles/tripleo_overcloud_profiles_match/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/meta/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_profiles_match/tests/inventory delete mode 100644 roles/tripleo_overcloud_profiles_match/tests/test.yml delete mode 100644 roles/tripleo_overcloud_raid_create/README.md delete mode 100644 roles/tripleo_overcloud_raid_create/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_raid_create/meta/main.yml delete mode 100644 roles/tripleo_overcloud_raid_create/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_raid_create/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_raid_create/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_raid_create/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_raid_create/tests/inventory delete mode 100644 roles/tripleo_overcloud_raid_create/tests/test.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/README.md delete mode 100644 roles/tripleo_overcloud_roles_generate/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/meta/main.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_roles_generate/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_roles_list/README.md delete mode 100644 roles/tripleo_overcloud_roles_list/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_roles_list/meta/main.yml delete mode 100644 roles/tripleo_overcloud_roles_list/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_roles_list/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_roles_list/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_roles_list/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_roles_list/tests/inventory delete mode 100644 roles/tripleo_overcloud_roles_list/tests/test.yml delete mode 100644 roles/tripleo_overcloud_roles_show/README.md delete mode 100644 roles/tripleo_overcloud_roles_show/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_roles_show/meta/main.yml delete mode 100644 roles/tripleo_overcloud_roles_show/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_roles_show/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_roles_show/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_roles_show/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_roles_show/tests/inventory delete mode 100644 roles/tripleo_overcloud_roles_show/tests/test.yml delete mode 100644 roles/tripleo_overcloud_status/README.md delete mode 100644 roles/tripleo_overcloud_status/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_status/meta/main.yml delete mode 100644 roles/tripleo_overcloud_status/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_status/tests/inventory delete mode 100644 roles/tripleo_overcloud_status/tests/test.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/README.md delete mode 100644 roles/tripleo_overcloud_support_report_collect/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/meta/main.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_support_report_collect/tests/inventory delete mode 100644 roles/tripleo_overcloud_support_report_collect/tests/test.yml delete mode 100644 roles/tripleo_overcloud_update_converge/README.md delete mode 100644 roles/tripleo_overcloud_update_converge/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_update_converge/meta/main.yml delete mode 100644 roles/tripleo_overcloud_update_converge/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_update_converge/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_update_converge/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_update_converge/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_update_converge/tests/inventory delete mode 100644 roles/tripleo_overcloud_update_converge/tests/test.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/README.md delete mode 100644 roles/tripleo_overcloud_update_prepare/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/meta/main.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_update_prepare/tests/inventory delete mode 100644 roles/tripleo_overcloud_update_prepare/tests/test.yml delete mode 100644 roles/tripleo_overcloud_update_run/README.md delete mode 100644 roles/tripleo_overcloud_update_run/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_update_run/meta/main.yml delete mode 100644 roles/tripleo_overcloud_update_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_update_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_update_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_update_run/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_update_run/tests/inventory delete mode 100644 roles/tripleo_overcloud_update_run/tests/test.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/README.md delete mode 100644 roles/tripleo_overcloud_upgrade_converge/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/meta/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_converge/tests/inventory delete mode 100644 roles/tripleo_overcloud_upgrade_converge/tests/test.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/README.md delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/meta/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/tests/inventory delete mode 100644 roles/tripleo_overcloud_upgrade_prepare/tests/test.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/README.md delete mode 100644 roles/tripleo_overcloud_upgrade_run/defaults/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/meta/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/tasks/main.yml delete mode 100644 roles/tripleo_overcloud_upgrade_run/tests/inventory delete mode 100644 roles/tripleo_overcloud_upgrade_run/tests/test.yml delete mode 100644 roles/tripleo_repos/README.md delete mode 100644 roles/tripleo_repos/defaults/main.yml delete mode 100644 roles/tripleo_repos/handlers/main.yml delete mode 100644 roles/tripleo_repos/meta/main.yml delete mode 100644 roles/tripleo_repos/tasks/install.yml delete mode 100644 roles/tripleo_repos/tasks/main.yml delete mode 100644 roles/tripleo_repos/tests/inventory delete mode 100644 roles/tripleo_repos/tests/test.yml delete mode 100644 roles/tripleo_repos/vars/main.yml delete mode 100644 roles/tripleo_undercloud_backup/README.md delete mode 100644 roles/tripleo_undercloud_backup/defaults/main.yml delete mode 100644 roles/tripleo_undercloud_backup/meta/main.yml delete mode 100644 roles/tripleo_undercloud_backup/molecule/default/converge.yml delete mode 100644 roles/tripleo_undercloud_backup/molecule/default/molecule.yml delete mode 100644 roles/tripleo_undercloud_backup/molecule/default/prepare.yml delete mode 100644 roles/tripleo_undercloud_backup/tasks/main.yml delete mode 100644 roles/tripleo_undercloud_backup/tests/inventory delete mode 100644 roles/tripleo_undercloud_backup/tests/test.yml delete mode 100644 roles/tripleo_undercloud_install/README.md delete mode 100644 roles/tripleo_undercloud_install/defaults/main.yml delete mode 100644 roles/tripleo_undercloud_install/meta/main.yml delete mode 100644 roles/tripleo_undercloud_install/molecule/default/converge.yml delete mode 100644 roles/tripleo_undercloud_install/molecule/default/molecule.yml delete mode 100644 roles/tripleo_undercloud_install/molecule/default/prepare.yml delete mode 100644 roles/tripleo_undercloud_install/tasks/main.yml delete mode 100644 roles/tripleo_undercloud_install/tests/inventory delete mode 100644 roles/tripleo_undercloud_install/tests/test.yml delete mode 100644 roles/tripleo_undercloud_minion_install/README.md delete mode 100644 roles/tripleo_undercloud_minion_install/defaults/main.yml delete mode 100644 roles/tripleo_undercloud_minion_install/meta/main.yml delete mode 100644 roles/tripleo_undercloud_minion_install/molecule/default/converge.yml delete mode 100644 roles/tripleo_undercloud_minion_install/molecule/default/molecule.yml delete mode 100644 roles/tripleo_undercloud_minion_install/molecule/default/prepare.yml delete mode 100644 roles/tripleo_undercloud_minion_install/tasks/main.yml delete mode 100644 roles/tripleo_undercloud_minion_install/tests/inventory delete mode 100644 roles/tripleo_undercloud_minion_install/tests/test.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/README.md delete mode 100644 roles/tripleo_undercloud_minion_upgrade/defaults/main.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/meta/main.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/molecule/default/converge.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/molecule/default/molecule.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/molecule/default/prepare.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/tasks/main.yml delete mode 100644 roles/tripleo_undercloud_minion_upgrade/tests/inventory delete mode 100644 roles/tripleo_undercloud_minion_upgrade/tests/test.yml delete mode 100644 roles/tripleo_undercloud_upgrade/README.md delete mode 100644 roles/tripleo_undercloud_upgrade/defaults/main.yml delete mode 100644 roles/tripleo_undercloud_upgrade/meta/main.yml delete mode 100644 roles/tripleo_undercloud_upgrade/molecule/default/converge.yml delete mode 100644 roles/tripleo_undercloud_upgrade/molecule/default/molecule.yml delete mode 100644 roles/tripleo_undercloud_upgrade/molecule/default/prepare.yml delete mode 100644 roles/tripleo_undercloud_upgrade/tasks/main.yml delete mode 100644 roles/tripleo_undercloud_upgrade/tests/inventory delete mode 100644 roles/tripleo_undercloud_upgrade/tests/test.yml delete mode 100644 roles/tripleo_upgrade/README.md delete mode 100644 roles/tripleo_upgrade/defaults/main.yml delete mode 100644 roles/tripleo_upgrade/meta/main.yml delete mode 100644 roles/tripleo_upgrade/molecule/default/converge.yml delete mode 100644 roles/tripleo_upgrade/molecule/default/molecule.yml delete mode 100644 roles/tripleo_upgrade/molecule/default/prepare.yml delete mode 100644 roles/tripleo_upgrade/tasks/main.yml delete mode 100644 roles/tripleo_upgrade/tests/inventory delete mode 100644 roles/tripleo_upgrade/tests/test.yml delete mode 100644 roles/tripleo_validator_group_info/README.md delete mode 100644 roles/tripleo_validator_group_info/defaults/main.yml delete mode 100644 roles/tripleo_validator_group_info/meta/main.yml delete mode 100644 roles/tripleo_validator_group_info/molecule/default/converge.yml delete mode 100644 roles/tripleo_validator_group_info/molecule/default/molecule.yml delete mode 100644 roles/tripleo_validator_group_info/molecule/default/prepare.yml delete mode 100644 roles/tripleo_validator_group_info/tasks/main.yml delete mode 100644 roles/tripleo_validator_list/README.md delete mode 100644 roles/tripleo_validator_list/defaults/main.yml delete mode 100644 roles/tripleo_validator_list/meta/main.yml delete mode 100644 roles/tripleo_validator_list/molecule/default/converge.yml delete mode 100644 roles/tripleo_validator_list/molecule/default/molecule.yml delete mode 100644 roles/tripleo_validator_list/molecule/default/prepare.yml delete mode 100644 roles/tripleo_validator_list/tasks/main.yml delete mode 100644 roles/tripleo_validator_run/README.md delete mode 100644 roles/tripleo_validator_run/defaults/main.yml delete mode 100644 roles/tripleo_validator_run/meta/main.yml delete mode 100644 roles/tripleo_validator_run/molecule/default/converge.yml delete mode 100644 roles/tripleo_validator_run/molecule/default/molecule.yml delete mode 100644 roles/tripleo_validator_run/molecule/default/prepare.yml delete mode 100644 roles/tripleo_validator_run/tasks/main.yml delete mode 100644 roles/tripleo_validator_show/README.md delete mode 100644 roles/tripleo_validator_show/defaults/main.yml delete mode 100644 roles/tripleo_validator_show/meta/main.yml delete mode 100644 roles/tripleo_validator_show/molecule/default/converge.yml delete mode 100644 roles/tripleo_validator_show/molecule/default/molecule.yml delete mode 100644 roles/tripleo_validator_show/molecule/default/prepare.yml delete mode 100644 roles/tripleo_validator_show/tasks/main.yml delete mode 100644 roles/tripleo_validator_show_parameter/README.md delete mode 100644 roles/tripleo_validator_show_parameter/defaults/main.yml delete mode 100644 roles/tripleo_validator_show_parameter/meta/main.yml delete mode 100644 roles/tripleo_validator_show_parameter/molecule/default/converge.yml delete mode 100644 roles/tripleo_validator_show_parameter/molecule/default/molecule.yml delete mode 100644 roles/tripleo_validator_show_parameter/molecule/default/prepare.yml delete mode 100644 roles/tripleo_validator_show_parameter/tasks/main.yml delete mode 100644 setup.cfg delete mode 100644 setup.py delete mode 100644 test-requirements.txt delete mode 100644 tests/__init__.py delete mode 100644 tests/base.py delete mode 100644 tests/plugins/__init__.py delete mode 100644 tests/plugins/action/__init__.py delete mode 100644 tests/plugins/action/test_timestamp_file.py delete mode 100644 tests/plugins/filter/__init__.py delete mode 100644 tests/plugins/filter/test_shell_args.py delete mode 100644 tests/plugins/modules/__init__.py delete mode 100644 tests/plugins/modules/test_tripleo_shell_script.py delete mode 100644 tox.ini delete mode 100644 zuul.d/layout.yaml delete mode 100644 zuul.d/molecule.yaml diff --git a/.ansible-lint b/.ansible-lint deleted file mode 100644 index 0fe6576..0000000 --- a/.ansible-lint +++ /dev/null @@ -1,7 +0,0 @@ -skip_list: - - role-name - - unnamed-task - - command-instead-of-shell - - no-changed-when - - no-handler - - yaml diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7446116..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.tox -__pycache__ -build -tripleo_operator_ansible.egg-info/ -.stestr -*.pyc diff --git a/.mdlrc b/.mdlrc deleted file mode 100644 index 094d3e0..0000000 --- a/.mdlrc +++ /dev/null @@ -1 +0,0 @@ -rules "~MD013", "~MD033" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index d51b44a..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,49 +0,0 @@ ---- -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 - hooks: - - id: end-of-file-fixer - - id: trailing-whitespace - - id: mixed-line-ending - - id: check-byte-order-marker - - id: check-executables-have-shebangs - - id: check-merge-conflict - - id: debug-statements - - id: flake8 - entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503 - # TODO(cloudnull): These codes were added to pass the lint check. - # All of these ignore codes should be resolved in - # future PRs. - - id: check-yaml - files: .*\.(yaml|yml)$ - - repo: https://github.com/adrienverge/yamllint.git - rev: v1.15.0 - hooks: - - id: yamllint - files: \.(yaml|yml)$ - types: [file, yaml] - entry: yamllint --strict -f parsable - - repo: https://github.com/ansible/ansible-lint - rev: v5.3.2 - hooks: - - id: ansible-lint - always_run: true - pass_filenames: false - # do not add file filters here as ansible-lint does not give reliable - # results when called with individual files. - # https://github.com/ansible/ansible-lint/issues/611 - verbose: true - entry: env ANSIBLE_LIBRARY=library ansible-lint --force-color -p -v --exclude zuul.d/ - - repo: https://github.com/openstack-dev/bashate.git - rev: 0.6.0 - hooks: - - id: bashate - entry: bashate --error . --verbose --ignore=E006,E040 - # Run bashate check for all bash scripts - # Ignores the following rules: - # E006: Line longer than 79 columns (as many scripts use jinja - # templating, this is very difficult) - # E040: Syntax error determined using `bash -n` (as many scripts - # use jinja templating, this will often fail and the syntax - # error will be discovered in execution anyway) diff --git a/.stestr.conf b/.stestr.conf deleted file mode 100644 index 65b7382..0000000 --- a/.stestr.conf +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] -test_path=${TEST_PATH:-./tests/} -top_dir=./ diff --git a/.yamllint b/.yamllint deleted file mode 100644 index cd9848c..0000000 --- a/.yamllint +++ /dev/null @@ -1,11 +0,0 @@ ---- -extends: default - -rules: - line-length: - # increase line limit because ansible collections needs more space - # ansible-lint is 160 (rule 204) - max: 256 - -ignore: | - zuul.d/*.yaml diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d645695..0000000 --- a/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md deleted file mode 100644 index f9e313c..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -tripleo-operator-ansible -======================== - -This repository contains an ansible collection of TripleO roles. This collection -contains a set of roles providing an ansible interface for the TripleO cli actions. - -Documentation -------------- -Documentation can be viewed at https://docs.openstack.org/tripleo-operator-ansible/latest/ diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..4ee2c5f --- /dev/null +++ b/README.rst @@ -0,0 +1,10 @@ +This project is no longer maintained. + +The contents of this repository are still available in the Git +source code management system. To see the contents of this +repository before it reached its end of life, please check out the +previous commit with "git checkout HEAD^1". + +For any further questions, please email +openstack-discuss@lists.openstack.org or join #openstack-dev on +OFTC. diff --git a/ansible-requirements.txt b/ansible-requirements.txt deleted file mode 100644 index 9ec95af..0000000 --- a/ansible-requirements.txt +++ /dev/null @@ -1 +0,0 @@ -ansible-core<2.12 diff --git a/bindep.txt b/bindep.txt deleted file mode 100644 index 8e60cc8..0000000 --- a/bindep.txt +++ /dev/null @@ -1,37 +0,0 @@ -# This file facilitates OpenStack-CI package installation -# before the execution of any tests. -# -# See the following for details: -# - https://docs.openstack.org/infra/bindep/ -# - https://opendev.org/opendev/bindep/ -# -# Even if the role does not make use of this facility, it -# is better to have this file empty, otherwise OpenStack-CI -# will fall back to installing its default packages which -# will potentially be detrimental to the tests executed. - -# The gcc compiler -gcc - -# Base requirements for RPM distros -gcc-c++ [platform:rpm] -git [platform:rpm] -libffi-devel [platform:rpm] -openssl-devel [platform:rpm] -python-devel [platform:rpm !platform:rhel-8 !platform:centos-8] -python3-devel [platform:rpm !platform:rhel-7 !platform:centos-7] -PyYAML [platform:rpm !platform:rhel-8 !platform:centos-8] -python3-pyyaml [platform:rpm !platform:rhel-7 !platform:centos-7] -python3-dnf [platform:rpm !platform:rhel-7 !platform:centos-7] - -# For SELinux -libselinux-python [platform:rpm !platform:rhel-8 !platform:centos-8] -libsemanage-python [platform:redhat !platform:rhel-8 !platform:centos-8] -libselinux-python3 [platform:rpm !platform:rhel-7 !platform:centos-7] -libsemanage-python3 [platform:redhat !platform:rhel-7 !platform:centos-7] - -# Required for compressing collected log files in CI -gzip - -# Required to build language docs -gettext diff --git a/ci/playbooks/publish_collection.yml b/ci/playbooks/publish_collection.yml deleted file mode 100644 index 943c1cf..0000000 --- a/ci/playbooks/publish_collection.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -- hosts: all - vars: - collection_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/tripleo-operator-ansible'].src_dir }}" - build_collection_path: /tmp/collection_built/ - ansible_galaxy_path: "~/.local/bin/ansible-galaxy" - - tasks: - - - name: Include role for pip - include_role: - name: ensure-pip - - - name: Install ansible - pip: - name: ansible-core<2.12 - - - name: Discover tag version - set_fact: - version_tag: "{{ zuul.tag|default('no_version', true) }}" - - - name: Fail if no tag version found - fail: - msg: "No tag was found in Zuul vars!" - when: version_tag == 'no_version' - - - name: Create a directory for collection - file: - state: "{{ item }}" - path: "{{ build_collection_path }}" - mode: 0755 - loop: - - absent - - directory - - - name: Set galaxy.yml for right version from tag - lineinfile: - path: '{{ collection_path }}/galaxy.yml' - regexp: '^version:.*' - line: 'version: {{ version_tag }}' - - - name: Build collection - command: "{{ ansible_galaxy_path }} collection build --output-path {{ build_collection_path }} --force" - args: - chdir: "{{ collection_path }}" - - - name: Publish content to Ansible Galaxy - block: - - name: Create ansible.cfg configuration file tempfile - tempfile: - state: file - suffix: .cfg - register: _ansiblecfg_tmp - - - name: Create ansible.cfg configuration file - copy: - dest: "{{ _ansiblecfg_tmp.path }}" - mode: 0600 - content: | - [galaxy] - server_list = release_galaxy - - [galaxy_server.release_galaxy] - url = {{ ansible_galaxy_info.url }} - token = {{ ansible_galaxy_info.token }} - - - name: Publish collection to Ansible Galaxy / Automation Hub - environment: - ANSIBLE_CONFIG: "{{ _ansiblecfg_tmp.path }}" - shell: >- - {{ ansible_galaxy_path }} collection publish -vvv - {{ build_collection_path }}/tripleo-operator-{{ version_tag }}.tar.gz - - always: - - name: Shred ansible-galaxy credentials - command: "shred {{ _ansiblecfg_tmp.path }}" diff --git a/doc/requirements.txt b/doc/requirements.txt deleted file mode 100644 index 8e5a8dd..0000000 --- a/doc/requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ -netaddr # BSD -stestr>=2.0.0 # Apache-2.0 -oslotest>=3.2.0 # Apache-2.0 -ruamel.yaml -pre-commit # MIT -ansible-core<2.12 - -# this is required for the docs build jobs -sphinx>=2.0.0,!=2.1.0 # BSD -openstackdocstheme>=2.2.1 # Apache-2.0 -reno>=3.1.0 # Apache-2.0 -doc8>=0.8.0 # Apache-2.0 -bashate>=0.6.0 # Apache-2.0 diff --git a/doc/source/_exts/ansible-autodoc.py b/doc/source/_exts/ansible-autodoc.py deleted file mode 100644 index 09351b7..0000000 --- a/doc/source/_exts/ansible-autodoc.py +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -import imp -import os - -from docutils import core -from docutils import nodes -from docutils.parsers.rst import Directive -from docutils.parsers import rst -from docutils.writers.html4css1 import Writer - -from ruamel.yaml import YAML as RYAML - -try: - import io - StringIO = io.StringIO -except ImportError: - import StringIO - - -class DocYaml(RYAML): - def _license_filter(self, data): - """This will filter out our boilerplate license heading in return data. - - The filter is used to allow documentation we're creating in variable - files to be rendered more beautifully. - """ - lines = list() - mark = True - for line in data.splitlines(): - if '# Copyright' in line: - mark = False - if mark: - lines.append(line) - if '# under the License' in line: - mark = True - return '\n'.join(lines) - - def dump(self, data, stream=None, **kw): - if not stream: - stream = StringIO() - try: - RYAML.dump(self, data, stream, **kw) - return self._license_filter(stream.getvalue().strip()) - finally: - stream.close() - - -DOCYAML = DocYaml() -DOCYAML.default_flow_style = False - - -class AnsibleAutoPluginDirective(Directive): - directive_name = "ansibleautoplugin" - has_content = True - option_spec = { - 'module': rst.directives.unchanged, - 'role': rst.directives.unchanged, - 'documentation': rst.directives.unchanged, - 'examples': rst.directives.unchanged - } - - @staticmethod - def _render_html(source): - return core.publish_parts( - source=source, - writer=Writer(), - writer_name='html', - settings_overrides={'no_system_messages': True} - ) - - def make_node(self, title, contents, content_type=None): - section = self._section_block(title=title) - if not content_type: - # Doc section - for content in contents['docs']: - for paragraph in content.split('\n'): - retnode = nodes.paragraph() - retnode.append(self._raw_html_block(data=paragraph)) - section.append(retnode) - - # Options Section - options_list = nodes.field_list() - options_section = self._section_block(title='Options') - for key, value in contents['options'].items(): - options_list.append( - self._raw_fields( - data=value['description'], - field_name=key - ) - ) - else: - options_section.append(options_list) - section.append(options_section) - - # Authors Section - authors_list = nodes.field_list() - authors_list.append( - self._raw_fields( - data=contents['author'] - ) - ) - authors_section = self._section_block(title='Authors') - authors_section.append(authors_list) - section.append(authors_section) - - elif content_type == 'yaml': - for content in contents: - section.append( - self._literal_block( - data=content, - dump_data=False - ) - ) - - return section - - @staticmethod - def load_module(filename): - return imp.load_source('__ansible_module__', filename) - - @staticmethod - def build_documentation(module): - docs = DOCYAML.load(module.DOCUMENTATION) - doc_data = dict() - doc_data['docs'] = docs['description'] - doc_data['author'] = docs.get('author', list()) - doc_data['options'] = docs.get('options', dict()) - return doc_data - - @staticmethod - def build_examples(module): - examples = DOCYAML.load(module.EXAMPLES) - return_examples = list() - for example in examples: - return_examples.append(DOCYAML.dump([example])) - return return_examples - - def _raw_html_block(self, data): - html = self._render_html(source=data) - return nodes.raw('', html['body'], format='html') - - def _raw_fields(self, data, field_name=''): - body = nodes.field_body() - if isinstance(data, list): - for item in data: - body.append(self._raw_html_block(data=item)) - else: - body.append(self._raw_html_block(data=data)) - - field = nodes.field() - field.append(nodes.field_name(text=field_name)) - field.append(body) - return field - - @staticmethod - def _literal_block(data, language='yaml', dump_data=True): - if dump_data: - literal = nodes.literal_block( - text=DOCYAML.dump(data) - ) - else: - literal = nodes.literal_block(text=data) - literal['language'] = 'yaml' - return literal - - @staticmethod - def _section_block(title, text=None): - section = nodes.section( - title, - nodes.title(text=title), - ids=[nodes.make_id('-'.join(title))], - ) - if text: - section_body = nodes.field_body() - section_body.append(nodes.paragraph(text=text)) - section.append(section_body) - - return section - - def _yaml_section(self, to_yaml_data, section_title, section_text=None): - yaml_section = self._section_block( - title=section_title, - text=section_text - ) - yaml_section.append(self._literal_block(data=to_yaml_data)) - return yaml_section - - def _run_role(self, role): - section = self._section_block( - title='Role Documentation', - text='Welcome to the "{}" role documentation.'.format( - os.path.basename(role) - ) - ) - defaults_file = os.path.join(role, 'defaults', 'main.yml') - if os.path.exists(defaults_file): - with open(defaults_file) as f: - role_defaults = DOCYAML.load(f.read()) - section.append( - self._yaml_section( - to_yaml_data=role_defaults, - section_title='Role Defaults', - section_text='This section highlights all of the defaults' - ' and variables set within the "{}"' - ' role.'.format(os.path.basename(role)) - ) - ) - - vars_path = os.path.join(role, 'vars') - if os.path.exists(vars_path): - for v_file in os.listdir(vars_path): - vars_file = os.path.join(vars_path, v_file) - with open(vars_file) as f: - vars_values = DOCYAML.load(f.read()) - section.append( - self._yaml_section( - to_yaml_data=vars_values, - section_title='Role Variables: {}'.format(v_file) - ) - ) - - self.run_returns.append(section) - - # Document any libraries nested within the role - library_path = os.path.join(role, 'library') - if os.path.exists(library_path): - self.options['documentation'] = True - self.options['examples'] = True - for lib in os.listdir(library_path): - if lib.endswith('.py'): - self._run_module( - module=self.load_module( - filename=os.path.join( - library_path, - lib - ) - ), - module_title='Embedded module: {}'.format(lib), - example_title='Examples for embedded module' - ) - - def _run_module(self, module, module_title="Module Documentation", - example_title="Example Tasks"): - if self.options.get('documentation'): - docs = self.build_documentation(module=module) - self.run_returns.append( - self.make_node( - title=module_title, - contents=docs - ) - ) - - if self.options.get('examples'): - examples = self.build_examples(module=module) - self.run_returns.append( - self.make_node( - title=example_title, - contents=examples, - content_type='yaml' - ) - ) - - def run(self): - self.run_returns = list() - - if self.options.get('module'): - module = self.load_module(filename=self.options['module']) - self._run_module(module=module) - - if self.options.get('role'): - self._run_role(role=self.options['role']) - - return self.run_returns - - -def setup(app): - classes = [ - AnsibleAutoPluginDirective, - ] - for directive_class in classes: - app.add_directive(directive_class.directive_name, directive_class) - - return {'version': '0.2'} diff --git a/doc/source/bestpractices.rst b/doc/source/bestpractices.rst deleted file mode 100644 index eb49bc6..0000000 --- a/doc/source/bestpractices.rst +++ /dev/null @@ -1,43 +0,0 @@ -============== -Best Practices -============== - - -The roles provided in this collection wrap the tripleoclient actions that are -used to deploy and manage an undercloud and overcloud. The point of these -roles is to establish a common interface for Ansible based automation. - - -Ansible Collection Namespace ----------------------------- - -tripleo-operator-ansible is an Ansible collection. In order to consume the -roles and plugins within this repository, it needs to be installed as a -collection. This repository provides the `tripleo.operator` namespace. -When writing playbooks, the usage of the `collections:` keyword -is required in order for them to be executed. See the `Ansible Collection Documentation`_ -for additional details. - -.. _Ansible Collection Documentation: https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#using-collections-in-a-playbook - - -Role Naming Convention ----------------------- - -To general naming scheme for the roles provide is to take the openstackclient -command and replace `openstack` with `tripleo` and use underscores instead -of spaces. For example, `openstack overcloud deploy` becomes -`tripleo_overcloud_deploy`. The exception to this rule is when the command -itself start with `openstack tripleo`. Rather than double the `tripleo` in the -role name, we only specify it once. For example `openstack tripleo container image prepare` -is simply `tripleo_container_image_prepare`. - - -Variable Naming Convention --------------------------- - -The variables used by each role are prefixed with the role name. For example -all roles contain a debug variable that can be used to print out the data used -when executing the specific commands. For example, `tripleo_overcloud_deploy_debug` -can be used to print out the cli command and the environment data used when -the command is executed. diff --git a/doc/source/conf.py b/doc/source/conf.py deleted file mode 100755 index 9f4cf62..0000000 --- a/doc/source/conf.py +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env python -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import os -import sys - -# Add the project -sys.path.insert(0, os.path.abspath('../..')) -# Add the extensions -sys.path.insert(0, os.path.join(os.path.abspath('.'), '_exts')) - -# -- General configuration ---------------------------------------------------- - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = [ - 'openstackdocstheme', - 'sphinx.ext.autodoc', - 'ansible-autodoc' -] - -# autodoc generation is a bit aggressive and a nuisance when doing heavy -# text edit cycles. -# execute "export SPHINX_DEBUG=1" in your terminal to disable -# autodoc_mock_imports = ["django"] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = u'tripleo-operator-ansible' -copyright = u'2019, OpenStack Foundation' - -# If true, '()' will be appended to :func: etc. cross-reference text. -add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -add_module_names = True - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'native' - -# -- Options for HTML output -------------------------------------------------- - -# The theme to use for HTML and HTML Help pages. Major themes that come with -# Sphinx are currently 'default' and 'sphinxdoc'. -# html_theme_path = ["."] -# html_theme = '_theme' -# html_static_path = ['static'] - -# Output file base name for HTML help builder. -htmlhelp_basename = '%sdoc' % project -html_theme = 'openstackdocs' - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, author, documentclass -# [howto/manual]). -latex_documents = [ - ('index', - '%s.tex' % project, - u'%s Documentation' % project, - u'OpenStack Foundation', 'manual'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -# intersphinx_mapping = {'http://docs.python.org/': None} - -# openstackdocstheme options -openstackdocs_repo_name = 'openstack/tripleo-operator-ansible' -openstackdocs_auto_name = False -openstackdocs_bug_project = 'tripleo' -openstackdocs_bug_tag = 'documentation' diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst deleted file mode 100644 index 0ac86ab..0000000 --- a/doc/source/contributing.rst +++ /dev/null @@ -1,26 +0,0 @@ -============ -Contributing -============ - -Adding roles into this project is easy and starts with a compatible skeleton. - - -Create a new role manually -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -TBD - -Create a new role with automation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -TBD - -Local testing of new roles -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -TBD - -Contributing plugins -~~~~~~~~~~~~~~~~~~~~ - -TBD diff --git a/doc/source/index.rst b/doc/source/index.rst deleted file mode 100644 index 1203124..0000000 --- a/doc/source/index.rst +++ /dev/null @@ -1,19 +0,0 @@ -Welcome to tripleo-operator-ansible's documentation! -==================================================== - -Contents: - -.. toctree:: - :maxdepth: 2 - - installation - usage - bestpractices - contributing - roles - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`search` diff --git a/doc/source/installation.rst b/doc/source/installation.rst deleted file mode 100644 index d9349de..0000000 --- a/doc/source/installation.rst +++ /dev/null @@ -1,31 +0,0 @@ -============ -Installation -============ - -Via Package ------------ - -At the command line using `yum`. - -.. code-block:: console - - $ yum install tripleo-operator-ansible - - -At the command line using `dnf`. - -.. code-block:: console - - $ dnf install tripleo-operator-ansible - -From Source ------------ - -At the command line install using the ansible-galaxy command. - -.. code-block:: console - - $ git clone https://opendev.org/openstack/tripleo-operator-ansible - $ cd tripleo-operator-ansible - $ ansible-galaxy collection build --force --output-path ~/collections - $ ansible-galaxy collection install --force ~/collections/tripleo-operator* diff --git a/doc/source/roles.rst b/doc/source/roles.rst deleted file mode 100644 index aede2da..0000000 --- a/doc/source/roles.rst +++ /dev/null @@ -1,9 +0,0 @@ -Documented roles in tripleo-operator-ansible -============================================ - -Contents: - -.. toctree:: - :glob: - - roles/* diff --git a/doc/source/roles/role-test_molecule_prep.rst b/doc/source/roles/role-test_molecule_prep.rst deleted file mode 100644 index bf3242a..0000000 --- a/doc/source/roles/role-test_molecule_prep.rst +++ /dev/null @@ -1,6 +0,0 @@ -========================= -Role - test_molecule_prep -========================= - -.. ansibleautoplugin:: - :role: roles/test_molecule_prep diff --git a/doc/source/roles/role-tripleo_config_generate_ansible.rst b/doc/source/roles/role-tripleo_config_generate_ansible.rst deleted file mode 100644 index a85d4c6..0000000 --- a/doc/source/roles/role-tripleo_config_generate_ansible.rst +++ /dev/null @@ -1,6 +0,0 @@ -====================================== -Role - tripleo_config_generate_ansible -====================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_config_generate_ansible diff --git a/doc/source/roles/role-tripleo_container_image_delete.rst b/doc/source/roles/role-tripleo_container_image_delete.rst deleted file mode 100644 index 5ad69fe..0000000 --- a/doc/source/roles/role-tripleo_container_image_delete.rst +++ /dev/null @@ -1,6 +0,0 @@ -===================================== -Role - tripleo_container_image_delete -===================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_delete diff --git a/doc/source/roles/role-tripleo_container_image_list.rst b/doc/source/roles/role-tripleo_container_image_list.rst deleted file mode 100644 index 4180031..0000000 --- a/doc/source/roles/role-tripleo_container_image_list.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== -Role - tripleo_container_image_list -=================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_list diff --git a/doc/source/roles/role-tripleo_container_image_prepare.rst b/doc/source/roles/role-tripleo_container_image_prepare.rst deleted file mode 100644 index d94b09d..0000000 --- a/doc/source/roles/role-tripleo_container_image_prepare.rst +++ /dev/null @@ -1,6 +0,0 @@ -====================================== -Role - tripleo_container_image_prepare -====================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_prepare diff --git a/doc/source/roles/role-tripleo_container_image_prepare_default.rst b/doc/source/roles/role-tripleo_container_image_prepare_default.rst deleted file mode 100644 index 111e901..0000000 --- a/doc/source/roles/role-tripleo_container_image_prepare_default.rst +++ /dev/null @@ -1,6 +0,0 @@ -============================================== -Role - tripleo_container_image_prepare_default -============================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_prepare_default diff --git a/doc/source/roles/role-tripleo_container_image_push.rst b/doc/source/roles/role-tripleo_container_image_push.rst deleted file mode 100644 index 712db95..0000000 --- a/doc/source/roles/role-tripleo_container_image_push.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== -Role - tripleo_container_image_push -=================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_push diff --git a/doc/source/roles/role-tripleo_container_image_show.rst b/doc/source/roles/role-tripleo_container_image_show.rst deleted file mode 100644 index 6ad4847..0000000 --- a/doc/source/roles/role-tripleo_container_image_show.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== -Role - tripleo_container_image_show -=================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_container_image_show diff --git a/doc/source/roles/role-tripleo_deploy.rst b/doc/source/roles/role-tripleo_deploy.rst deleted file mode 100644 index ae1f793..0000000 --- a/doc/source/roles/role-tripleo_deploy.rst +++ /dev/null @@ -1,6 +0,0 @@ -===================== -Role - tripleo_deploy -===================== - -.. ansibleautoplugin:: - :role: roles/tripleo_deploy diff --git a/doc/source/roles/role-tripleo_overcloud_container_image_build.rst b/doc/source/roles/role-tripleo_overcloud_container_image_build.rst deleted file mode 100644 index 44a1b10..0000000 --- a/doc/source/roles/role-tripleo_overcloud_container_image_build.rst +++ /dev/null @@ -1,6 +0,0 @@ -============================================== -Role - tripleo_overcloud_container_image_build -============================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_container_image_build diff --git a/doc/source/roles/role-tripleo_overcloud_container_image_prepare.rst b/doc/source/roles/role-tripleo_overcloud_container_image_prepare.rst deleted file mode 100644 index c40bf41..0000000 --- a/doc/source/roles/role-tripleo_overcloud_container_image_prepare.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================================ -Role - tripleo_overcloud_container_image_prepare -================================================ - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_container_image_prepare diff --git a/doc/source/roles/role-tripleo_overcloud_deploy.rst b/doc/source/roles/role-tripleo_overcloud_deploy.rst deleted file mode 100644 index a20cc88..0000000 --- a/doc/source/roles/role-tripleo_overcloud_deploy.rst +++ /dev/null @@ -1,6 +0,0 @@ -=============================== -Role - tripleo_overcloud_deploy -=============================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_deploy diff --git a/doc/source/roles/role-tripleo_overcloud_export.rst b/doc/source/roles/role-tripleo_overcloud_export.rst deleted file mode 100644 index 9ed4055..0000000 --- a/doc/source/roles/role-tripleo_overcloud_export.rst +++ /dev/null @@ -1,6 +0,0 @@ -=============================== -Role - tripleo_overcloud_export -=============================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_export diff --git a/doc/source/roles/role-tripleo_overcloud_failures.rst b/doc/source/roles/role-tripleo_overcloud_failures.rst deleted file mode 100644 index 46deebb..0000000 --- a/doc/source/roles/role-tripleo_overcloud_failures.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================= -Role - tripleo_overcloud_failures -================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_failures diff --git a/doc/source/roles/role-tripleo_overcloud_image_build.rst b/doc/source/roles/role-tripleo_overcloud_image_build.rst deleted file mode 100644 index c55603f..0000000 --- a/doc/source/roles/role-tripleo_overcloud_image_build.rst +++ /dev/null @@ -1,6 +0,0 @@ -==================================== -Role - tripleo_overcloud_image_build -==================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_image_build diff --git a/doc/source/roles/role-tripleo_overcloud_image_upload.rst b/doc/source/roles/role-tripleo_overcloud_image_upload.rst deleted file mode 100644 index 706f290..0000000 --- a/doc/source/roles/role-tripleo_overcloud_image_upload.rst +++ /dev/null @@ -1,6 +0,0 @@ -===================================== -Role - tripleo_overcloud_image_upload -===================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_image_upload diff --git a/doc/source/roles/role-tripleo_overcloud_node_bios_configure.rst b/doc/source/roles/role-tripleo_overcloud_node_bios_configure.rst deleted file mode 100644 index ef627ae..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_bios_configure.rst +++ /dev/null @@ -1,6 +0,0 @@ -============================================ -Role - tripleo_overcloud_node_bios_configure -============================================ - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_bios_configure diff --git a/doc/source/roles/role-tripleo_overcloud_node_bios_reset.rst b/doc/source/roles/role-tripleo_overcloud_node_bios_reset.rst deleted file mode 100644 index c0883bc..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_bios_reset.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================== -Role - tripleo_overcloud_node_bios_reset -======================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_bios_reset diff --git a/doc/source/roles/role-tripleo_overcloud_node_clean.rst b/doc/source/roles/role-tripleo_overcloud_node_clean.rst deleted file mode 100644 index 826bc07..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_clean.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== -Role - tripleo_overcloud_node_clean -=================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_clean diff --git a/doc/source/roles/role-tripleo_overcloud_node_configure.rst b/doc/source/roles/role-tripleo_overcloud_node_configure.rst deleted file mode 100644 index 12059c6..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_configure.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================= -Role - tripleo_overcloud_node_configure -======================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_configure diff --git a/doc/source/roles/role-tripleo_overcloud_node_delete.rst b/doc/source/roles/role-tripleo_overcloud_node_delete.rst deleted file mode 100644 index 88a6b71..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_delete.rst +++ /dev/null @@ -1,6 +0,0 @@ -==================================== -Role - tripleo_overcloud_node_delete -==================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_delete diff --git a/doc/source/roles/role-tripleo_overcloud_node_discover.rst b/doc/source/roles/role-tripleo_overcloud_node_discover.rst deleted file mode 100644 index cfa2b95..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_discover.rst +++ /dev/null @@ -1,6 +0,0 @@ -====================================== -Role - tripleo_overcloud_node_discover -====================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_discover diff --git a/doc/source/roles/role-tripleo_overcloud_node_extract_provisioned.rst b/doc/source/roles/role-tripleo_overcloud_node_extract_provisioned.rst deleted file mode 100644 index cf67086..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_extract_provisioned.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================================= -Role - tripleo_overcloud_node_extract_provisioned -================================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_extract_provisioned diff --git a/doc/source/roles/role-tripleo_overcloud_node_import.rst b/doc/source/roles/role-tripleo_overcloud_node_import.rst deleted file mode 100644 index da20528..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_import.rst +++ /dev/null @@ -1,6 +0,0 @@ -==================================== -Role - tripleo_overcloud_node_import -==================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_import diff --git a/doc/source/roles/role-tripleo_overcloud_node_introspect.rst b/doc/source/roles/role-tripleo_overcloud_node_introspect.rst deleted file mode 100644 index 0ba80ff..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_introspect.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================== -Role - tripleo_overcloud_node_introspect -======================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_introspect diff --git a/doc/source/roles/role-tripleo_overcloud_node_provision.rst b/doc/source/roles/role-tripleo_overcloud_node_provision.rst deleted file mode 100644 index 1d8696f..0000000 --- a/doc/source/roles/role-tripleo_overcloud_node_provision.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================= -Role - tripleo_overcloud_node_provision -======================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_node_provision diff --git a/doc/source/roles/role-tripleo_overcloud_status.rst b/doc/source/roles/role-tripleo_overcloud_status.rst deleted file mode 100644 index e59471c..0000000 --- a/doc/source/roles/role-tripleo_overcloud_status.rst +++ /dev/null @@ -1,6 +0,0 @@ -=============================== -Role - tripleo_overcloud_status -=============================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_status diff --git a/doc/source/roles/role-tripleo_overcloud_update_prepare.rst b/doc/source/roles/role-tripleo_overcloud_update_prepare.rst deleted file mode 100644 index a29af15..0000000 --- a/doc/source/roles/role-tripleo_overcloud_update_prepare.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================= -Role - tripleo_overcloud_update_prepare -======================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_update_prepare diff --git a/doc/source/roles/role-tripleo_overcloud_update_run.rst b/doc/source/roles/role-tripleo_overcloud_update_run.rst deleted file mode 100644 index 630b9a8..0000000 --- a/doc/source/roles/role-tripleo_overcloud_update_run.rst +++ /dev/null @@ -1,6 +0,0 @@ -=================================== -Role - tripleo_overcloud_update_run -=================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_overcloud_update_run diff --git a/doc/source/roles/role-tripleo_repos.rst b/doc/source/roles/role-tripleo_repos.rst deleted file mode 100644 index 478d795..0000000 --- a/doc/source/roles/role-tripleo_repos.rst +++ /dev/null @@ -1,6 +0,0 @@ -==================== -Role - tripleo_repos -==================== - -.. ansibleautoplugin:: - :role: roles/tripleo_repos diff --git a/doc/source/roles/role-tripleo_undercloud_backup.rst b/doc/source/roles/role-tripleo_undercloud_backup.rst deleted file mode 100644 index d2f812a..0000000 --- a/doc/source/roles/role-tripleo_undercloud_backup.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================ -Role - tripleo_undercloud_backup -================================ - -.. ansibleautoplugin:: - :role: roles/tripleo_undercloud_backup diff --git a/doc/source/roles/role-tripleo_undercloud_install.rst b/doc/source/roles/role-tripleo_undercloud_install.rst deleted file mode 100644 index ab1c47e..0000000 --- a/doc/source/roles/role-tripleo_undercloud_install.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================= -Role - tripleo_undercloud_install -================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_undercloud_install diff --git a/doc/source/roles/role-tripleo_undercloud_minion_install.rst b/doc/source/roles/role-tripleo_undercloud_minion_install.rst deleted file mode 100644 index dce9761..0000000 --- a/doc/source/roles/role-tripleo_undercloud_minion_install.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================== -Role - tripleo_undercloud_minion_install -======================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_undercloud_minion_install diff --git a/doc/source/roles/role-tripleo_undercloud_minion_upgrade.rst b/doc/source/roles/role-tripleo_undercloud_minion_upgrade.rst deleted file mode 100644 index b6412ac..0000000 --- a/doc/source/roles/role-tripleo_undercloud_minion_upgrade.rst +++ /dev/null @@ -1,6 +0,0 @@ -======================================== -Role - tripleo_undercloud_minion_upgrade -======================================== - -.. ansibleautoplugin:: - :role: roles/tripleo_undercloud_minion_upgrade diff --git a/doc/source/roles/role-tripleo_undercloud_upgrade.rst b/doc/source/roles/role-tripleo_undercloud_upgrade.rst deleted file mode 100644 index bf396e9..0000000 --- a/doc/source/roles/role-tripleo_undercloud_upgrade.rst +++ /dev/null @@ -1,6 +0,0 @@ -================================= -Role - tripleo_undercloud_upgrade -================================= - -.. ansibleautoplugin:: - :role: roles/tripleo_undercloud_upgrade diff --git a/doc/source/usage.rst b/doc/source/usage.rst deleted file mode 100644 index faf4260..0000000 --- a/doc/source/usage.rst +++ /dev/null @@ -1,7 +0,0 @@ -===== -Usage -===== - -Once the tripleo-operator-ansible project has been installed navigate to the share path, -usually `/usr/share/ansible` path to access the installed roles, playbooks, and -libraries. diff --git a/galaxy.yml b/galaxy.yml deleted file mode 100644 index 5fecc97..0000000 --- a/galaxy.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -### REQUIRED - -# The namespace of the collection. This can be a company/brand/organization or product namespace under which all -# content lives. May only contain alphanumeric characters and underscores. Additionally namespaces cannot start with -# underscores or numbers and cannot contain consecutive underscores -namespace: tripleo - -# The name of the collection. Has the same character restrictions as 'namespace' -name: operator - -# The version of the collection. Must be compatible with semantic versioning -version: 0.6.0 - -# The path to the Markdown (.md) readme file. This path is relative to the root of the collection -readme: README.md - -# A list of the collection's content authors. Can be just the name or in the format 'Full Name (url) -# @nicks:irc/im.site#channel' -authors: - - OpenStack Developers - - -### OPTIONAL but strongly recommended - -# A short summary description of the collection -description: Collection of roles used to automate TripleO deployments - -# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only -# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' -license: - - Apache-2.0 - -# The path to the license file for the collection. This path is relative to the root of the collection. This key is -# mutually exclusive with 'license' -license_file: '' - -# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character -# requirements as 'namespace' and 'name' -tags: ['tripleo', 'openstack'] - -# Collections that this collection requires to be installed for it to be usable. The key of the dict is the -# collection label 'namespace.name'. The value is a version range -# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version -# range specifiers can be set and are separated by ',' -dependencies: {} - -# The URL of the originating SCM repository -repository: https://opendev.org/openstack/tripleo-operator-ansible - -# The URL to any online docs -documentation: https://docs.openstack.org/tripleo-operator-ansible/latest/ - -# The URL to the homepage of the collection/project -homepage: https://openstack.org - -# The URL to the collection issue tracker -issues: https://bugs.launchpad.net/tripleo/ diff --git a/meta/runtime.yml b/meta/runtime.yml deleted file mode 100644 index 9c1d246..0000000 --- a/meta/runtime.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -requires_ansible: ">=2.8" diff --git a/molecule-requirements.txt b/molecule-requirements.txt deleted file mode 100644 index 6e9cb7a..0000000 --- a/molecule-requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -ansible-core<2.12 -# molecule also has optional extras: docker, podman -molecule[test]>=3.5.0,<3.6 # MIT -oslotest -pytest-molecule>=1.3.3 -# Latest release of py is 1.11.0, library which is in maintenance mode -py==1.11.0 # MIT diff --git a/playbooks/README.md b/playbooks/README.md deleted file mode 100644 index 35addfb..0000000 --- a/playbooks/README.md +++ /dev/null @@ -1,15 +0,0 @@ -Playbooks -========= - -This folder contains a set of example playbooks that do the minimum required -actions to perform specific actions. They can be used as example files to be -tailored to your specific requirements. - -Examples --------- - -* `container-prepare.yml` - Container prepare playbook -* `import-nodes.yml` - Baremetal node import and introspection playbook -* `overcloud-deploy.yml` - Basic overcloud deployment -* `standalone.yml` - Standalone playbook for PoC -* `undercloud.yml` - Undercloud installation playbook diff --git a/playbooks/container-build.yaml b/playbooks/container-build.yaml deleted file mode 100644 index 51254fb..0000000 --- a/playbooks/container-build.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -############################################################################### -# Container Image Build playbook -# -# Description: -# This is a basic playbook to perform the basic container image build actions -# for TripleO containers. -# -############################################################################### -- hosts: undercloud - collections: - - tripleo.operator - vars: - build_debug: true - registry: quay.io/tripleomaster - tag: current-tripleo - - tasks: - - name: Gather the rpm package facts - package_facts: - - - name: Check if tripleoclient is installed - fail: - msg: >- - TripleO Client is not installed. Please make sure that the client - has been installed and the repositories are properly configured. - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleoclient' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleoclient' in ansible_facts.packages) - - - name: Run container image build - include_role: - name: tripleo_container_image_build - vars: - tripleo_container_image_build_debug: "{{ build_debug }}" - tripleo_container_image_build_registry: "{{ registry }}" - tripleo_container_image_build_tag: "{{ tag }}" - tripleo_container_image_build_push: true diff --git a/playbooks/container-prepare.yml b/playbooks/container-prepare.yml deleted file mode 100644 index c57e0e8..0000000 --- a/playbooks/container-prepare.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -############################################################################### -# Container preparation playbook -# -# Description: -# This is a basic playbook to perform the basic container prepare actions -# for an overcloud or undercloud deployment. -# -############################################################################### -- hosts: undercloud - collections: - - tripleo.operator - vars: - prepare_debug: true - use_default: true - default_push_destination: true - output_env_file: "{{ ansible_env.HOME }}/container-image-prepare.yaml" - prepare_env_files: [] - prepare_rolefile: - - tasks: - - name: Gather the rpm package facts - package_facts: - - - name: Check if tripleoclient is installed - fail: - msg: >- - TripleO Client is not installed. Please make sure that the client - has been installed and the repositories are properly configured. - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleoclient' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleoclient' in ansible_facts.packages) - - - name: Run container image prepare defaults - include_role: - name: tripleo_container_image_prepare_default - vars: - tripleo_container_image_prepare_default_debug: "{{ prepare_debug }}" - tripleo_container_image_prepare_default_local_push_destination: "{{ default_push_destination }}" - tripleo_container_image_prepare_default_output_env_file: "{{ output_env_file }}" - when: use_default|bool - - - name: Run container image prepare - include_role: - name: tripleo_overcloud_node_introspect - vars: - tripleo_container_image_prepare_debug: "{{ prepare_debug }}" - tripleo_container_image_prepare_environment_files: "{{ prepare_env_files }}" - tripleo_container_image_prepare_roles_file: "{{ prepare_roles_file }}" - tripleo_container_image_prepare_output_env_file: "{{ output_env_file }}" - when: not use_default|bool diff --git a/playbooks/import-nodes.yml b/playbooks/import-nodes.yml deleted file mode 100644 index 037e379..0000000 --- a/playbooks/import-nodes.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -############################################################################### -# Overcloud node import and introspection playbook -# -# Description: -# This is a basic playbook to import overcloud nodes and kick off node -# introspection. -# -############################################################################### -- hosts: undercloud - collections: - - tripleo.operator - vars: - node_debug: true - node_introspect: true - node_environment_source_json_file: environment.json - tasks: - - name: Gather the rpm package facts - package_facts: - - - name: Check if tripleoclient is installed - fail: - msg: >- - TripleO Client is not installed. Please make sure that the client - has been installed and the repositories are properly configured. - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleoclient' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleoclient' in ansible_facts.packages) - - - name: Copy environment file to the undercloud - copy: - src: "{{ node_environment_source_json_file }}" - dest: "{{ ansible_env.HOME }}/environment.json" - owner: "{{ ansible_env.USER }}" - mode: "0600" - - - name: Run node import - include_role: - name: tripleo_overcloud_node_import - vars: - tripleo_overcloud_node_import_debug: "{{ node_debug }}" - tripleo_overcloud_node_import_environment_file: "{{ ansible_env.HOME }}/environment.json" - - # NOTE(mwhahaha): We can do these actions during import, not sure which is better. - - name: Run node introspection - include_role: - name: tripleo_overcloud_node_introspect - vars: - tripleo_overcloud_node_introspect_debug: "{{ node_debug }}" - tripleo_overcloud_node_introspect_all_manageable: true - tripleo_overcloud_node_introspect_provide: true - when: node_introspect|bool diff --git a/playbooks/overcloud-deploy.yml b/playbooks/overcloud-deploy.yml deleted file mode 100644 index 42f485d..0000000 --- a/playbooks/overcloud-deploy.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -############################################################################### -# Overcloud deploy playbook -# -# Description: -# This is a basic playbook to execute an overcloud deployment. -# -############################################################################### -- hosts: undercloud - collections: - - tripleo.operator - vars: - deploy_debug: true - deploy_templates: /usr/share/openstack-tripleo-heat-templates/ - deploy_controller_count: 1 - deploy_compute_count: 1 - deploy_dns: - - 1.1.1.1 - - 8.8.8.8 - deploy_ntp: - - 0.pool.ntp.org - - 1.pool.ntp.org - - 2.pool.ntp.org - - 3.pool.ntp.org - deploy_env_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml - - /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml - - "{{ ansible_env.HOME }}/container-image-prepare.yaml" - - "{{ ansible_env.HOME }}/parameters.yaml" - - tasks: - - name: Gather the rpm package facts - package_facts: - - - name: Check if tripleoclient is installed - fail: - msg: >- - TripleO Client is not installed. Please make sure that the client - has been installed and the repositories are properly configured. - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleoclient' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleoclient' in ansible_facts.packages) - - - name: Generate parameters.yaml - copy: - content: | - parameter_defaults: - ControllerCount: {{ deploy_controller_count | default(1) }} - ComputeCount: {{ deploy_compute_count | default(1) }} - DnsServers: {{ deploy_dns }} - NtpServer: {{ deploy_ntp }} - dest: "{{ ansible_env.HOME }}/parameters.yaml" - mode: '0644' - - - name: Run overcloud deployment - include_role: - name: tripleo_overcloud_deploy - vars: - tripleo_overcloud_deploy_debug: "{{ deploy_debug }}" - tripleo_overcloud_deploy_environment_files: "{{ deploy_env_files }}" - tripleo_overcloud_deploy_templates: "{{ deploy_templates }}" diff --git a/playbooks/overcloud-images.yml b/playbooks/overcloud-images.yml deleted file mode 100644 index aeed122..0000000 --- a/playbooks/overcloud-images.yml +++ /dev/null @@ -1,67 +0,0 @@ ---- -############################################################################### -# Perform overcloud image build and/or uploads -# -# Description: -# This is a basic playbook that can be used to build and/or upload overcloud -# images into the undercloud. This playbook assumes that the repositories -# are already configured on the undercloud and checks that the tripleoclient -# is installed. -# -############################################################################### -- hosts: undercloud - gather_facts: true - collections: - - tripleo.operator - vars: - images_debug: true - build_images: true - upload_images: true - tripleo_overcloud_image_build_output_directory: "{{ ansible_env.HOME }}/images" - tripleo_overcloud_image_build_dib_yum_repo_conf: "/etc/yum.repos.d/*" - tripleo_overcloud_image_build_extra_env_vars: {} - tripleo_overcloud_image_upload_update_existing: true - - tasks: - - name: Gather the rpm package facts - package_facts: - - - name: Check if tripleoclient is installed - fail: - msg: >- - TripleO Client is not installed. Please make sure that the client - has been installed and the repositories are properly configured. - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleoclient' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleoclient' in ansible_facts.packages) - - - name: Set distribution variables - set_fact: - distro_name: "{{ (ansible_facts.distribution == 'RedHat') | ternary('rhel', 'centos') }}" - distro_version: "{{ ansible_facts.distribution_major_version | int }}" - images_version: "{{ (ansible_facts.distribution_major_version|int >= 8) | ternary('-python3', '') }}" - - - name: Ensure image folder exists - file: - path: "{{ tripleo_overcloud_image_build_output_directory }}" - state: directory - mode: '0755' - owner: "{{ ansible_env.USER }}" - - - name: Build images - include_role: - name: tripleo_overcloud_image_build - vars: - tripleo_overcloud_image_build_debug: "{{ images_debug }}" - tripleo_overcloud_image_build_config_files: - - /usr/share/openstack-tripleo-common/image-yaml/overcloud-images{{ images_version }}.yaml - - /usr/share/openstack-tripleo-common/image-yaml/overcloud-images-{{ distro_name }}{{ distro_version }}.yaml - when: build_images|bool - - - name: Upload images - include_role: - name: tripleo_overcloud_image_upload - vars: - tripleo_overcloud_image_upload_debug: "{{ images_debug }}" - tripleo_overcloud_image_upload_os_cloud: undercloud - tripleo_overcloud_image_upload_image_path: "{{ tripleo_overcloud_image_build_output_directory }}" - when: upload_images|bool diff --git a/playbooks/overcloud-post-installation.yml b/playbooks/overcloud-post-installation.yml deleted file mode 100644 index 6379924..0000000 --- a/playbooks/overcloud-post-installation.yml +++ /dev/null @@ -1,93 +0,0 @@ ---- -############################################################################### -# Overcloud post-installation playbook -# -# Description: -# This is a basic playbook to execute post-installation tasks. - -############################################################################### - -- hosts: undercloud - collections: - - tripleo.operator - vars: - flavors: - - name: m1.tiny - ram: 512 - disk: 0 - vcpus: 1 - - name: m1.smaller - ram: 1024 - disk: 0 - vcpus: 1 - - name: m1.small - ram: 2048 - disk: 10 - vcpus: 1 - - name: m1.medium - ram: 3072 - disk: 10 - vcpus: 2 - - name: m1.large - ram: 8192 - disk: 10 - vcpus: 4 - - name: m1.xlarge - ram: 8192 - disk: 10 - vcpus: 8 - networks: - - name: public - state: present - gateway_ip: 10.1.1.1 - subnet_range: 10.1.1.0/24 - external: true - - name: provider - state: present - gateway_ip: 10.9.101.254 - subnet_range: 10.9.101.0/24 - external: true - - name: private - state: present - gateway_ip: 10.1.2.1 - subnet_range: 10.1.2.0/24 - external: false - - stack_name: overcloud - - gather_facts: true - tasks: - - name: Get overcloud status - import_role: - name: tripleo_overcloud_status - - - name: Run all overcloud post installation tasks if conditions are met. - block: - - name: Create flavor - os_nova_flavor: - state: present - name: "{{ item.name }}" - ram: "{{ item.ram }}" - vcpus: "{{ item.vcpus }}" - disk: "{{ item.disk }}" - cloud: "{{ stack_name }}" - with_items: "{{ flavors }}" - - - name: Create networks - os_network: - state: present - name: "{{ item.name }}-network" - external: "{{ item.external }}" - cloud: "{{ stack_name }}" - with_items: "{{ networks }}" - - - name: Create subnet - os_subnet: - state: present - network_name: "{{ item.name }}-network" - name: "{{ item.name }}-subnet" - cidr: "{{ item.subnet_range }}" - gateway_ip: "{{ item.gateway_ip }}" - cloud: "{{ stack_name }}" - with_items: "{{ networks }}" - when: tripleo_overcloud_status_output | regex_search('DEPLOY_SUCCESS') diff --git a/playbooks/standalone.yml b/playbooks/standalone.yml deleted file mode 100644 index 8da1aa9..0000000 --- a/playbooks/standalone.yml +++ /dev/null @@ -1,113 +0,0 @@ ---- -############################################################################### -# Standalone installation playbook -# -# Description: -# This is a basic playbook to run a simple standalone node deploymend on an -# existing provisioned system. -# -############################################################################### -- hosts: standalone - collections: - - tripleo.operator - vars: - standalone_debug: true - standalone_dns: - - 1.1.1.1 - - 8.8.8.8 - standalone_hostname: 'standalone.localdomain' - standalone_ip: 192.168.24.2 - standalone_control_virtual_ip: 192.168.24.3 - standalone_cidr: 24 - standalone_gateway: - standalone_local_mtu: 1400 - standalone_local_interface: eth1 - standalone_enable_selinux: false - standalone_virt_type: qemu - - tasks: - - name: Set hostname - hostname: - name: "{{ standalone_hostname }}" - become: true - - - name: Configure tripleo repositories - include_role: - name: tripleo_repos - vars: - tripleo_repos_debug: "{{ standalone_debug }}" - when: - - ansible_facts.distribution == 'CentOS' - - - name: Ensure system is up to date - yum: - name: '*' - state: latest # noqa 403 - register: packages_updated - become: true - - - name: Reboot if necessary - reboot: - become: true - when: packages_updated is changed - - - name: Install tripleoclient - block: - - name: install python2 tripleoclient - yum: - name: python-tripleoclient - state: installed - become: true - when: ansible_facts.distribution_major_version|int <= 7 - - - name: install python3 tripleoclient - package: - name: python3-tripleoclient - state: present - become: true - when: ansible_facts.distribution_major_version|int >= 8 - - - name: Generate parameters.yaml - copy: - content: | - parameter_defaults: - CloudName: {{ standalone_hostname }} - {% if standalone_gateway | default(False) -%} - ControlPlaneStaticRoutes: - - ip_netmask: 0.0.0.0/0 - next_hop: {{ standalone_gateway }} - default: true - {% endif -%} - Debug: {{ standalone_debug|bool }} - DeploymentUser: {{ ansible_env.USER }} - DnsServers: {{ standalone_dns }} - KernelIpNonLocalBind: 1 - NeutronPublicInterface: {{ standalone_local_interface }} - NeutronBridgeMappings: datacenter:br-ctlplane - NeutronPhysicalBridge: br-ctlplane - StandaloneEnableRoutedNetworks: false - StandaloneHomeDir: {{ ansible_env.HOME }} - InterfaceLocalMtu: {{ standalone_local_mtu }} - NovaComputeLibvirtType: {{ standalone_virt_type }} - dest: "{{ ansible_env.HOME }}/parameters.yaml" - mode: '0644' - - - name: Generate ContainerImagePrepare - include_role: - name: tripleo_container_image_prepare_default - vars: - tripleo_container_image_prepare_default_output_env_file: "{{ ansible_env.HOME }}/container-image-prepare.yaml" - - - name: Run standalone deployment - include_role: - name: tripleo_deploy - vars: - tripleo_deploy_debug: "{{ standalone_debug }}" - tripleo_deploy_templates: /usr/share/openstack-tripleo-heat-templates - tripleo_deploy_local_ip: "{{ standalone_ip }}/{{ standalone_cidr }}" - tripleo_deploy_roles_file: /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml - tripleo_deploy_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml - - "{{ ansible_env.HOME }}/container-image-prepare.yaml" - - "{{ ansible_env.HOME }}/parameters.yaml" - tripleo_deploy_output_dir: "{{ ansible_env.HOME }}" diff --git a/playbooks/undercloud.yml b/playbooks/undercloud.yml deleted file mode 100644 index ea778aa..0000000 --- a/playbooks/undercloud.yml +++ /dev/null @@ -1,104 +0,0 @@ ---- -############################################################################### -# Undercloud installation playbook -# -# Description: -# This is a basic playbook to install a simple undercloud on an already -# provisioned system. -# -############################################################################### -- hosts: undercloud - collections: - - tripleo.operator - vars: - install_debug: true - undercloud_hostname: 'undercloud.localdomain' - undercloud_local_mtu: 1400 - undercloud_local_interface: eth1 - undercloud_enable_selinux: false - - tasks: - - name: Set hostname - hostname: - name: "{{ undercloud_hostname }}" - become: true - - - name: Configure tripleo repositories - include_role: - name: tripleo_repos - when: - - ansible_facts.distribution == 'CentOS' - - - name: Ensure system is up to date - yum: - name: '*' - state: latest # noqa 403 - register: packages_updated - become: true - - - name: Reboot if necessary - reboot: - become: true - when: packages_updated is changed - - - name: Install tripleoclient - block: - - name: install python2 tripleoclient - yum: - name: python-tripleoclient - state: installed - become: true - when: ansible_facts.distribution_major_version|int <= 7 - - - name: install python3 tripleoclient - package: - name: python3-tripleoclient - state: present - become: true - when: ansible_facts.distribution_major_version|int >= 8 - - - name: Copy sample undercloud.conf - copy: - src: /usr/share/python-tripleoclient/undercloud.conf.sample - dest: "{{ ansible_env.HOME }}/undercloud.conf" - remote_src: true - mode: '0644' - - - name: Configure undercloud.conf - ini_file: - path: "{{ ansible_env.HOME }}/undercloud.conf" - section: "{{ item.section }}" - option: "{{ item.option }}" - value: "{{ item.value }}" - mode: '0644' - loop: - - {'section': 'DEFAULT', 'option': 'undercloud_debug', 'value': "{{ install_debug }}"} - - {'section': 'DEFAULT', 'option': 'local_mtu', 'value': "{{ undercloud_local_mtu }}"} - - {'section': 'DEFAULT', 'option': 'local_interface', 'value': "{{ undercloud_local_interface }}"} - - {'section': 'DEFAULT', 'option': 'undercloud_enable_selinux', 'value': "{{ undercloud_enable_selinux }}"} - - {'section': 'ctlplane-subnet', 'option': 'masquerade', 'value': 'true'} - - # Example configuration copy/modification with config_template module - # (https://opendev.org/openstack/ansible-config_template) - # - # - name: Configure undercloud.conf - # config_template: - # src: /usr/share/python-tripleoclient/undercloud.conf.sample - # dest: "{{ ansible_env.HOME }}/undercloud.conf" - # remote_src: true - # render_template: false - # config_type: ini - # config_overrides: - # 'DEFAULT': - # undercloud_debug: "{{ install_debug }}" - # local_mtu: "{{ undercloud_local_mtu }}" - # local_interface: "{{ undercloud_local_interface }}" - # undercloud_enable_selinux: "{{ undercloud_enable_selinux }}" - # 'ctlplane-subnet': - # masquerade: true - - - name: Install undercloud - include_role: - name: tripleo_undercloud_install - vars: - tripleo_undercloud_install_debug: "{{ install_debug }}" diff --git a/plugins/README.md b/plugins/README.md deleted file mode 100644 index 0685726..0000000 --- a/plugins/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# Collections Plugins Directory - -This directory can be used to ship various plugins inside an Ansible collection. Each plugin is placed in a folder that -is named after the type of plugin it is in. It can also include the `module_utils` and `modules` directory that -would contain module utils and modules respectively. - -Here is an example directory of the majority of plugins currently supported by Ansible: - -``` -└── plugins - ├── action - ├── become - ├── cache - ├── callback - ├── cliconf - ├── connection - ├── filter - ├── httpapi - ├── inventory - ├── lookup - ├── module_utils - ├── modules - ├── netconf - ├── shell - ├── strategy - ├── terminal - ├── test - └── vars -``` - -A full list of plugin types can be found at [Working With Plugins](https://docs.ansible.com/ansible/2.9/plugins/plugins.html). diff --git a/plugins/action/timestamp_file.py b/plugins/action/timestamp_file.py deleted file mode 100644 index 2808d1e..0000000 --- a/plugins/action/timestamp_file.py +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -__metaclass__ = type - -from ansible.errors import AnsibleActionFail -from ansible.errors import AnsibleActionSkip -from ansible.module_utils.parsing.convert_bool import boolean -from ansible.plugins.action import ActionBase -from datetime import datetime - -import yaml - -ANSIBLE_METADATA = { - 'metadata_version': '1.1', - 'status': ['preview'], - 'supported_by': 'community' -} - -DOCUMENTATION = """ -module: timestamp_file -author: - - "Alex Schultz (@mwhahaha)" -version_added: '2.9' -short_description: Take a copy of a file and append a timestamp -notes: [] -description: - - Take a copy of a file and append a timestamp -requirements: - - None -options: - path: - description: - - Path to file - type: str - remove: - description: - - Remove original file - default: False - type: bool - force: - description: - - Overwrite destination file if it exists - default: False - type: bool - date_format: - description: - - Timestamp format to use when appending to destination file - default: "%Y-%m-%d_%H:%M:%S" - type: str -""" -EXAMPLES = """ -- name: Snapshot a file - timestamp_file: - path: /tmp/file.log -- name: Snapshot a file and remove original - timestamp_file: - path: /tmp/file.log - remove: True -""" -RETURN = """ -dest: - description: Path to the new file - returned: if changed - type: str - sample: "/tmp/file.log.2017-07-27_16:39:00" -""" - - -class ActionModule(ActionBase): - - _VALID_ARGS = yaml.safe_load(DOCUMENTATION)['options'] - - def _get_args(self): - missing = [] - args = {} - - for option, vals in self._VALID_ARGS.items(): - if 'default' not in vals: - if self._task.args.get(option, None) is None: - missing.append(option) - continue - args[option] = self._task.args.get(option) - else: - args[option] = self._task.args.get(option, vals['default']) - - if missing: - raise AnsibleActionFail('Missing required parameters: {}'.format( - ', '.join(missing))) - return args - - def _get_date_string(self, date_format): - return datetime.now().strftime(date_format) - - def run(self, tmp=None, task_vars=None): - if task_vars is None: - task_vars = dict() - result = super(ActionModule, self).run(tmp, task_vars) - del tmp - # parse args - args = self._get_args() - - changed = False - src_path = args['path'] - - # check if source file exists - file_stat = self._execute_module( - module_name='stat', - module_args=dict(path=src_path), - task_vars=task_vars - ) - timestamp = self._get_date_string(args['date_format']) - dest_path = '.'.join([src_path, timestamp]) - if file_stat.get('stat', {}).get('exists', False) is False: - # file doesn't exist so we're done - raise AnsibleActionSkip("{} does not exist.".format(src_path)) - - # check if destination file exists - file_stat = self._execute_module( - module_name='stat', - module_args=dict(path=dest_path), - task_vars=task_vars - ) - if (not args['force'] - and file_stat.get('stat', {}).get('exists', False) is True): - raise AnsibleActionFail("Destination file {} exists. Use force " - "option to proceed.".format(dest_path)) - - # copy file out of the way - copy_result = self._execute_module( - module_name='copy', - module_args=dict(src=src_path, dest=dest_path, remote_src=True), - task_vars=task_vars - ) - if copy_result.get('failed', False): - return copy_result - changed = True - - if boolean(args.get('remove', False), strict=False): - # cleanup original file as requested - file_result = self._execute_module( - module_name='file', - module_args=dict(path=src_path, state='absent'), - task_vars=task_vars - ) - if file_result.get('failed', False): - return file_result - - result['dest'] = copy_result['dest'] - result['changed'] = changed - return result diff --git a/plugins/filter/shell_args.py b/plugins/filter/shell_args.py deleted file mode 100644 index 7e357ac..0000000 --- a/plugins/filter/shell_args.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env python -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -try: # py3 - from shlex import quote -except ImportError: # py2 - from pipes import quote - - -class FilterModule(object): - def filters(self): - return { - 'shell_arg_list': self.shell_arg_list - } - - def _add_to_list(self, list_item, arg, parameter): - val = quote(arg) - if parameter: - list_item.append("{} {}".format(parameter, val)) - else: - list_item.append(val) - - def shell_arg_list(self, arg, parameter=None): - # Nothing was passed into this, just return an empty string - if not arg: - return '' - if not isinstance(arg, (list, tuple)): - arg = [arg] - return_value = [] - for a in arg: - if isinstance(a, str) and a.strip(): - self._add_to_list(return_value, a, parameter) - elif isinstance(a, (list, tuple)): - # Deal with nested list items. - for item in a: - if item.strip(): - self._add_to_list(return_value, item, parameter) - return ' '.join(return_value) diff --git a/plugins/modules/tripleo_shell_script.py b/plugins/modules/tripleo_shell_script.py deleted file mode 100644 index 2532a14..0000000 --- a/plugins/modules/tripleo_shell_script.py +++ /dev/null @@ -1,144 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -__metaclass__ = type - -from ansible.module_utils.basic import AnsibleModule - -import os -import yaml - -try: # py3 - from shlex import quote -except ImportError: # py2 - from pipes import quote - -ANSIBLE_METADATA = { - 'metadata_version': '1.1', - 'status': ['preview'], - 'supported_by': 'community' -} - -DOCUMENTATION = """ ---- -module: tripleo_shell_script -author: - - Alex Schultz -version_added: '2.8' -short_description: Writes out a shell script with environment vars and command -notes: [] -description: - - This module will write out a bash script from a shell environment dict - and a commandline string. -options: - dest: - description: - - Destination file path for the output shell script. - required: True - type: str - shell_command: - description: - - Shell command that will be run - required: True - type: str - shell_environment: - description: - - Environment dictionary for the shell execution. - default: {} - required: False - type: dict -""" - -EXAMPLES = """ -- name: Undercloud install - tripleo_shell_script: - dest: /home/stack/undercloud_install.sh - shell_command: "/usr/bin/openstack undercloud install" - shell_environment: {} -- name: Image upload - tripleo_shell_script: - dest: /home/stack/overcloud_image_upload.sh - shell_command: "/usr/bin/openstack overcloud image upload" - shell_environment: - OS_CLOUD: undercloud -""" - -RETURN = """ -""" - -_SHELL_HEADER = """#!/bin/bash -# This file is managed by ansible -set -xeo pipefail - -""" - - -class TripleoShellScript(object): - """Notes about this module. - - This module will write out a bash script from the provided parameters. - """ - - def __init__(self, module, results): - - self.module = module - self.results = results - - # parse args - args = self.module.params - - # Set parameters - dest = args['dest'] - shell_command = args['shell_command'] - shell_environment = args.get('shell_environment', {}) - - if os.path.exists(dest): - self.module.debug('File exists, truncating %s' % dest) - - try: - with open(dest, 'w') as fh: - fh.write(_SHELL_HEADER) - for k, v in shell_environment.items(): - if v: - val = quote(str(v)) - fh.write("export %(key)s=%(val)s\n" % {'key': k, - 'val': val}) - fh.write(shell_command) - fh.write("\n") - os.chmod(dest, 0o755) - self.results['changed'] = True - except Exception as e: - self.results['failed'] = True - self.results['error'] = str(e) - self.results['msg'] = ("Unable to output shell script %s: %s" % ( - dest, e)) - - self.module.exit_json(**self.results) - - -def main(): - module = AnsibleModule( - argument_spec=yaml.safe_load(DOCUMENTATION)['options'], - supports_check_mode=False - ) - results = dict( - changed=False - ) - TripleoShellScript(module, results) - - -if __name__ == '__main__': - main() diff --git a/releasenotes/source/_static/.placeholder b/releasenotes/source/_static/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py deleted file mode 100644 index 02513de..0000000 --- a/releasenotes/source/conf.py +++ /dev/null @@ -1,270 +0,0 @@ -# -*- coding: utf-8 -*- -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -#sys.path.insert(0, os.path.abspath('.')) - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -#needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = [ - 'openstackdocstheme', - 'reno.sphinxext', -] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix of source filenames. -source_suffix = '.rst' - -# The encoding of source files. -#source_encoding = 'utf-8-sig' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = u'tripleo-operator-ansible Release Notes' -copyright = u'2020, TripleO Developers' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '' -# The short X.Y version. -version = '' - -# The full version, including alpha/beta/rc tags. - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -#language = None - -# There are two options for replacing |today|: either, you set today to some -# non-false value, then it is used: -#today = '' -# Else, today_fmt is used as the format for a strftime call. -#today_fmt = '%B %d, %Y' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns = [] - -# The reST default role (used for this markup: `text`) to use for all -# documents. -#default_role = None - -# If true, '()' will be appended to :func: etc. cross-reference text. -#add_function_parentheses = True - -# If true, the current module name will be prepended to all description -# unit titles (such as .. function::). -#add_module_names = True - -# If true, sectionauthor and moduleauthor directives will be shown in the -# output. They are ignored by default. -#show_authors = False - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'native' - -# A list of ignored prefixes for module index sorting. -#modindex_common_prefix = [] - -# If true, keep warnings as "system message" paragraphs in the built documents. -#keep_warnings = False - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -html_theme = 'openstackdocs' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -#html_theme_options = {} - -# Add any paths that contain custom themes here, relative to this directory. -#html_theme_path = [] - -# The name for this set of Sphinx documents. If None, it defaults to -# " v documentation". -#html_title = None - -# A shorter title for the navigation bar. Default is the same as html_title. -#html_short_title = None - -# The name of an image file (relative to this directory) to place at the top -# of the sidebar. -#html_logo = None - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -#html_favicon = None - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] - -# Add any extra paths that contain custom files (such as robots.txt or -# .htaccess) here, relative to this directory. These files are copied -# directly to the root of the documentation. -#html_extra_path = [] - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -#html_last_updated_fmt = '%b %d, %Y' - -# If true, SmartyPants will be used to convert quotes and dashes to -# typographically correct entities. -#html_use_smartypants = True - -# Custom sidebar templates, maps document names to template names. -#html_sidebars = {} - -# Additional templates that should be rendered to pages, maps page names to -# template names. -#html_additional_pages = {} - -# If false, no module index is generated. -#html_domain_indices = True - -# If false, no index is generated. -#html_use_index = True - -# If true, the index is split into individual pages for each letter. -#html_split_index = False - -# If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True - -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. -#html_show_sphinx = True - -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. -#html_show_copyright = True - -# If true, an OpenSearch description file will be output, and all pages will -# contain a tag referring to it. The value of this option must be the -# base URL from which the finished HTML is served. -#html_use_opensearch = '' - -# This is the file name suffix for HTML files (e.g. ".xhtml"). -#html_file_suffix = None - -# Output file base name for HTML help builder. -htmlhelp_basename = 'tripleo-operator-ansibleReleaseNotesdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { -# The paper size ('letterpaper' or 'a4paper'). -#'papersize': 'letterpaper', - -# The font size ('10pt', '11pt' or '12pt'). -#'pointsize': '10pt', - -# Additional stuff for the LaTeX preamble. -#'preamble': '', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - ('index', 'tripleo-operator-ansibleReleaseNotes.tex', u'tripleo-operator-ansible Release Notes Documentation', - u'2020, TripleO Developers', 'manual'), -] - -# The name of an image file (relative to this directory) to place at the top of -# the title page. -#latex_logo = None - -# For "manual" documents, if this is true, then toplevel headings are parts, -# not chapters. -#latex_use_parts = False - -# If true, show page references after internal links. -#latex_show_pagerefs = False - -# If true, show URL addresses after external links. -#latex_show_urls = False - -# Documents to append as an appendix to all manuals. -#latex_appendices = [] - -# If false, no module index is generated. -#latex_domain_indices = True - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - ('index', 'tripleo-operator-ansiblereleasenotes', u'tripleo-operator-ansible Release Notes Documentation', - [u'2020, TripleO Developers'], 1) -] - -# If true, show URL addresses after external links. -#man_show_urls = False - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - ('index', 'tripleo-operator-ansibleReleaseNotes', u'tripleo-operator-ansible Release Notes Documentation', - u'2020, TripleO Developers', 'tripleo-operator-ansibleReleaseNotes', 'One line description of project.', - 'Miscellaneous'), -] - -# Documents to append as an appendix to all manuals. -#texinfo_appendices = [] - -# If false, no module index is generated. -#texinfo_domain_indices = True - -# How to display URL addresses: 'footnote', 'no', or 'inline'. -#texinfo_show_urls = 'footnote' - -# If true, do not generate a @detailmenu in the "Top" node's menu. -#texinfo_no_detailmenu = False - -# -- Options for Internationalization output ------------------------------ -locale_dirs = ['locale/'] - -# openstackdocstheme options -openstackdocs_repo_name = 'openstack/tripleo-operator-ansible' -openstackdocs_auto_name = False -openstackdocs_bug_project = 'tripleo' -openstackdocs_bug_tag = 'documentation' diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst deleted file mode 100644 index 8c6e18d..0000000 --- a/releasenotes/source/index.rst +++ /dev/null @@ -1,18 +0,0 @@ -================================================== -Welcome to tripleo-operator-ansible Release Notes! -================================================== - -Contents -======== - -.. toctree:: - :maxdepth: 2 - - unreleased - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`search` diff --git a/releasenotes/source/unreleased.rst b/releasenotes/source/unreleased.rst deleted file mode 100644 index 99cbac5..0000000 --- a/releasenotes/source/unreleased.rst +++ /dev/null @@ -1,5 +0,0 @@ -============================ -Current Series Release Notes -============================ - - .. release-notes:: diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e69de29..0000000 diff --git a/roles/.gitkeep b/roles/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/roles/README.md b/roles/README.md deleted file mode 100644 index 55137d3..0000000 --- a/roles/README.md +++ /dev/null @@ -1,94 +0,0 @@ -tripleo-operator-ansible roles -============================== - -These roles wrap tripleo cli functions for use in automation. - -Requirements ------------- - -None. - -Global Variables ----------------- - -Accross the roles, there are a few variables that can be defined and would be -consumed by default. - -* `tripleo_os_cloud`: (String) OS_CLOUD name to use when a command requires authentication. By default this will be used to populate any role specific os_cloud variable that may be defined. If this is defined, it will take precedence over `tripleo_rc_file`. -* `tripleo_rc_file`: (String) File path on the remote system that contains the authentication environment variables that will be used to perform actions that require authentication. - -Dependencies ------------- - -None. - -Example Playbooks ------------------ - -Example undercloud installation - -```yaml ---- -- hosts: undercloud - gather_facts: true - collections: - - tripleo.operator - tasks: - - name: Create dummy interface - command: ip link add prov type dummy - become: true - when: not 'prov' in ansible_facts.interfaces - - - name: Set hostname - hostname: - name: 'undercloud.localdomain' - become: true - - - name: Configure tripleo repositories - import_role: - name: tripleo_repos - - - name: Install python2 tripleoclient - package: - name: python2-tripleoclient - state: present - become: true - when: ansible_distribution_major_version|int <= 7 - - - name: Install python3 tripleoclient - package: - name: python3-tripleoclient - state: present - become: true - when: ansible_distribution_major_version|int >= 8 - - # This uses https://opendev.org/openstack/ansible-config_template - - name: Generate undercloud.conf - become: True - config_template: - src: /usr/share/python-tripleoclient/undercloud.conf.sample - dest: "{{ ansible_env.HOME }}/undercloud.conf" - remote_src: true - render_template: false - config_overrides: - 'DEFAULT': - undercloud_debug: true - enable_telemetry: false - local_mtu: 1400 - local_interface: prov - undercloud_enable_selinux: false - 'ctlplane-subnet': - masquerade: true - config_type: ini - - - name: Install undercloud - import_role: - name: tripleo_undercloud_install - vars: - tripleo_undercloud_install_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/test_molecule_prep/README.md b/roles/test_molecule_prep/README.md deleted file mode 100644 index f7288aa..0000000 --- a/roles/test_molecule_prep/README.md +++ /dev/null @@ -1,44 +0,0 @@ -test_molecule_prep -================== - -A role to do collection install for molecule testing. The role assumes it's being -run from a molecule path. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `test_module_prep_collections_build_root`: (String) Path a directory to output the collection build to. Default: "{{ ansible_env.HOME }}/collection-buildroot" -* `test_module_prep_execution_root`: (String) Path to the directory where the build action should run in. Default: '../../../..' - -Output Variables ----------------- - -None. - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example install execution playbook - -```yaml -- hosts: localhost - tasks: - - name: Do molecule prep actions - import_role: - name: test_molecule_prep -``` - -License -------- - -Apache-2.0 diff --git a/roles/test_molecule_prep/defaults/main.yml b/roles/test_molecule_prep/defaults/main.yml deleted file mode 100644 index 2e2b4ce..0000000 --- a/roles/test_molecule_prep/defaults/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -# defaults file for test_molecule_prep -test_molecule_prep_collections_build_root: "{{ ansible_env.HOME }}/collection-buildroot" -test_molecule_prep_execution_root: "../../../.." diff --git a/roles/test_molecule_prep/meta/main.yml b/roles/test_molecule_prep/meta/main.yml deleted file mode 100644 index d0fd1a9..0000000 --- a/roles/test_molecule_prep/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: test_molecule_prep - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- test_molecule_prep - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/test_molecule_prep/molecule/default/converge.yml b/roles/test_molecule_prep/molecule/default/converge.yml deleted file mode 100644 index a0fced9..0000000 --- a/roles/test_molecule_prep/molecule/default/converge.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: Converge - hosts: all - tasks: - - - name: Test known collection filter - set_fact: - test_var: "{{ 'test' | tripleo.operator.shell_arg_list(parameter='--test') }}" - - - name: Assert value - assert: - that: - - test_var == "--test test" diff --git a/roles/test_molecule_prep/molecule/default/molecule.yml b/roles/test_molecule_prep/molecule/default/molecule.yml deleted file mode 100644 index 355af3d..0000000 --- a/roles/test_molecule_prep/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - syntax - - prepare - - converge - - verify diff --git a/roles/test_molecule_prep/molecule/default/prepare.yml b/roles/test_molecule_prep/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/test_molecule_prep/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/test_molecule_prep/tasks/main.yml b/roles/test_molecule_prep/tasks/main.yml deleted file mode 100644 index f243a40..0000000 --- a/roles/test_molecule_prep/tasks/main.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Build collection - shell: >- - pwd && ansible-galaxy collection build --force --output-path {{ test_molecule_prep_collections_build_root }} - args: - chdir: "{{ test_molecule_prep_execution_root }}" - changed_when: true - -- name: Install collection - shell: >- - ansible-galaxy collection install --force {{ test_molecule_prep_collections_build_root }}/tripleo-operator* - changed_when: true diff --git a/roles/test_molecule_prep/tests/inventory b/roles/test_molecule_prep/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/test_molecule_prep/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/test_molecule_prep/tests/test.yml b/roles/test_molecule_prep/tests/test.yml deleted file mode 100644 index 9c75cf5..0000000 --- a/roles/test_molecule_prep/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - test_molecule_prep diff --git a/roles/tripleo_ceph_deploy/README.md b/roles/tripleo_ceph_deploy/README.md deleted file mode 100644 index e4594b9..0000000 --- a/roles/tripleo_ceph_deploy/README.md +++ /dev/null @@ -1,92 +0,0 @@ -tripleo_ceph_deploy -===================== - -A role to deploy Ceph on overcloud nodes before deploying the overcloud. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_ceph_deploy_become`: (Boolean) Execute command with escalated privileges. Default: false -* `tripleo_ceph_deploy_cluster`: (String) Name of the Ceph cluster. If set to 'foo', then the files /etc/ceph//foo.conf and /etc/ceph//foo.client.admin.keyring will be created. Otherwise these files will use the name 'ceph'. Changing this means changing command line calls too, e.g. 'ceph health' will become 'ceph --cluster foo health' unless export CEPH_ARGS='--cluster foo' is used. If unset `openenstack overcloud ceph deploy` will default this value to 'ceph'. -* `tripleo_ceph_deploy_crush_hierarchy`: (String) Path to an existing crush hierarchy spec file. -* `tripleo_ceph_deploy_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_ceph_deploy_deployed_baremetal`: (String) Path to the environment file output from "openstack overcloud node provision". This argument may be excluded only if tripleo_ceph_deploy_standalone is True. -* `tripleo_ceph_deploy_spec`: (String) Path to an existing Ceph spec file. If not provided a spec will be generated automatically based on `tripleo_ceph_deploy_roles_file` and `tripleo_ceph_deploy_deployed_baremetal`. The `tripleo_ceph_deploy_deployed_baremetal` parameter is optional only if `tripleo_ceph_deploy_spec` is used. -* `tripleo_ceph_user_ssh_user`: (String) Name of the SSH user used by cephadm. Warning: if this option is used, it must be used consistently for every 'openstack overcloud ceph' call. Defaults to 'ceph-admin'. (default=Env: CEPHADM_SSH_USER) -* `tripleo_ceph_deploy_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_ceph_deploy_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_ceph_deploy_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_ceph_deploy_mon_ip`: (String) IP address of the first Ceph monitor. If not set, an IP from the Ceph public_network of a server with the mon label from the Ceph spec is used. IP must already be active on server. Only supported if tripleo_ceph_deploy_standalone is True. -* `tripleo_ceph_deploy_osd_spec`: (String) Path to an existing OSD spec file. When the Ceph spec file is generated its OSD spec defaults to {data_devices: {all: true}} for all service_type osd. Use this parameter to override the data_devices value inside the Ceph spec file. -* `tripleo_ceph_deploy_overwrite`: (Boolean) Flag to skip yes/no prompts about overwriting the deployed_ceph.yaml from a previous run. Default: false -* `tripleo_ceph_deploy_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_ceph_deploy_roles_file`: (String) Path to an alternative roles_data.yaml. Used to decide which node gets which Ceph mon, mgr, or osd service based on the node's role and `tripleo_ceph_deploy_deployed_baremetal`. -* `tripleo_ceph_deploy_stack`: Name or ID of heat stack. Used to find the working directory. If unset `openenstack overcloud ceph deploy` will default this value to 'overcloud'. -* `tripleo_ceph_deploy_standalone`: (Boolean) Use single host Ansible inventory. Used only for development or testing environments. Used for single server development or testing environments. Default: false -* `tripleo_ceph_deploy_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_ceph_deploy_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_ceph_deploy_timeout_arg` value. Default: 5700 -* `tripleo_ceph_deploy_working_dir`: (String) The working directory for the deployment where all input, output, and generated files will be stored. Defaults to "$HOME/overcloud-deploy/" -* `tripleo_ceph_deploy_output:`: (String) The path to the output environment file describing the Ceph deployment to pass to the overcloud deployment. -* `tripleo_ceph_deploy_skip_user_create`: (Boolean) Do not create the cephadm SSH user. This user is necessary to deploy but may be created in a separate step via 'openstack overcloud ceph user enable'. Default: false -* `tripleo_ceph_deploy_skip_hosts_config`: (Boolean) Do not update /etc/hosts on deployed servers. By default this is configured so overcloud nodes can reach each other and the undercloud by name. Default: false -* `tripleo_ceph_deploy_skip_container_registry_config`: (Boolean) Do not update /etc/containers/registries.conf on deployed servers. By default this is configured so overcloud nodes can pull containers from the undercloud registry. Default: false -* `tripleo_ceph_deploy_network_data`: (String) Path to an alternative network_data.yaml. Used to define Ceph public_network and cluster_network. This file is searched for networks with name_lower values of storage and storage_mgmt. If none found, then search repeats but with service_net_map_replace in place of name_lower. Use `tripleo_ceph_deploy_public_network_name` or `tripleo_ceph_deploy_cluster_network_name` options to override name of the searched for network from storage or storage_mgmt to a customized name. If network_data has no storage networks, both default to ctlplane. If found network has >1 subnet, they are all combined (for routed traffic). If a network has ipv6 true, then the ipv6_subnet is retrieved instead of the ip_subnet, and the Ceph global ms_bind_ipv4 is set false and the ms_bind_ipv6 is set true. Use `tripleo_ceph_deploy_config` to override these defaults if desired. -* `tripleo_ceph_deploy_public_network_name`: (String) Name of the network defined in `tripleo_ceph_deploy_network_data` which should be used for the Ceph public_network. If undefined the client defaults this value to 'storage'. -* `tripleo_ceph_deploy_cluster_network_name`: (String) Name of the network defined in `tripleo_ceph_deploy_network_data` which should be used for the Ceph cluster_network. If undefined the client defaults this value to 'storage_mgmt'. -* `tripleo_ceph_deploy_config`: (String) Path to an existing ceph.conf with settings to be assimilated by the new cluster via 'cephadm bootstrap --config' -* `tripleo_ceph_deploy_cephadm_extra_args`: (String) String of extra parameters to pass cephadm. E.g. if this parameter is set to '--log-to-file --skip-prepare-host', then cephadm boostrap will use those options. Warning: requires `tripleo_ceph_deploy_force` to be true as not all possible options ensure a functional deployment. -* `tripleo_ceph_deploy_force`: (Boolean) Run command regardless of consequences. Default: false -* `tripleo_ceph_deploy_ceph_vip`: (String) Path to an existing Ceph services/network mapping file. -* `tripleo_ceph_deploy_daemons`: (String) Path to an existing Ceph daemon options definition. -* `tripleo_ceph_deploy_single_host_defaults`: (Boolean) Adjust configuration defaults to suit a single-host Ceph cluster. Default: false -* `tripleo_ceph_deploy_container_image_prepare`: (String) Path to an alternative container_image_prepare_defaults.yaml. Used to control which Ceph container is pulled by cephadm via the ceph_namespace, ceph_image, and ceph_tag variables in addition to registry authentication via ContainerImageRegistryCredentials. -* `tripleo_ceph_deploy_container_cephadm_default`: (Boolean) Use the default continer defined in cephadm instead of container_image_prepare_defaults.yaml. If this is used, 'cephadm bootstrap' is not passed the --image parameter. Default: false -* `tripleo_ceph_deploy_container_namespace`: (String) Override the namespace value set via `tripleo_ceph_deploy_continer_image_prepare`. E.g. quay.io/ceph. -* `tripleo_ceph_deploy_container_image`: (String) Override the image value set via `tripleo_ceph_deploy_continer_image_prepare`. E.g. ceph. -* `tripleo_ceph_deploy_container_tag`: (String) Override the tag value set via `tripleo_ceph_deploy_continer_image_prepare`. E.g. latest. -* `tripleo_ceph_deploy_container_registry_url`: (String) Override the registry URL value set via `tripleo_ceph_deploy_continer_image_prepare`. -* `tripleo_ceph_deploy_container_registry_username`: (String) Override the registry username value set via `tripleo_ceph_deploy_continer_image_prepare`. -* `tripleo_ceph_deploy_container_registry_password`: (String) Override the registry password value set via `tripleo_ceph_deploy_continer_image_prepare`. - - -Output Variables ----------------- - -* `tripleo_ceph_deploy_output`: (String) The command standard output. -* `tripleo_ceph_deploy_result`: (String) Ansible shell execution results - - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example ceph spec playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Deploy Ceph using 'openstack overcloud node provision' output - include_role: - name: tripleo_ceph_deploy - vars: - tripleo_ceph_deploy_debug: True - tripleo_ceph_deploy_generate_scripts: True - tripleo_ceph_deploy_overwrite: True - tripleo_ceph_deploy_stack: overcloud - tripleo_ceph_deploy_roles_file: /home/stack/custom_roles.yaml - tripleo_ceph_deploy_deployed_baremetal: /home/stack/overcloud-baremetal-deployed.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_ceph_deploy/defaults/main.yml b/roles/tripleo_ceph_deploy/defaults/main.yml deleted file mode 100644 index 9da7197..0000000 --- a/roles/tripleo_ceph_deploy/defaults/main.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -openstack_bin: openstack -tripleo_ceph_deploy_become: false -tripleo_ceph_deploy_cluster: -tripleo_ceph_deploy_crush_hierarchy: -tripleo_ceph_deploy_debug: false -tripleo_ceph_deploy_deployed_baremetal: -tripleo_ceph_deploy_spec: -tripleo_ceph_deploy_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_ceph_deploy_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_ceph_deploy_mon_ip: -tripleo_ceph_deploy_osd_spec: -tripleo_ceph_deploy_overwrite: false -tripleo_ceph_deploy_poll: 10 -tripleo_ceph_deploy_roles_file: -tripleo_ceph_user_ssh_user: ceph-admin -tripleo_ceph_deploy_stack: -tripleo_ceph_deploy_standalone: false -tripleo_ceph_deploy_timeout: 5700 -tripleo_ceph_deploy_timeout_arg: 90 -tripleo_ceph_deploy_working_dir: -tripleo_ceph_deploy_output: -tripleo_ceph_deploy_skip_user_create: false -tripleo_ceph_deploy_skip_hosts_config: false -tripleo_ceph_deploy_skip_container_registry_config: false -tripleo_ceph_deploy_skip_ntp: false -tripleo_ceph_deploy_network_data: -tripleo_ceph_deploy_public_network_name: -tripleo_ceph_deploy_cluster_network_name: -tripleo_ceph_deploy_config: -tripleo_ceph_deploy_cephadm_extra_args: -tripleo_ceph_deploy_force: false -tripleo_ceph_deploy_ceph_vip: -tripleo_ceph_deploy_daemons: -tripleo_ceph_deploy_single_host_defaults: false -tripleo_ceph_deploy_ntp_server: -tripleo_ceph_deploy_ntp_heat_env_file: -tripleo_ceph_deploy_with_ntp: false -tripleo_ceph_deploy_container_cephadm_default: false -tripleo_ceph_deploy_container_image_prepare: -tripleo_ceph_deploy_container_namespace: -tripleo_ceph_deploy_container_image: -tripleo_ceph_deploy_container_tag: -tripleo_ceph_deploy_container_registry_url: -tripleo_ceph_deploy_container_registry_username: -tripleo_ceph_deploy_container_registry_password: diff --git a/roles/tripleo_ceph_deploy/meta/main.yml b/roles/tripleo_ceph_deploy/meta/main.yml deleted file mode 100644 index 79f85b7..0000000 --- a/roles/tripleo_ceph_deploy/meta/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -# Copyright 2022 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_ceph_deploy - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_ceph_deploy - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - 9 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_ceph_deploy/molecule/default/converge.yml b/roles/tripleo_ceph_deploy/molecule/default/converge.yml deleted file mode 100644 index da5c217..0000000 --- a/roles/tripleo_ceph_deploy/molecule/default/converge.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_ceph_deploy_run_debug: true - tasks: - - - name: Call tripleo_ceph_deploy role for standlone - include_role: - name: "tripleo_ceph_deploy" - vars: - tripleo_ceph_deploy_standalone: true - tripleo_ceph_deploy_mon_ip: 192.168.122.42 - tripleo_ceph_deploy_spec: /home/zuul/ceph_spec.yaml - tripleo_ceph_deploy_stack: standalone - tripleo_ceph_deploy_output: /home/zuul/deployed_ceph.yaml - - - name: Show result tripleo_ceph_deploy_result - debug: - msg: "{{ tripleo_ceph_deploy_result }}" - - - name: Assert tripleo_ceph_deploy command for standalone - assert: - that: - - tripleo_ceph_deploy_result.stdout == - "overcloud ceph deploy --output /home/zuul/deployed_ceph.yaml --standalone --mon-ip 192.168.122.42 --ceph-spec /home/zuul/ceph_spec.yaml --stack standalone --cephadm-ssh-user ceph-admin" diff --git a/roles/tripleo_ceph_deploy/molecule/default/molecule.yml b/roles/tripleo_ceph_deploy/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_ceph_deploy/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_ceph_deploy/molecule/default/prepare.yml b/roles/tripleo_ceph_deploy/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_ceph_deploy/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_ceph_deploy/tasks/main.yml b/roles/tripleo_ceph_deploy/tasks/main.yml deleted file mode 100644 index 125c41b..0000000 --- a/roles/tripleo_ceph_deploy/tasks/main.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -- name: Setup ceph deploy facts - set_fact: - _deploy_cmd: >- - {{ openstack_bin }} overcloud ceph deploy - {{ tripleo_ceph_deploy_deployed_baremetal }} - {{ tripleo_ceph_deploy_output | ternary('--output $DEPLOYED_CEPH', '') }} - {{ tripleo_ceph_deploy_overwrite | ternary('--yes', '') }} - {{ tripleo_ceph_deploy_standalone | ternary('--standalone', '') }} - {{ tripleo_ceph_deploy_mon_ip | ternary('--mon-ip $CEPH_MON_IP', '') }} - {{ tripleo_ceph_deploy_cluster | ternary('--cluster $CLUSTER', '') }} - {{ tripleo_ceph_deploy_spec | ternary('--ceph-spec $CEPH_SPEC', '') }} - {{ tripleo_ceph_deploy_stack | ternary('--stack $DEPLOY_STACK', '') }} - {{ tripleo_ceph_deploy_working_dir | ternary('--working-dir $DEPLOY_WORKING_DIR', '') }} - {{ tripleo_ceph_deploy_roles_file | ternary('--roles $DEPLOY_ROLES_FILE', '') }} - {{ tripleo_ceph_deploy_osd_spec | ternary('--osd-spec $CEPH_OSD_SPEC', '') }} - {{ tripleo_ceph_deploy_crush_hierarchy | ternary('--crush-hierarchy $CEPH_CRUSH_HIERARCHY', '') }} - {{ tripleo_ceph_user_ssh_user | ternary('--cephadm-ssh-user $CEPHADM_SSH_USER', '') }} - {{ tripleo_ceph_deploy_skip_user_create | ternary('--skip-user-create', '') }} - {{ tripleo_ceph_deploy_skip_hosts_config | ternary('--skip-hosts-config', '') }} - {{ tripleo_ceph_deploy_skip_ntp | ternary('--skip-ntp', '') }} - {{ tripleo_ceph_deploy_skip_container_registry_config | ternary('--skip-container-registry-config', '') }} - {{ tripleo_ceph_deploy_force | ternary('--force', '') }} - {{ tripleo_ceph_deploy_single_host_defaults | ternary('--single-host-defaults', '') }} - {% if tripleo_ceph_deploy_with_ntp %} - {{ tripleo_ceph_deploy_ntp_server | ternary('--ntp-server $CEPH_NTP_SERVER', '') }} - {{ tripleo_ceph_deploy_ntp_heat_env_file | ternary('--ntp-heat-env-file $CEPH_NTP_HEAT_ENV_FILE', '') }} - {% endif %} - {{ tripleo_ceph_deploy_network_data | ternary('--network-data $NETWORK_DATA', '') }} - {{ tripleo_ceph_deploy_public_network_name | ternary('--public-network-name $PUBLIC_NETWORK_NAME', '') }} - {{ tripleo_ceph_deploy_cluster_network_name | ternary('--cluster-network-name $CLUSTER_NETWORK_NAME', '') }} - {{ tripleo_ceph_deploy_config | ternary('--config $CONFIG', '') }} - {{ tripleo_ceph_deploy_cephadm_extra_args | ternary('--cephadm-extra-args "$CEPHADM_EXTRA_ARGS"', '') }} - {{ tripleo_ceph_deploy_ceph_vip | ternary('--ceph-vip $CEPH_VIP', '') }} - {{ tripleo_ceph_deploy_daemons | ternary('--daemons $DAEMONS', '') }} - {{ tripleo_ceph_deploy_container_cephadm_default | ternary('--cephadm-default-container', '') }} - {{ tripleo_ceph_deploy_container_image_prepare | ternary('--container-image-prepare $CONTAINER_IMAGE_PREPARE', '') }} - {{ tripleo_ceph_deploy_container_namespace | ternary('--container-namespace $CONTAINER_NAMESPACE', '') }} - {{ tripleo_ceph_deploy_container_image | ternary('--container-image $CONTAINER_IMAGE', '') }} - {{ tripleo_ceph_deploy_container_tag | ternary('--container-tag $CONTAINER_TAG', '') }} - {{ tripleo_ceph_deploy_container_registry_url | ternary('--registry-url $REGISTRY_URL', '') }} - {{ tripleo_ceph_deploy_container_registry_username | ternary('--registry-username $REGISTRY_USERNAME', '') }} - {{ tripleo_ceph_deploy_container_registry_password | ternary('--registry-password $REGISTRY_PASSWORD', '') }} - _deploy_env: - DEPLOYED_CEPH: "{{ tripleo_ceph_deploy_output }}" - DEPLOY_STACK: "{{ tripleo_ceph_deploy_stack }}" - DEPLOY_WORKING_DIR: "{{ tripleo_ceph_deploy_working_dir }}" - DEPLOY_ROLES_FILE: "{{ tripleo_ceph_deploy_roles_file }}" - CEPH_SPEC: "{{ tripleo_ceph_deploy_spec }}" - CEPH_MON_IP: "{{ tripleo_ceph_deploy_mon_ip }}" - CLUSTER: "{{ tripleo_ceph_deploy_cluster }}" - CEPH_OSD_SPEC: "{{ tripleo_ceph_deploy_osd_spec }}" - CEPH_NTP_SERVER: "{{ tripleo_ceph_deploy_ntp_server }}" - CEPH_NTP_HEAT_ENV_FILE: "{{ tripleo_ceph_deploy_ntp_heat_env_file }}" - CEPH_CRUSH_HIERARCHY: "{{ tripleo_ceph_deploy_crush_hierarchy }}" - CEPHADM_SSH_USER: "{{ tripleo_ceph_user_ssh_user }}" - NETWORK_DATA: "{{ tripleo_ceph_deploy_network_data }}" - PUBLIC_NETWORK_NAME: "{{ tripleo_ceph_deploy_public_network_name }}" - CLUSTER_NETWORK_NAME: "{{ tripleo_ceph_deploy_cluster_network_name }}" - CONFIG: "{{ tripleo_ceph_deploy_config }}" - CEPHADM_EXTRA_ARGS: "{{ tripleo_ceph_deploy_cephadm_extra_args }}" - CEPH_VIP: "{{ tripleo_ceph_deploy_ceph_vip }}" - DAEMONS: "{{ tripleo_ceph_deploy_daemons }}" - CONTAINER_IMAGE_PREPARE: "{{ tripleo_ceph_deploy_container_image_prepare }}" - CONTAINER_NAMESPACE: "{{ tripleo_ceph_deploy_container_namespace }}" - CONTAINER_IMAGE: "{{ tripleo_ceph_deploy_container_image }}" - CONTAINER_TAG: "{{ tripleo_ceph_deploy_container_tag }}" - REGISTRY_URL: "{{ tripleo_ceph_deploy_container_registry_url }}" - REGISTRY_USERNAME: "{{ tripleo_ceph_deploy_container_registry_username }}" - REGISTRY_PASSWORD: "{{ tripleo_ceph_deploy_container_registry_password }}" - -- name: Show debug information - when: - tripleo_ceph_deploy_debug|bool - block: - - name: Show openstack overcloud ceph deploy command - debug: - var: _deploy_cmd - - - name: Show the openstack overcloud ceph deploy environment - debug: - var: _deploy_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ ansible_env.HOME }}/openstack_overcloud_ceph_deploy.sh" - shell_command: "{{ _deploy_cmd }}" - shell_environment: "{{ _deploy_env }}" - when: tripleo_ceph_deploy_generate_scripts|bool - -- name: Run Ceph Deploy - shell: "{{ _deploy_cmd }}" # noqa 305 - environment: "{{ _deploy_env }}" - args: - executable: /bin/bash - chdir: "{{ ansible_env.HOME }}" - become: "{{ tripleo_ceph_deploy_become }}" - register: tripleo_ceph_deploy_result - async: "{{ tripleo_ceph_deploy_timeout }}" - poll: "{{ tripleo_ceph_deploy_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_ceph_deploy_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_ceph_deploy_result.stdout is defined - set_fact: - tripleo_ceph_deploy_output: "{{ tripleo_ceph_deploy_result.stdout }}" diff --git a/roles/tripleo_ceph_spec/README.md b/roles/tripleo_ceph_spec/README.md deleted file mode 100644 index 33e6df6..0000000 --- a/roles/tripleo_ceph_spec/README.md +++ /dev/null @@ -1,79 +0,0 @@ -tripleo_ceph_spec -===================== - -A role to generate Ceph spec files. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_ceph_spec_become`: (Boolean) Execute command with escalated privileges. Default: false -* `tripleo_ceph_spec_crush_hierarchy`: (String) Path to an existing crush hierarchy spec file. -* `tripleo_ceph_spec_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_ceph_spec_deployed_baremetal`: (String) Path to the environment file output from "openstack overcloud node provision". This argument may be excluded only if tripleo_ceph_spec_standalone is True. -* `tripleo_ceph_spec_file`: "{{ ansible_env.HOME }}/ceph_spec.yaml" -* `tripleo_ceph_spec_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_ceph_spec_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_ceph_spec_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_ceph_spec_mon_ip`: (String) IP address of the first Ceph monitor. Only supported if tripleo_ceph_spec_standalone is True. -* `tripleo_ceph_spec_osd_spec`: (String) Path to an existing OSD spec file. When the Ceph spec file is generated its OSD spec defaults to {data_devices: {all: true}} for all service_type osd. Use this parameter to override the data_devices value inside the Ceph spec file. -* `tripleo_ceph_spec_overwrite`: (Boolean) Flag to skip yes/no prompts about overwriting the tripleo_ceph_spec_file from a previous run. Default: false -* `tripleo_ceph_spec_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_ceph_spec_roles_file`: (String) Path to an alternative roles_data.yaml. Used to decide which node gets which Ceph mon, mgr, or osd service based on the node's role tripleo_ceph_spec_deployed_baremetal. -* `tripleo_ceph_spec_stack`: Name or ID of heat stack. Used to find the working directory. -* `tripleo_ceph_spec_standalone`: (Boolean) Create a spec file for a standalone deployment. Used for single server development or testing environments. -* `tripleo_ceph_spec_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_ceph_spec_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_ceph_spec_timeout_arg` value. Default: 5700 -* `tripleo_ceph_spec_working_dir`: (String) The working directory for the deployment where all input, output, and generated files will be stored. Defaults to "$HOME/overcloud-deploy/" - - -Output Variables ----------------- - -* `tripleo_ceph_spec_output`: (String) The command standard output. -* `tripleo_ceph_spec_result`: Ansible shell execution results - - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example ceph spec playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Create Ceph Spec for Standalone - include_role: - name: tripleo_ceph_spec - vars: - tripleo_ceph_spec_standalone: True - tripleo_ceph_spec_mon_ip: 192.168.122.42 - tripleo_ceph_spec_file: /home/stack/ceph_spec.yaml - tripleo_ceph_spec_overwrite: True - - - name: Create Ceph Spec from 'openstack overcloud node provision' output - include_role: - name: tripleo_ceph_spec - vars: - tripleo_ceph_spec_debug: True - tripleo_ceph_spec_generate_scripts: True - tripleo_ceph_spec_overwrite: True - tripleo_ceph_spec_stack: overcloud - tripleo_ceph_spec_roles_file: /home/stack/custom_roles.yaml - tripleo_ceph_spec_file: /home/stack/ceph_spec.yaml - tripleo_ceph_spec_deployed_baremetal: /home/stack/overcloud-baremetal-deployed.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_ceph_spec/defaults/main.yml b/roles/tripleo_ceph_spec/defaults/main.yml deleted file mode 100644 index 4537356..0000000 --- a/roles/tripleo_ceph_spec/defaults/main.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -openstack_bin: openstack -tripleo_ceph_spec_become: false -tripleo_ceph_spec_crush_hierarchy: -tripleo_ceph_spec_debug: false -tripleo_ceph_spec_deployed_baremetal: -tripleo_ceph_spec_file: "{{ ansible_env.HOME }}/ceph_spec.yaml" -tripleo_ceph_spec_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_ceph_spec_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_ceph_spec_mon_ip: -tripleo_ceph_spec_osd_spec: -tripleo_ceph_spec_overwrite: false -tripleo_ceph_spec_poll: 10 -tripleo_ceph_spec_roles_file: -tripleo_ceph_spec_stack: -tripleo_ceph_spec_standalone: false -tripleo_ceph_spec_timeout: 5700 -tripleo_ceph_spec_timeout_arg: 90 -tripleo_ceph_spec_working_dir: diff --git a/roles/tripleo_ceph_spec/meta/main.yml b/roles/tripleo_ceph_spec/meta/main.yml deleted file mode 100644 index 7fc1f42..0000000 --- a/roles/tripleo_ceph_spec/meta/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -# Copyright 2022 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_ceph_spec - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_ceph_spec - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - 9 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_ceph_spec/molecule/default/converge.yml b/roles/tripleo_ceph_spec/molecule/default/converge.yml deleted file mode 100644 index db06ffd..0000000 --- a/roles/tripleo_ceph_spec/molecule/default/converge.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_ceph_spec_run_debug: true - tasks: - - - name: Call tripleo_ceph_spec role for standlone - include_role: - name: "tripleo_ceph_spec" - vars: - tripleo_ceph_spec_standalone: true - tripleo_ceph_spec_mon_ip: 192.168.122.42 - tripleo_ceph_spec_file: /home/zuul/ceph_spec.yaml - - - name: Show result tripleo_ceph_spec_result - debug: - msg: "{{ tripleo_ceph_spec_result }}" - - - name: Assert tripleo_ceph_spec command for standalone - assert: - that: - - tripleo_ceph_spec_result.stdout == - "overcloud ceph spec --standalone --mon-ip 192.168.122.42 --output /home/zuul/ceph_spec.yaml" diff --git a/roles/tripleo_ceph_spec/molecule/default/molecule.yml b/roles/tripleo_ceph_spec/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_ceph_spec/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_ceph_spec/molecule/default/prepare.yml b/roles/tripleo_ceph_spec/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_ceph_spec/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_ceph_spec/tasks/main.yml b/roles/tripleo_ceph_spec/tasks/main.yml deleted file mode 100644 index 3ffb781..0000000 --- a/roles/tripleo_ceph_spec/tasks/main.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -- name: Setup ceph spec facts - set_fact: - _deploy_cmd: >- - {{ openstack_bin }} overcloud ceph spec - {{ tripleo_ceph_spec_deployed_baremetal }} - {{ tripleo_ceph_spec_standalone | ternary('--standalone', '') }} - {{ tripleo_ceph_spec_mon_ip | ternary('--mon-ip $CEPH_MON_IP', '') }} - {{ tripleo_ceph_spec_overwrite | ternary('--yes', '') }} - {{ tripleo_ceph_spec_file | ternary('--output $CEPH_SPEC', '') }} - {{ tripleo_ceph_spec_stack | ternary('--stack $DEPLOY_STACK', '') }} - {{ tripleo_ceph_spec_working_dir | ternary('--working-dir $DEPLOY_WORKING_DIR', '') }} - {{ tripleo_ceph_spec_roles_file | ternary('--roles $DEPLOY_ROLES_FILE', '') }} - {{ tripleo_ceph_spec_osd_spec | ternary('--osd-spec $CEPH_OSD_SPEC', '') }} - {{ tripleo_ceph_spec_crush_hierarchy | ternary('--crush-hierarchy $CEPH_CRUSH_HIERARCHY', '') }} - _deploy_env: - DEPLOY_STACK: "{{ tripleo_ceph_spec_stack }}" - DEPLOY_WORKING_DIR: "{{ tripleo_ceph_spec_working_dir }}" - DEPLOY_ROLES_FILE: "{{ tripleo_ceph_spec_roles_file }}" - CEPH_SPEC: "{{ tripleo_ceph_spec_file }}" - CEPH_MON_IP: "{{ tripleo_ceph_spec_mon_ip }}" - CEPH_OSD_SPEC: "{{ tripleo_ceph_spec_osd_spec }}" - CEPH_CRUSH_HIERARCHY: "{{ tripleo_ceph_spec_crush_hierarchy }}" - -- name: Show debug information - when: - tripleo_ceph_spec_debug|bool - block: - - name: Show openstack overcloud ceph spec command - debug: - var: _deploy_cmd - - - name: Show the openstack overcloud ceph spec environment - debug: - var: _deploy_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ ansible_env.HOME }}/openstack_overcloud_ceph_spec.sh" - shell_command: "{{ _deploy_cmd }}" - shell_environment: "{{ _deploy_env }}" - when: tripleo_ceph_spec_generate_scripts|bool - -- name: Generate Ceph Spec - shell: "{{ _deploy_cmd }}" # noqa 305 - environment: "{{ _deploy_env }}" - args: - executable: /bin/bash - chdir: "{{ ansible_env.HOME }}" - become: "{{ tripleo_ceph_spec_become }}" - register: tripleo_ceph_spec_result - async: "{{ tripleo_ceph_spec_timeout }}" - poll: "{{ tripleo_ceph_spec_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_ceph_spec_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_ceph_spec_result.stdout is defined - set_fact: - tripleo_ceph_spec_output: "{{ tripleo_ceph_spec_result.stdout }}" diff --git a/roles/tripleo_ceph_user/README.md b/roles/tripleo_ceph_user/README.md deleted file mode 100644 index 3adc22b..0000000 --- a/roles/tripleo_ceph_user/README.md +++ /dev/null @@ -1,101 +0,0 @@ -tripleo_ceph_user -================= - -A role to enable or disable a ceph-admin SSH user used by cephadm on overcloud nodes. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_ceph_user_enable`: (Boolean) Enable user and distribute SSH key pairs when true. If `tripleo_ceph_user_enable` is false and a valid FSID is passed with `tripleo_ceph_user_fsid`, then the ceph-admin user is disabled (by removing their SSH keys) and cephadm is disabled. If `tripleo_ceph_user_enable` is true and a valid FSID is passed with `tripleo_ceph_user_fsid` and the user has been disabled, cephadm will be re-enabled for the Ceph cluster idenified by the FSID. Default: true -* `tripleo_ceph_user_fsid`: (String) The FSID of the Ceph cluster to be disabled or re-enabled. If the user disable option has been used (when `tripleo_ceph_user_enable` is false), the FSID may be passed with `tripleo_ceph_user_enable` set to true so that cephadm will be re-enabled for the Ceph cluster idenified by the FSID. -* `tripleo_ceph_user_become`: (Boolean) Execute command with escalated privileges. Default: false -* `tripleo_ceph_user_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_ceph_user_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_ceph_user_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_ceph_user_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_ceph_user_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_ceph_user_spec`: (String) Path to an existing Ceph spec file which describes the Ceph cluster where the cephadm SSH user will be created (if necessary) and have their public and private keys installed. Spec file is necessary to determine which nodes to modify and if a public or private key is required. Defaults to "{{ ansible_env.HOME }}/ceph_spec.yaml". -* `tripleo_ceph_user_ssh_user`: (String) Name of the SSH user used by cephadm. Warning: if this option is used, it must be used consistently for every 'openstack overcloud ceph' call. Defaults to 'ceph-admin'. (default=Env: CEPHADM_SSH_USER) -* `tripleo_ceph_user_stack`: Name or ID of heat stack. Used to find the working directory. -* `tripleo_ceph_user_standalone:`: (Boolean) Use single host Ansible inventory. Used only for development or testing environments. Default: false -* `tripleo_ceph_user_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_ceph_user_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_ceph_user_timeout_arg` value. Default: 5700 -* `tripleo_ceph_user_working_dir`: (String) The working directory for the deployment where all input, output, and generated files will be stored. Defaults to "$HOME/overcloud-deploy/" - - -Output Variables ----------------- - -* `tripleo_ceph_user_output`: (String) The command standard output. -* `tripleo_ceph_user_result`: Ansible shell execution results - - -Dependencies ------------- - -None. - -Example Playbooks ------------------ - -Create the ceph-admin user on based on a Ceph Spec in a standalone -deployment. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Create ceph-admin SSH user - include_role: - name: tripleo_ceph_user - vars: - tripleo_ceph_user_spec: /home/stack/ceph_spec.yaml - standalone: true - stack: standalone -``` - -On an overcloud with a running Ceph cluster with a known FSID, disable -the ceph-admin user by removing their public and private keys and -disable cephadm. The spec file is necessary to determine which nodes -to modify. WARNING: Ceph cluster administration or modification will -no longer function though Ceph can still read/write its data. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Disable ceph-admin SSH user and disable cephadm - include_role: - name: tripleo_ceph_user - vars: - tripleo_ceph_user_enable: false - fsid: dbd6d8c5-e8b4-4dba-b789-0945ab353c76 - tripleo_ceph_user_spec: /home/stack/ceph_spec.yaml - stack: overcloud -``` - -Run cephadm commands which should re-enable cephadm for a Ceph -cluster with a known FSID. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Re-enable ceph-admin SSH user and and cephadm - include_role: - name: tripleo_ceph_user - vars: - tripleo_ceph_user_enable: true - fsid: dbd6d8c5-e8b4-4dba-b789-0945ab353c76 - tripleo_ceph_user_spec: /home/stack/ceph_spec.yaml - stack: overcloud -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_ceph_user/defaults/main.yml b/roles/tripleo_ceph_user/defaults/main.yml deleted file mode 100644 index 3de9a17..0000000 --- a/roles/tripleo_ceph_user/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -openstack_bin: openstack -tripleo_ceph_user_become: false -tripleo_ceph_user_debug: false -tripleo_ceph_user_enable: true -tripleo_ceph_user_fsid: -tripleo_ceph_user_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_ceph_user_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_ceph_user_poll: 10 -tripleo_ceph_user_spec: "{{ ansible_env.HOME }}/ceph_spec.yaml" -tripleo_ceph_user_ssh_user: ceph-admin -tripleo_ceph_user_stack: -tripleo_ceph_user_standalone: false -tripleo_ceph_user_timeout: 5700 -tripleo_ceph_user_timeout_arg: 90 -tripleo_ceph_user_working_dir: diff --git a/roles/tripleo_ceph_user/meta/main.yml b/roles/tripleo_ceph_user/meta/main.yml deleted file mode 100644 index 2d93aaa..0000000 --- a/roles/tripleo_ceph_user/meta/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -# Copyright 2022 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_ceph_user - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_ceph_user - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - 9 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_ceph_user/molecule/default/converge.yml b/roles/tripleo_ceph_user/molecule/default/converge.yml deleted file mode 100644 index 03b6afe..0000000 --- a/roles/tripleo_ceph_user/molecule/default/converge.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_ceph_user_run_debug: true - tasks: - - name: Enable ceph-admin user with tripleo_ceph_user role - include_role: - name: "tripleo_ceph_user" - vars: - tripleo_ceph_user_spec: /home/zuul/ceph_spec.yaml - - - name: Show result tripleo_ceph_user_result - debug: - msg: "{{ tripleo_ceph_user_result }}" - - - name: Assert tripleo_ceph_user command - assert: - that: - - tripleo_ceph_user_result.stdout == - "overcloud ceph user enable /home/zuul/ceph_spec.yaml --cephadm-ssh-user ceph-admin" diff --git a/roles/tripleo_ceph_user/molecule/default/molecule.yml b/roles/tripleo_ceph_user/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_ceph_user/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_ceph_user/molecule/default/prepare.yml b/roles/tripleo_ceph_user/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_ceph_user/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_ceph_user/tasks/main.yml b/roles/tripleo_ceph_user/tasks/main.yml deleted file mode 100644 index cfd2023..0000000 --- a/roles/tripleo_ceph_user/tasks/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -- name: Setup ceph user enable facts - set_fact: - _deploy_cmd: >- - {{ openstack_bin }} overcloud ceph user - {{ tripleo_ceph_user_enable | ternary('enable', 'disable --yes') }} - {{ tripleo_ceph_user_spec }} - {{ tripleo_ceph_user_fsid | ternary('--fsid $FSID', '') }} - {{ tripleo_ceph_user_standalone | ternary('--standalone', '') }} - {{ tripleo_ceph_user_ssh_user | ternary('--cephadm-ssh-user $CEPHADM_SSH_USER', '') }} - {{ tripleo_ceph_user_stack | ternary('--stack $DEPLOY_STACK', '') }} - {{ tripleo_ceph_user_working_dir | ternary('--working-dir $DEPLOY_WORKING_DIR', '') }} - _deploy_env: - FSID: "{{ tripleo_ceph_user_fsid }}" - CEPHADM_SSH_USER: "{{ tripleo_ceph_user_ssh_user }}" - DEPLOY_STACK: "{{ tripleo_ceph_user_stack }}" - DEPLOY_WORKING_DIR: "{{ tripleo_ceph_user_working_dir }}" - -- name: Show debug information - when: - tripleo_ceph_user_debug|bool - block: - - name: Show openstack overcloud ceph user enable command - debug: - var: _deploy_cmd - - - name: Show the openstack overcloud ceph user enable environment - debug: - var: _deploy_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ ansible_env.HOME }}/openstack_overcloud_ceph_user.sh" - shell_command: "{{ _deploy_cmd }}" - shell_environment: "{{ _deploy_env }}" - when: tripleo_ceph_user_generate_scripts|bool - -- name: Enable Ceph User - shell: "{{ _deploy_cmd }}" # noqa 305 - environment: "{{ _deploy_env }}" - args: - executable: /bin/bash - chdir: "{{ ansible_env.HOME }}" - become: "{{ tripleo_ceph_user_become }}" - register: tripleo_ceph_user_result - async: "{{ tripleo_ceph_user_timeout }}" - poll: "{{ tripleo_ceph_user_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_ceph_user_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_ceph_user_result.stdout is defined - set_fact: - tripleo_ceph_user_output: "{{ tripleo_ceph_user_result.stdout }}" diff --git a/roles/tripleo_config_generate_ansible/README.md b/roles/tripleo_config_generate_ansible/README.md deleted file mode 100644 index ae4091e..0000000 --- a/roles/tripleo_config_generate_ansible/README.md +++ /dev/null @@ -1,50 +0,0 @@ -tripleo_config_generate_ansible -=============================== - -A role to generate the default ansible.cfg for a deployment. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_config_generate_ansible_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_config_generate_ansible_deployment_user`: (String) Deployment user to use. Default: "{{ ansible_user }}" -* `tripleo_config_generate_ansible_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_config_generate_ansible_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_config_generate_ansible_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_config_generate_ansible_home_dir`: (String) Directory to run the command in. This is the default location for the output if `tripleo_config_generate_ansible_output_dir` is not specified.. Default: "{{ ansible_env.HOME }}" -* `tripleo_config_generate_ansible_os_cloud`: (String) OS_CLOUD value to use when running the command. If tripleo_os_cloud is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_config_generate_ansible_rc_file`. -* `tripleo_config_generate_ansible_output_dir`: (String) Directory to output ansible.cfg and ansible.log files. -* `tripleo_config_generate_ansible_rc_file`: (String) Path to the credential file to use. If tripleo_rc_file is defined, it will be the default. Default: "{{ ansible_env.HOME }}/overcloudrc" - -Output Variables ----------------- - -* `tripleo_config_generate_ansible_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example install execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Generate default ansible config - import_role: - name: tripleo_config_generate_ansible -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_config_generate_ansible/defaults/main.yml b/roles/tripleo_config_generate_ansible/defaults/main.yml deleted file mode 100644 index 49055b6..0000000 --- a/roles/tripleo_config_generate_ansible/defaults/main.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# defaults file for tripleo_config_generate_ansible -openstack_bin: openstack -tripleo_config_generate_ansible_debug: false -tripleo_config_generate_ansible_deployment_user: "{{ ansible_user }}" -tripleo_config_generate_ansible_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_config_generate_ansible_output_dir: -tripleo_config_generate_ansible_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/overcloudrc') }}" -tripleo_config_generate_ansible_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_config_generate_ansible_generate_scripts_only: "{{ tripleo_scripts_only | default(False) }}" -tripleo_config_generate_ansible_home_dir: "{{ ansible_env.HOME }}" diff --git a/roles/tripleo_config_generate_ansible/meta/main.yml b/roles/tripleo_config_generate_ansible/meta/main.yml deleted file mode 100644 index 598e54f..0000000 --- a/roles/tripleo_config_generate_ansible/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_config_generate_ansible - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_config_generate_ansible - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_config_generate_ansible/molecule/default/converge.yml b/roles/tripleo_config_generate_ansible/molecule/default/converge.yml deleted file mode 100644 index 32890aa..0000000 --- a/roles/tripleo_config_generate_ansible/molecule/default/converge.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_config_generate_ansible_debug: true - tripleo_config_generate_ansible_deployment_user: - tripleo_config_generate_ansible_output_dir: - tasks: - - - name: "Include tripleo_config_generate_ansible" - include_role: - name: "tripleo_config_generate_ansible" - - - name: Check role - assert: - that: - - tripleo_config_generate_ansible_result.stdout == "tripleo config generate ansible" - - - name: Check parameter "tripleo_config_generate_ansible_deployment_user" - include_role: - name: "tripleo_config_generate_ansible" - vars: - tripleo_config_generate_ansible_deployment_user: foo - - - name: Assert "tripleo_config_generate_ansible_deployment_user" - assert: - that: - - tripleo_config_generate_ansible_result.stdout == - "tripleo config generate ansible --deployment-user foo" - - - name: Check parameter "tripleo_config_generate_ansible_output_dir" - include_role: - name: "tripleo_config_generate_ansible" - vars: - tripleo_config_generate_ansible_output_dir: /foo - - - name: Assert "tripleo_config_generate_ansible_output_dir" - assert: - that: - - tripleo_config_generate_ansible_result.stdout == - "tripleo config generate ansible --output-dir /foo" diff --git a/roles/tripleo_config_generate_ansible/molecule/default/molecule.yml b/roles/tripleo_config_generate_ansible/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_config_generate_ansible/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_config_generate_ansible/molecule/default/prepare.yml b/roles/tripleo_config_generate_ansible/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_config_generate_ansible/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_config_generate_ansible/tasks/main.yml b/roles/tripleo_config_generate_ansible/tasks/main.yml deleted file mode 100644 index 70ff3c2..0000000 --- a/roles/tripleo_config_generate_ansible/tasks/main.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Setup config generate ansible facts - set_fact: - _generate_cmd: >- - {{ tripleo_config_generate_ansible_os_cloud | ternary('', "source " ~ tripleo_config_generate_ansible_rc_file ~ "; ") }} - {{ openstack_bin }} tripleo config generate ansible - {{ tripleo_config_generate_ansible_deployment_user | ternary("--deployment-user $GENERATE_DEPLOYMENT_USER", '') }} - {{ tripleo_config_generate_ansible_output_dir | ternary("--output-dir $GENERATE_OUTPUT_DIR", '') }} - _generate_env: - GENERATE_DEPLOYMENT_USER: "{{ tripleo_config_generate_ansible_deployment_user }}" - GENERATE_OUTPUT_DIR: "{{ tripleo_config_generate_ansible_output_dir }}" - OS_CLOUD: "{{ tripleo_config_generate_ansible_os_cloud }}" - -- name: Show debug information - when: tripleo_config_generate_ansible_debug|bool - block: - - name: Show the config generate ansible command - debug: - var: _generate_cmd - - name: Show the config generate ansible environment - debug: - var: _generate_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_config_generate_home_dir }}/tripleo_config_generate_ansible.sh" - shell_command: "{{ _generate_cmd }}" - shell_environment: "{{ _generate_env }}" - when: tripleo_config_generate_ansible_generate_scripts|bool - -- name: tripleo config generate ansible - shell: "{{ _generate_cmd }}" # noqa 305 - args: - chdir: "{{ tripleo_config_generate_ansible_home_dir }}" - environment: "{{ _generate_env }}" - register: tripleo_config_generate_ansible_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_config_generate_ansible_generate_scripts_only|bool diff --git a/roles/tripleo_config_generate_ansible/tests/inventory b/roles/tripleo_config_generate_ansible/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_config_generate_ansible/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_config_generate_ansible/tests/test.yml b/roles/tripleo_config_generate_ansible/tests/test.yml deleted file mode 100644 index a629c70..0000000 --- a/roles/tripleo_config_generate_ansible/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_config_generate_ansible diff --git a/roles/tripleo_container_image_build/README.md b/roles/tripleo_container_image_build/README.md deleted file mode 100644 index d8fcf2f..0000000 --- a/roles/tripleo_container_image_build/README.md +++ /dev/null @@ -1,70 +0,0 @@ -tripleo_container_image_build -============================= - -A role to perform the container image build process. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_build_authfile`: (String) Path of the authentication file. Default: '' -* `tripleo_container_image_build_base`: (String) Name of the base image. Can also specify a tag , e.g. ubi8:latest. Default: '' -* `tripleo_container_image_build_config_file`: (String) YAML Config file specifying the images to build. Default: '' -* `tripleo_container_image_build_config_path`: (String) YAML Config path where image configs are stored. Default: '' -* `tripleo_container_image_build_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_container_image_build_distro`: (String) Ability to override the distro name; e.g. rhel. Default: '' -* `tripleo_container_image_build_excludes`: (List) Name of containers to exclude from the build. Default: [] -* `tripleo_container_image_build_extra_config`: (String) YAML Config file specifying the extra metadata to override; e.g. labels. Default: '' -* `tripleo_container_image_build_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_container_image_build_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_container_image_build_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_container_image_build_home_dir` (String): Path to the home directory. Default: {{ ansible_env.HOME }} -* `tripleo_container_image_build_log` (String): Path to the log file. Default to {{ tripleo_container_image_build_home_dir }}/container_image_build.log -* `tripleo_container_image_build_log_combine`: (Boolean) Whether or not we combine the logs. Default: True -* `tripleo_container_image_build_log_output`: (Boolean) Whether or not we output the logs. Default: True -* `tripleo_container_image_build_namespace`: (String) Namespace for the container images. Default: '' -* `tripleo_container_image_build_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_container_image_build_prefix`: (String) Prefix for the container images names. Default: '' -* `tripleo_container_image_build_push`: (Boolean) Whether or not we push the container images to the registry. Default: False -* `tripleo_container_image_build_registry`: (String) URL of the container image registry. Default: '' -* `tripleo_container_image_build_skip_build`: (Boolean) Whether or not we skip the container image build and just generate configs. Default: False -* `tripleo_container_image_build_tag`: (String) Tag for the container images. Default: '' -* `tripleo_container_image_build_timeout`: (Integer) Number in seconds to wait for the ansible execution of the build command to finish. Default: 5700 -* `tripleo_container_image_build_volumes`: (List) Volume to bind mount during the container image builds. Default: [] -* `tripleo_container_image_build_work_dir`: (String) Tripleo container builds directory. -* `tripleo_container_image_build_tcib_extras`: (List) TCIB extra variables (Like tcib_release, tcib_python_version). Default: None - -Output Variables ----------------- - -* `tripleo_container_image_build_output`: (String) The command standard output. -* `tripleo_container_image_build_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container images build. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Build containers - import_role: - name: tripleo_container_image_build - var: - tripleo_container_image_build_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_build/defaults/main.yml b/roles/tripleo_container_image_build/defaults/main.yml deleted file mode 100644 index af2b431..0000000 --- a/roles/tripleo_container_image_build/defaults/main.yml +++ /dev/null @@ -1,30 +0,0 @@ -# defaults file for tripleo_container_image_build ---- -openstack_bin: openstack -tripleo_container_image_build_authfile: -tripleo_container_image_build_base: -tripleo_container_image_build_config_file: -tripleo_container_image_build_config_path: -tripleo_container_image_build_debug: false -tripleo_container_image_build_distro: -tripleo_container_image_build_excludes: [] -tripleo_container_image_build_extra_config: -tripleo_container_image_build_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_container_image_build_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_container_image_build_home_dir: "{{ ansible_env.HOME }}" -tripleo_container_image_build_log: "{{ tripleo_container_image_build_home_dir }}/container_image_build.log" -tripleo_container_image_build_log_combine: true -tripleo_container_image_build_log_output: true -tripleo_container_image_build_namespace: -tripleo_container_image_build_poll: 10 -tripleo_container_image_build_prefix: -tripleo_container_image_build_push: false -tripleo_container_image_build_registry: -tripleo_container_image_build_rhel_modules: '' -tripleo_container_image_build_skip_build: false -tripleo_container_image_build_tag: -tripleo_container_image_build_timeout: 5700 -tripleo_container_image_build_volumes: [] -tripleo_container_image_build_work_dir: -tripleo_container_image_build_retries: 0 -tripleo_container_image_build_tcib_extras: [] diff --git a/roles/tripleo_container_image_build/meta/main.yml b/roles/tripleo_container_image_build/meta/main.yml deleted file mode 100644 index 4cb4e46..0000000 --- a/roles/tripleo_container_image_build/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_build - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_build - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_build/molecule/default/converge.yml b/roles/tripleo_container_image_build/molecule/default/converge.yml deleted file mode 100644 index adbbe05..0000000 --- a/roles/tripleo_container_image_build/molecule/default/converge.yml +++ /dev/null @@ -1,242 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_container_image_build_poll: 1 - tripleo_container_image_build_log_output: false - tripleo_container_image_build_log_combine: false - tasks: - - - name: "Include tripleo_container_image_build" - include_role: - name: "tripleo_container_image_build" - - - name: Check role - assert: - that: - - tripleo_container_image_build_output == "tripleo container image build" - - - name: Check parameter "tripleo_container_image_build_authfile" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_authfile: /tmp/secure.json - - - name: Assert "tripleo_container_image_build_authfile" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --authfile /tmp/secure.json" - - - name: Check parameter "tripleo_container_image_build_base" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_base: ubi8:latest - - - name: Assert "tripleo_container_image_build_base" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --base ubi8:latest" - - - name: Check parameter "tripleo_container_image_build_config_file" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_config_file: /tmp/tripleo_containers.yaml - - - name: Assert "tripleo_container_image_build_config_file" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --config-file /tmp/tripleo_containers.yaml" - - - name: Check parameter "tripleo_container_image_build_config_path" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_config_path: /tmp/configs - - - name: Assert "tripleo_container_image_build_config_path" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --config-path /tmp/configs" - - - name: Check parameter "tripleo_container_image_build_debug" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_debug: true - - - name: Assert "tripleo_container_image_build_debug" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --debug" - - - name: Check parameter "tripleo_container_image_build_distro" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_distro: fedora - - - name: Assert "tripleo_container_image_build_distro" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --distro fedora" - - - name: Check parameter "tripleo_container_image_build_excludes" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_excludes: - - keystone - - nova_api - - - name: Assert "tripleo_container_image_build_excludes" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --exclude keystone --exclude nova_api" - - - name: Check parameter "tripleo_container_image_build_extra_config" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_extra_config: my_config.yaml - - - name: Assert "tripleo_container_image_build_extra_config" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --extra-config my_config.yaml" - - - name: Check parameter "tripleo_container_image_build_namespace" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_namespace: masterchef - - - name: Assert "tripleo_container_image_build_namespace" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --namespace masterchef" - - - name: Check parameter "tripleo_container_image_build_prefix" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_prefix: os - - - name: Assert "tripleo_container_image_build_prefix" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --prefix os" - - - name: Check parameter "tripleo_container_image_build_push" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_push: true - - - name: Assert "tripleo_container_image_build_push" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --push" - - - name: Check parameter "tripleo_container_image_build_registry" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_registry: localhost:8787 - - - name: Assert "tripleo_container_image_build_registry" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --registry localhost:8787" - - - name: Check parameter "tripleo_container_image_build_rhel_modules" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_rhel_modules: container-tools:2.0 - - - name: Assert "tripleo_container_image_build_rhel_modules" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --rhel-modules container-tools:2.0" - - - name: Check parameter "tripleo_container_image_build_skip_build" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_skip_build: true - - - name: Assert "tripleo_container_image_build_skip_build" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --skip-build" - - - name: Check parameter "tripleo_container_image_build_tag" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_tag: current - - - name: Assert "tripleo_container_image_build_tag" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --tag current" - - - name: Check parameter "tripleo_container_image_build_volumes" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_volumes: - - '/etc:/etc' - - '/mydir:/mydir' - - - name: Assert "tripleo_container_image_build_volumes" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --volume /etc:/etc --volume /mydir:/mydir" - - - name: Check parameter "tripleo_container_image_build_work_dir" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_work_dir: /work - - - name: Assert "tripleo_container_image_build_work_dir" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --work-dir /work" - - - name: Check parameter "tripleo_container_image_build_tcib_extras" - include_role: - name: "tripleo_container_image_build" - vars: - tripleo_container_image_build_tcib_extras: - - tcib_release=8 - - tcib_python_version=3.9 - - - name: Assert "tripleo_container_image_build_tcib_extras" - assert: - that: - - tripleo_container_image_build_output == - "tripleo container image build --tcib-extras tcib_release=8 --tcib-extras tcib_python_version=3.9" diff --git a/roles/tripleo_container_image_build/molecule/default/molecule.yml b/roles/tripleo_container_image_build/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_build/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_build/molecule/default/prepare.yml b/roles/tripleo_container_image_build/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_build/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_build/tasks/main.yml b/roles/tripleo_container_image_build/tasks/main.yml deleted file mode 100644 index df5397d..0000000 --- a/roles/tripleo_container_image_build/tasks/main.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -# tasks file for tripleo_container_image_build -- name: Set facts for tripleo container image build - set_fact: - _build_cmd: >- - {{ openstack_bin }} tripleo container image build - {{ tripleo_container_image_build_authfile | ternary('--authfile ' ~ tripleo_container_image_build_authfile, '') }} - {{ tripleo_container_image_build_base | ternary('--base ' ~ tripleo_container_image_build_base, '') }} - {{ tripleo_container_image_build_config_file | ternary('--config-file ' ~ tripleo_container_image_build_config_file, '') }} - {{ tripleo_container_image_build_config_path | ternary('--config-path ' ~ tripleo_container_image_build_config_path, '') }} - {{ tripleo_container_image_build_debug | ternary('--debug', '') }} - {{ tripleo_container_image_build_distro | ternary('--distro ' ~ tripleo_container_image_build_distro, '') }} - {{ tripleo_container_image_build_excludes | tripleo.operator.shell_arg_list('--exclude') }} - {{ tripleo_container_image_build_extra_config | ternary('--extra-config ' ~ tripleo_container_image_build_extra_config, '') }} - {{ tripleo_container_image_build_namespace | ternary('--namespace ' ~ tripleo_container_image_build_namespace, '') }} - {{ tripleo_container_image_build_prefix | ternary('--prefix ' ~ tripleo_container_image_build_prefix, '') }} - {{ tripleo_container_image_build_push | ternary('--push', '') }} - {{ tripleo_container_image_build_registry | ternary('--registry ' ~ tripleo_container_image_build_registry, '') }} - {{ tripleo_container_image_build_rhel_modules | tripleo.operator.shell_arg_list('--rhel-modules') }} - {{ tripleo_container_image_build_skip_build | ternary('--skip-build', '') }} - {{ tripleo_container_image_build_tag | ternary('--tag ' ~ tripleo_container_image_build_tag, '') }} - {{ tripleo_container_image_build_volumes | tripleo.operator.shell_arg_list('--volume') }} - {{ tripleo_container_image_build_work_dir | ternary('--work-dir ' ~ tripleo_container_image_build_work_dir, '') }} - {{ tripleo_container_image_build_tcib_extras | tripleo.operator.shell_arg_list('--tcib-extras') }} - {{ tripleo_container_image_build_log_output | ternary((">" ~ tripleo_container_image_build_log), '') }} - {{ tripleo_container_image_build_log_combine | ternary("2>&1", '') }} - _build_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_container_image_build_log }}" - when: tripleo_container_image_build_log_output|bool - -- name: Show debug information - when: tripleo_container_image_build_debug|bool - block: - - name: Show the command - debug: - var: _build_cmd - - - name: Show the environment - debug: - var: _build_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_container_image_build_home_dir }}/tripleo_container_image_build.sh" - shell_command: "{{ _build_cmd }}" - shell_environment: "{{ _build_env }}" - when: tripleo_container_image_build_generate_scripts|bool - -- name: Run tripleo container image build - shell: "{{ _build_cmd }}" # noqa 305 - environment: "{{ _build_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_container_image_build_home_dir }}" - register: tripleo_container_image_build_result - async: "{{ tripleo_container_image_build_timeout }}" - poll: "{{ tripleo_container_image_build_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_container_image_build_generate_scripts_only|bool - until: tripleo_container_image_build_result is success - retries: "{{ tripleo_container_image_build_retries }}" - -- name: Set output fact - set_fact: - tripleo_container_image_build_output: "{{ tripleo_container_image_build_result.stdout }}" diff --git a/roles/tripleo_container_image_build/tests/inventory b/roles/tripleo_container_image_build/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_build/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_build/tests/test.yml b/roles/tripleo_container_image_build/tests/test.yml deleted file mode 100644 index bb457f7..0000000 --- a/roles/tripleo_container_image_build/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_build diff --git a/roles/tripleo_container_image_delete/README.md b/roles/tripleo_container_image_delete/README.md deleted file mode 100644 index 2899d92..0000000 --- a/roles/tripleo_container_image_delete/README.md +++ /dev/null @@ -1,51 +0,0 @@ -tripleo_container_image_delete -============================== - -A role to perform the container image delete against a registry. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_delete_become`: (Boolean) Run as root. This needs to be true if deleting from the local registry. Default: true -* `tripleo_container_image_delete_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_container_image_delete_image`: (String) REQUIRED. Full URL of image to be deleted in the form :/path/to/image. -* `tripleo_container_image_delete_password`: (String) Password for the registry -* `tripleo_container_image_delete_registry_url`: (String) Registry to run the delete against. Should be in the form :. -* `tripleo_container_image_delete_username`: (String) Username for the registry -* `tripleo_container_image_delete_yes`: (Boolean) Do not prompt for configuration. Default: true - -Output Variables ----------------- - -* `tripleo_container_image_delete_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container delete execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Delete containers - import_role: - name: tripleo_container_image_delete - var: - tripleo_container_image_delete_image: undercloud.ctlplane.localdomain:8787/library/centos:7 -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_delete/defaults/main.yml b/roles/tripleo_container_image_delete/defaults/main.yml deleted file mode 100644 index 864d5d7..0000000 --- a/roles/tripleo_container_image_delete/defaults/main.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# defaults file for tripleo_container_image_delete -openstack_bin: openstack -tripleo_container_image_delete_become: true -tripleo_container_image_delete_debug: false -tripleo_container_image_delete_password: -tripleo_container_image_delete_registry_url: -tripleo_container_image_delete_username: -tripleo_container_image_delete_yes: true diff --git a/roles/tripleo_container_image_delete/meta/main.yml b/roles/tripleo_container_image_delete/meta/main.yml deleted file mode 100644 index ad35e5b..0000000 --- a/roles/tripleo_container_image_delete/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_delete - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_delete - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_delete/molecule/default/converge.yml b/roles/tripleo_container_image_delete/molecule/default/converge.yml deleted file mode 100644 index 8079eff..0000000 --- a/roles/tripleo_container_image_delete/molecule/default/converge.yml +++ /dev/null @@ -1,89 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_container_image_delete" - include_role: - name: "tripleo_container_image_delete" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_delete_become: false - tripleo_container_image_delete_debug: true - tripleo_container_image_delete_image: containername - - - name: Check role - assert: - that: - - tripleo_container_image_delete_result.stdout == "tripleo container image delete --yes containername" - - - name: Check parameter "tripleo_container_image_delete_username" - include_role: - name: "tripleo_container_image_delete" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_delete_become: false - tripleo_container_image_delete_debug: true - tripleo_container_image_delete_username: test - tripleo_container_image_delete_image: containername - - - name: debug value - debug: - msg: "{{ tripleo_container_image_delete_result.stdout }}" - - - name: Assert "tripleo_container_image_delete_username" - assert: - that: - - tripleo_container_image_delete_result.stdout == "tripleo container image delete --username test --yes containername" - - - name: Check parameter "tripleo_container_image_delete_password" - include_role: - name: "tripleo_container_image_delete" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_delete_become: false - tripleo_container_image_delete_debug: true - tripleo_container_image_delete_password: test - tripleo_container_image_delete_image: containername - - - name: Assert "tripleo_container_image_delete_password" - assert: - that: - - tripleo_container_image_delete_result.stdout == "tripleo container image delete --password test --yes containername" - - - name: Check parameter "tripleo_container_image_delete_registry_url" - include_role: - name: "tripleo_container_image_delete" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_delete_become: false - tripleo_container_image_delete_debug: true - tripleo_container_image_delete_registry_url: 127.0.0.1:8787 - tripleo_container_image_delete_image: containername - - - name: Assert "tripleo_container_image_delete_registry_url" - assert: - that: - - tripleo_container_image_delete_result.stdout == "tripleo container image delete --registry-url 127.0.0.1:8787 --yes containername" - - - name: Check parameter "tripleo_container_image_delete_yes" - include_role: - name: "tripleo_container_image_delete" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_delete_become: false - tripleo_container_image_delete_debug: true - tripleo_container_image_delete_yes: false - tripleo_container_image_delete_image: containername - - - name: Assert "tripleo_container_image_delete_yes" - assert: - that: - - tripleo_container_image_delete_result.stdout == "tripleo container image delete containername" diff --git a/roles/tripleo_container_image_delete/molecule/default/molecule.yml b/roles/tripleo_container_image_delete/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_delete/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_delete/molecule/default/prepare.yml b/roles/tripleo_container_image_delete/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_delete/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_delete/tasks/main.yml b/roles/tripleo_container_image_delete/tasks/main.yml deleted file mode 100644 index 6c295af..0000000 --- a/roles/tripleo_container_image_delete/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -# tasks file for tripleo_container_image_delete -- name: Setup container image delete facts - set_fact: - _delete_cmd: >- - {{ openstack_bin }} tripleo container image delete - {{ tripleo_container_image_delete_username | ternary('--username "$TRIPLEO_IMAGE_DELETE_USERNAME"', '') }} - {{ tripleo_container_image_delete_password | ternary('--password "$TRIPLEO_IMAGE_DELETE_PASSWORD"', '') }} - {{ tripleo_container_image_delete_registry_url | ternary('--registry-url $TRIPLEO_IMAGE_DELETE_REGISTRY_URL', '') }} - {{ tripleo_container_image_delete_yes | ternary('--yes', '') }} - {{ tripleo_container_image_delete_image }} - _delete_env: - TRIPLEO_IMAGE_DELETE_USERNAME: "{{ tripleo_container_image_delete_username | default('') | quote }}" - TRIPLEO_IMAGE_DELETE_PASSWORD: "{{ tripleo_container_image_delete_password | default('') | quote }}" - TRIPLEO_IMAGE_DELETE_REGISTRY_URL: "{{ tripleo_container_image_delete_registry_url | default('') }}" - -- name: Show debug information - when: tripleo_container_image_delete_debug|bool - block: - - name: Show the container image delete command - debug: - var: _delete_cmd - - name: Show the container image delete environment - debug: - var: _delete_env - -- name: Container image delete - shell: "{{ _delete_cmd }}" # noqa 305 - environment: "{{ _delete_env }}" - become: "{{ tripleo_container_image_delete_become }}" - register: tripleo_container_image_delete_result - changed_when: true diff --git a/roles/tripleo_container_image_delete/tests/inventory b/roles/tripleo_container_image_delete/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_delete/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_delete/tests/test.yml b/roles/tripleo_container_image_delete/tests/test.yml deleted file mode 100644 index 2528e73..0000000 --- a/roles/tripleo_container_image_delete/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_delete diff --git a/roles/tripleo_container_image_list/README.md b/roles/tripleo_container_image_list/README.md deleted file mode 100644 index 7d155d1..0000000 --- a/roles/tripleo_container_image_list/README.md +++ /dev/null @@ -1,52 +0,0 @@ -tripleo_container_image_list -============================ - -A role to perform the container image list against a registry. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_list_debug`: (Boolean) Flag to print out the list command. Default: False -* `tripleo_container_image_list_format`: (String) The format that the output will be in. By default we specify 'json' so that the output will be parsed in ansible. Default: json -* `tripleo_container_image_list_password`: (String) Password for the registry -* `tripleo_container_image_list_registry`: (String) Registry to run the list against -* `tripleo_container_image_list_username`: (String) Username for the registry - -Output Variables ----------------- - -* `tripleo_container_image_list_output`: (List|String) If tripleo_container_image_list_format is JSON, the results will automatically be parsed and a list is returned. If another format is used then this will be the response in String format. -* `tripleo_container_image_list_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container list execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: List containers - import_role: - name: tripleo_container_image_list - - name: Print containers - debug: - msg: "{{ item['Image Name'] }}" - loop: "{{ tripleo_container_image_list_output }}" -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_list/defaults/main.yml b/roles/tripleo_container_image_list/defaults/main.yml deleted file mode 100644 index 7fa320a..0000000 --- a/roles/tripleo_container_image_list/defaults/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# defaults file for tripleo_container_image_list -openstack_bin: openstack -tripleo_container_image_list_debug: false -tripleo_container_image_list_format: json -tripleo_container_image_list_password: -tripleo_container_image_list_registry_url: -tripleo_container_image_list_username: diff --git a/roles/tripleo_container_image_list/meta/main.yml b/roles/tripleo_container_image_list/meta/main.yml deleted file mode 100644 index c0bf03c..0000000 --- a/roles/tripleo_container_image_list/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_list - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_list - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_list/molecule/default/converge.yml b/roles/tripleo_container_image_list/molecule/default/converge.yml deleted file mode 100644 index e17ed39..0000000 --- a/roles/tripleo_container_image_list/molecule/default/converge.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_container_image_list" - include_role: - name: "tripleo_container_image_list" - vars: - openstack_bin: echo - tripleo_container_image_list_debug: true - - - name: Check role - assert: - that: - - tripleo_container_image_list_result.stdout == "tripleo container image list -f json" - - - name: Check parameter "tripleo_container_image_list_username" - include_role: - name: "tripleo_container_image_list" - vars: - openstack_bin: echo - tripleo_container_image_list_debug: true - tripleo_container_image_list_username: test - - - name: Assert "tripleo_container_image_list_username" - assert: - that: - - tripleo_container_image_list_result.stdout == "tripleo container image list --username test -f json" - - - name: Check parameter "tripleo_container_image_list_password" - include_role: - name: "tripleo_container_image_list" - vars: - openstack_bin: echo - tripleo_container_image_list_debug: true - tripleo_container_image_list_password: test - - - name: Assert "tripleo_container_image_list_password" - assert: - that: - - tripleo_container_image_list_result.stdout == "tripleo container image list --password test -f json" - - - name: Check parameter "tripleo_container_image_list_registry_url" - include_role: - name: "tripleo_container_image_list" - vars: - openstack_bin: echo - tripleo_container_image_list_debug: true - tripleo_container_image_list_registry_url: 127.0.0.1:8787 - - - name: Assert "tripleo_container_image_list_registry_url" - assert: - that: - - tripleo_container_image_list_result.stdout == "tripleo container image list --registry-url 127.0.0.1:8787 -f json" - - - name: Check parameter "tripleo_container_image_list_format" - include_role: - name: "tripleo_container_image_list" - vars: - openstack_bin: echo - tripleo_container_image_list_debug: true - tripleo_container_image_list_format: values - - - name: Assert "tripleo_container_image_list_registry_url" - assert: - that: - - tripleo_container_image_list_result.stdout == "tripleo container image list -f values" diff --git a/roles/tripleo_container_image_list/molecule/default/molecule.yml b/roles/tripleo_container_image_list/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_list/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_list/molecule/default/prepare.yml b/roles/tripleo_container_image_list/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_list/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_list/tasks/main.yml b/roles/tripleo_container_image_list/tasks/main.yml deleted file mode 100644 index 23b26e5..0000000 --- a/roles/tripleo_container_image_list/tasks/main.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -# tasks file for tripleo_container_image_list -- name: Setup container image list facts - set_fact: - _list_cmd: >- - {{ openstack_bin }} tripleo container image list - {{ tripleo_container_image_list_username | ternary('--username "$TRIPLEO_IMAGE_LIST_USERNAME"', '') }} - {{ tripleo_container_image_list_password | ternary('--password "$TRIPLEO_IMAGE_LIST_PASSWORD"', '') }} - {{ tripleo_container_image_list_registry_url | ternary('--registry-url $TRIPLEO_IMAGE_LIST_REGISTRY_URL', '') }} - {{ tripleo_container_image_list_format | ternary('-f $TRIPLEO_IMAGE_LIST_FORMAT', '') }} - _list_env: - TRIPLEO_IMAGE_LIST_USERNAME: "{{ tripleo_container_image_list_username | default('') | quote }}" - TRIPLEO_IMAGE_LIST_PASSWORD: "{{ tripleo_container_image_list_password | default('') | quote }}" - TRIPLEO_IMAGE_LIST_REGISTRY_URL: "{{ tripleo_container_image_list_registry_url | default('') }}" - TRIPLEO_IMAGE_LIST_FORMAT: "{{ tripleo_container_image_list_format | default('') }}" - -- name: Show debug information - when: tripleo_container_image_list_debug|bool - block: - - name: Show the container image list command - debug: - var: _list_cmd - - name: Show the container image list environment - debug: - var: _list_env - -- name: Container image list - shell: "{{ _list_cmd }}" # noqa 305 - environment: "{{ _list_env }}" - register: tripleo_container_image_list_result - changed_when: false - -- name: Set output fact - when: - - tripleo_container_image_list_result.stdout is defined - set_fact: - tripleo_container_image_list_output: "{{ tripleo_container_image_list_result.stdout }}" diff --git a/roles/tripleo_container_image_list/tests/inventory b/roles/tripleo_container_image_list/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_list/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_list/tests/test.yml b/roles/tripleo_container_image_list/tests/test.yml deleted file mode 100644 index e566b5c..0000000 --- a/roles/tripleo_container_image_list/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_list diff --git a/roles/tripleo_container_image_prepare/README.md b/roles/tripleo_container_image_prepare/README.md deleted file mode 100644 index 4ff2933..0000000 --- a/roles/tripleo_container_image_prepare/README.md +++ /dev/null @@ -1,56 +0,0 @@ -tripleo_container_image_prepare -=============================== - -A role to perform the container image prepare action. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_prepare_become`: (Boolean) Run the command as root. This needs to be true when uploading to the local undercloud registry. Default: true -* `tripleo_container_image_prepare_cleanup`: (String) Cleanup behavior for local images left after upload. Can be one of full, partial, or none. Default is not set. -* `tripleo_container_image_prepare_debug`: (Boolean) Flag to print out the prepare command. Default: False -* `tripleo_container_image_prepare_dry_run`: (Boolean) Perform a dry run upload which will not perform any push, pull or modify operations. The environment file will still be populated. Default: false -* `tripleo_container_image_prepare_environment_files`: (List) List of environment files. Default: [] -* `tripleo_container_image_prepare_environment_directory`: (List) Directories containing environment files. Should not be used if `tripleo_container_image_prepare_environment_files` is defined. Default: [] -* `tripleo_container_image_prepare_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_container_image_prepare_output_env_file`: (String) File to write heat environment file which specifies all image parameters. Default is not set. -* `tripleo_container_image_prepare_output_roles_file`: (String) Roles file path on the remote system. Default is not set. -* `tripleo_container_image_prepare_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_container_image_prepare_timeout`: (Number) Amount of time to wait for the command to conplete. Default: 1800 - -Output Variables ----------------- - -* `tripleo_container_image_prepare_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container prepare execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run container prepare - import_role: - name: tripleo_container_image_prepare - vars: - tripleo_container_image_prepare_files: - - /home/stack/container-image-prepare.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_prepare/defaults/main.yml b/roles/tripleo_container_image_prepare/defaults/main.yml deleted file mode 100644 index 42da900..0000000 --- a/roles/tripleo_container_image_prepare/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -# defaults file for tripleo_container_image_prepare -openstack_bin: openstack -tripleo_container_image_prepare_become: true -tripleo_container_image_prepare_cleanup: -tripleo_container_image_prepare_debug: false -tripleo_container_image_prepare_dry_run: false -tripleo_container_image_prepare_environment_files: [] -tripleo_container_image_prepare_environment_directory: [] -tripleo_container_image_prepare_home_dir: "{{ ansible_env.HOME }}" -tripleo_container_image_prepare_log: "{{ tripleo_container_image_prepare_home_dir }}/container_image_prepare.log" -tripleo_container_image_prepare_log_file: -tripleo_container_image_prepare_log_output: false -tripleo_container_image_prepare_log_combine: true -tripleo_container_image_prepare_output_env_file: -tripleo_container_image_prepare_roles_file: -tripleo_container_image_prepare_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_container_image_prepare_timeout: 1800 diff --git a/roles/tripleo_container_image_prepare/meta/main.yml b/roles/tripleo_container_image_prepare/meta/main.yml deleted file mode 100644 index 0cc5c75..0000000 --- a/roles/tripleo_container_image_prepare/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_prepare - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_prepare - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_prepare/molecule/default/converge.yml b/roles/tripleo_container_image_prepare/molecule/default/converge.yml deleted file mode 100644 index 50d1596..0000000 --- a/roles/tripleo_container_image_prepare/molecule/default/converge.yml +++ /dev/null @@ -1,84 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - tripleo_container_image_prepare_become: false - tasks: - - - name: "Include tripleo_container_image_prepare with environment_files" - include_role: - name: "tripleo_container_image_prepare" - vars: - openstack_bin: echo - tripleo_container_image_prepare_environment_files: - - file1 - - file2 - tripleo_container_image_prepare_debug: true - - - name: Check role with environment_files - assert: - that: - - tripleo_container_image_prepare_result.stdout == - "tripleo container image prepare --environment-file file1 --environment-file file2" - - - name: "Include tripleo_container_image_prepare with environment_directory" - include_role: - name: "tripleo_container_image_prepare" - vars: - openstack_bin: echo - tripleo_container_image_prepare_environment_directory: - - dir1 - - dir2 - tripleo_container_image_prepare_debug: true - - - name: Check role with environment_directory - assert: - that: - - tripleo_container_image_prepare_result.stdout == - "tripleo container image prepare --environment-directory dir1 --environment-directory dir2" - - - name: "Include tripleo_container_image_prepare with roles_file" - include_role: - name: "tripleo_container_image_prepare" - vars: - openstack_bin: echo - tripleo_container_image_prepare_roles_file: role-file - tripleo_container_image_prepare_debug: true - - - name: Check role with roles_file - assert: - that: - - tripleo_container_image_prepare_result.stdout == - "tripleo container image prepare --roles-file role-file" - - - name: "Include tripleo_container_image_prepare with all vars set" - include_role: - name: "tripleo_container_image_prepare" - vars: - openstack_bin: echo - tripleo_container_image_prepare_cleanup: true - tripleo_container_image_prepare_debug: true - tripleo_container_image_prepare_dry_run: true - tripleo_container_image_prepare_environment_files: - - file1 - - file2 - tripleo_container_image_prepare_environment_directory: - - dir1 - tripleo_container_image_prepare_log_file: /tmp/mylog - tripleo_container_image_prepare_output_env_file: envfile - tripleo_container_image_prepare_roles_file: some_role_file - tripleo_container_image_prepare_log_output: false - tripleo_container_image_prepare_log_combine: false - - - debug: var=tripleo_container_image_prepare_result.stdout - - - - name: Check role with all vars set - assert: - that: - - tripleo_container_image_prepare_result.stdout == - "tripleo container image prepare --environment-file file1 --environment-file file2 " - "--environment-directory dir1 --roles-file some_role_file --output-env-file envfile " - "--log-file /tmp/mylog --dry-run --cleanup True" diff --git a/roles/tripleo_container_image_prepare/molecule/default/molecule.yml b/roles/tripleo_container_image_prepare/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_prepare/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_prepare/molecule/default/prepare.yml b/roles/tripleo_container_image_prepare/molecule/default/prepare.yml deleted file mode 100644 index e8fb9f3..0000000 --- a/roles/tripleo_container_image_prepare/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Build collection - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_prepare/tasks/main.yml b/roles/tripleo_container_image_prepare/tasks/main.yml deleted file mode 100644 index 991eedc..0000000 --- a/roles/tripleo_container_image_prepare/tasks/main.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -# tasks file for tripleo_container_image_prepare -- name: Setup container image prepare facts - set_fact: - _prepare_cmd: >- - {{ openstack_bin }} tripleo container image prepare - {{ tripleo_container_image_prepare_environment_files | tripleo.operator.shell_arg_list('--environment-file') }} - {{ tripleo_container_image_prepare_environment_directory | tripleo.operator.shell_arg_list('--environment-directory') }} - {{ tripleo_container_image_prepare_roles_file | ternary('--roles-file ' ~ tripleo_container_image_prepare_roles_file, '') }} - {{ tripleo_container_image_prepare_output_env_file | ternary('--output-env-file ' ~ tripleo_container_image_prepare_output_env_file, '') }} - {{ tripleo_container_image_prepare_log_file | ternary('--log-file ' ~ tripleo_container_image_prepare_log_file, '') }} - {{ tripleo_container_image_prepare_dry_run | ternary('--dry-run', '') }} - {{ tripleo_container_image_prepare_cleanup | ternary('--cleanup ' ~ tripleo_container_image_prepare_cleanup, '') }} - {{ tripleo_container_image_prepare_log_output | ternary((">" ~ tripleo_container_image_prepare_log), '') }} - {{ tripleo_container_image_prepare_log_combine | ternary("2>&1", '') }} - -- name: Show the container image prepare command - debug: - var: _prepare_cmd - when: tripleo_container_image_prepare_debug|bool - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_container_image_prepare_home_dir }}/tripleo_container_prepare.sh" - shell_command: "{{ _prepare_cmd }}" - when: tripleo_container_image_prepare_scripts|bool - -- name: Container image prepare - shell: "{{ _prepare_cmd }}" # noqa 305 - async: "{{ tripleo_container_image_prepare_timeout }}" - poll: 1 - become: "{{ tripleo_container_image_prepare_become }}" - register: tripleo_container_image_prepare_result - changed_when: true diff --git a/roles/tripleo_container_image_prepare/tests/inventory b/roles/tripleo_container_image_prepare/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_prepare/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_prepare/tests/test.yml b/roles/tripleo_container_image_prepare/tests/test.yml deleted file mode 100644 index db7eec8..0000000 --- a/roles/tripleo_container_image_prepare/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_prepare diff --git a/roles/tripleo_container_image_prepare_default/README.md b/roles/tripleo_container_image_prepare_default/README.md deleted file mode 100644 index 3b74e22..0000000 --- a/roles/tripleo_container_image_prepare_default/README.md +++ /dev/null @@ -1,50 +0,0 @@ -tripleo_container_image_prepare_default -======================================= - -A role to generate the default container image prepare information. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_prepare_default_debug`: (Boolean) Flag to print out the push command. Default: False -* `tripleo_container_image_prepare_default_enable_registry_login`: (Boolean) Flag to enable registry login on nodes if credentials are provided. Default: false -* `tripleo_container_image_prepare_default_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_container_image_prepare_default_local_push_destination`: (Boolean) Include a push_Destination to trigger upload to a local registry on the undercloud. Default: false -* `tripleo_container_image_prepare_default_output_env_file`: (String) File to write environment file containing default ContainerImagePrepare value. When not set, `tripleo_container_image_prepare_default_output` will contain yaml defining ContainerImagePrepare. Default is not set. - -Output Variables ----------------- - -* `tripleo_container_image_prepare_default_output`: (String) YAML defining a default ContainerImagePrepare value. -* `tripleo_container_image_prepare_default_result`: Ansible execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container prepare default execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Generate default ContainerImagePrepare - import_role: - name: tripleo_container_image_prepare_default - vars: - tripleo_container_image_prepare_output_env_file: /home/stack/container-image-prepare.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_prepare_default/defaults/main.yml b/roles/tripleo_container_image_prepare_default/defaults/main.yml deleted file mode 100644 index 4f8c48a..0000000 --- a/roles/tripleo_container_image_prepare_default/defaults/main.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# defaults file for tripleo_container_image_prepare_default -openstack_bin: openstack -tripleo_container_image_prepare_default_debug: false -tripleo_container_image_prepare_default_enable_registry_login: false -tripleo_container_image_prepare_default_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_container_image_prepare_default_home_dir: "{{ ansible_env.HOME }}" -tripleo_container_image_prepare_default_local_push_destination: false -tripleo_container_image_prepare_default_output_env_file: diff --git a/roles/tripleo_container_image_prepare_default/meta/main.yml b/roles/tripleo_container_image_prepare_default/meta/main.yml deleted file mode 100644 index ef9dea7..0000000 --- a/roles/tripleo_container_image_prepare_default/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_prepare_default - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_prepare_default - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_prepare_default/molecule/default/converge.yml b/roles/tripleo_container_image_prepare_default/molecule/default/converge.yml deleted file mode 100644 index cfa22ab..0000000 --- a/roles/tripleo_container_image_prepare_default/molecule/default/converge.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_container_image_prepare_default_debug: true - tasks: - - - name: "Include tripleo_container_image_prepare_default" - include_role: - name: "tripleo_container_image_prepare_default" - - - name: Check role - assert: - that: - - tripleo_container_image_prepare_default_output == "tripleo container image prepare default" - - - name: Check parameter "tripleo_container_image_prepare_default_output_env_file" - include_role: - name: "tripleo_container_image_prepare_default" - vars: - tripleo_container_image_prepare_default_output_env_file: /tmp/foo.yaml - - - name: Assert "tripleo_container_image_prepare_default_output_env_file" - assert: - that: - - tripleo_container_image_prepare_default_output == - "tripleo container image prepare default --output-env-file /tmp/foo.yaml" - - - name: Check parameter "tripleo_container_image_prepare_default_local_push_destination" - include_role: - name: "tripleo_container_image_prepare_default" - vars: - tripleo_container_image_prepare_default_local_push_destination: true - - - name: Assert "tripleo_container_image_prepare_default_output_env_file" - assert: - that: - - tripleo_container_image_prepare_default_output == - "tripleo container image prepare default --local-push-destination" - - - name: Check parameter "tripleo_container_image_prepare_default_enable_registry_login" - include_role: - name: "tripleo_container_image_prepare_default" - vars: - tripleo_container_image_prepare_default_enable_registry_login: true - - - name: Assert "tripleo_container_image_prepare_default_output_env_file" - assert: - that: - - tripleo_container_image_prepare_default_output == - "tripleo container image prepare default --enable-registry-login" diff --git a/roles/tripleo_container_image_prepare_default/molecule/default/molecule.yml b/roles/tripleo_container_image_prepare_default/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_prepare_default/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_prepare_default/molecule/default/prepare.yml b/roles/tripleo_container_image_prepare_default/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_prepare_default/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_prepare_default/tasks/main.yml b/roles/tripleo_container_image_prepare_default/tasks/main.yml deleted file mode 100644 index 27a9544..0000000 --- a/roles/tripleo_container_image_prepare_default/tasks/main.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# tasks file for tripleo_container_image_prepare_default -- name: Setup container image prepare default facts - set_fact: - _prepare_cmd: >- - {{ openstack_bin }} tripleo container image prepare default - {{ tripleo_container_image_prepare_default_output_env_file | ternary('--output-env-file ' - ~ tripleo_container_image_prepare_default_output_env_file, '') }} - {{ tripleo_container_image_prepare_default_local_push_destination | ternary('--local-push-destination', '') }} - {{ tripleo_container_image_prepare_default_enable_registry_login | ternary('--enable-registry-login', '') }} - -- name: Show the container image prepare default command - debug: - var: _prepare_cmd - when: tripleo_container_image_prepare_default_debug|bool - -- name: Container image prepare default - shell: "{{ _prepare_cmd }}" # noqa 305 - register: tripleo_container_image_prepare_default_result - changed_when: true - -- name: Set output variable - when: - - tripleo_container_image_prepare_default_result.stdout is defined - set_fact: - tripleo_container_image_prepare_default_output: "{{ tripleo_container_image_prepare_default_result.stdout }}" diff --git a/roles/tripleo_container_image_prepare_default/tests/inventory b/roles/tripleo_container_image_prepare_default/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_prepare_default/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_prepare_default/tests/test.yml b/roles/tripleo_container_image_prepare_default/tests/test.yml deleted file mode 100644 index a73a056..0000000 --- a/roles/tripleo_container_image_prepare_default/tests/test.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_container_image_prepare_default - vars: - tripleo_container_image_prepare_default_output_env_file: "{{ ansible_env.HOME }}/container-image-prepare.yaml }}" diff --git a/roles/tripleo_container_image_push/README.md b/roles/tripleo_container_image_push/README.md deleted file mode 100644 index bc612f6..0000000 --- a/roles/tripleo_container_image_push/README.md +++ /dev/null @@ -1,59 +0,0 @@ -tripleo_container_image_push -============================ - -A role to perform the container image push against a registry. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_push_append_tag`: (String) Tag to append to the existing tag when pushing the container. -* `tripleo_container_image_push_become`: (Boolean) Run the command as root. This needs to be true when uploading to the local undercloud registry. Default: true -* `tripleo_container_image_push_cleanup`: (Boolean) Remove local copy of the image after uploading. Default: false -* `tripleo_container_image_push_debug`: (Boolean) Flag to print out the push command. Default: False -* `tripleo_container_image_push_dry_run`: (Boolean) Perform a dry run upload which will exercise the authentication process but not upload the container. Default: false -* `tripleo_container_image_push_image`: (String) REQUIRED. Container image to upload. Should be in the form of //:tag. If the tag is not provided, 'latest' is used. -* `tripleo_container_image_push_local`: (Boolean) Use this flag if the container image is already on the current system and does not need to be pulled from a remote registry. Default: false -* `tripleo_container_image_push_multi_arch`: (Boolean) Enable multi arch support for the upload. Default: false -* `tripleo_container_image_push_password`: (String) Password for the registry -* `tripleo_container_image_push_registry_url`: (String) URL of the destination registry in the form :. -* `tripleo_container_image_push_timeout`: (Number) Amount of time to wait for the command to complete. Default: 360 -* `tripleo_container_image_push_username`: (String) Username for the registry - -Output Variables ----------------- - -* `tripleo_container_image_push_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container push execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Push a container - import_role: - name: tripleo_container_image_push - vars: - tripleo_container_image_push_image: docker.io/library/centos:7 - - name: Print output - debug: - var: tripleo_container_image_push_output -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_push/defaults/main.yml b/roles/tripleo_container_image_push/defaults/main.yml deleted file mode 100644 index 0244f0a..0000000 --- a/roles/tripleo_container_image_push/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -# defaults file for tripleo_container_image_push -openstack_bin: openstack -tripleo_container_image_push_append_tag: -tripleo_container_image_push_become: true -tripleo_container_image_push_cleanup: false -tripleo_container_image_push_debug: false -tripleo_container_image_push_dry_run: false -tripleo_container_image_push_local: false -tripleo_container_image_push_multi_arch: false -tripleo_container_image_push_password: -tripleo_container_image_push_registry_url: -tripleo_container_image_push_timeout: 360 -tripleo_container_image_push_username: diff --git a/roles/tripleo_container_image_push/meta/main.yml b/roles/tripleo_container_image_push/meta/main.yml deleted file mode 100644 index 2434754..0000000 --- a/roles/tripleo_container_image_push/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_push - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_push - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_push/molecule/default/converge.yml b/roles/tripleo_container_image_push/molecule/default/converge.yml deleted file mode 100644 index 51c5d57..0000000 --- a/roles/tripleo_container_image_push/molecule/default/converge.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_container_image_push" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_image: containername - - - name: Check role - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push containername" - - - name: Check parameter "tripleo_container_image_push_local" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_local: true - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_local" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --local containername" - - - name: Check parameter "tripleo_container_image_push_username" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_username: test - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_username" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --username test containername" - - - name: Check parameter "tripleo_container_image_push_password" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_password: test - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_password" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --password test containername" - - - name: Check parameter "tripleo_container_image_push_registry_url" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_registry_url: 127.0.0.1:8787 - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_registry_url" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --registry-url 127.0.0.1:8787 containername" - - - name: Check parameter "tripleo_container_image_push_append_tag" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_append_tag: -foobar - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_append_tag" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --append-tag -foobar containername" - - - name: Check parameter "tripleo_container_image_push_dry_run" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_dry_run: true - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_dry_run" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --dry-run containername" - - - name: Check parameter "tripleo_container_image_push_multi_arch" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_multi_arch: true - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_multi_arch" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --multi-arch containername" - - - name: Check parameter "tripleo_container_image_push_cleanup" - include_role: - name: "tripleo_container_image_push" - vars: - openstack_bin: echo - # TODO: remove this when sudo works with molecule - tripleo_container_image_push_become: false - tripleo_container_image_push_debug: true - tripleo_container_image_push_cleanup: true - tripleo_container_image_push_image: containername - - - name: Assert "tripleo_container_image_push_cleanup" - assert: - that: - - tripleo_container_image_push_result.stdout == "tripleo container image push --cleanup containername" diff --git a/roles/tripleo_container_image_push/molecule/default/molecule.yml b/roles/tripleo_container_image_push/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_push/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_push/molecule/default/prepare.yml b/roles/tripleo_container_image_push/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_push/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_push/tasks/main.yml b/roles/tripleo_container_image_push/tasks/main.yml deleted file mode 100644 index ed421b2..0000000 --- a/roles/tripleo_container_image_push/tasks/main.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -# tasks file for tripleo_container_image_push -- name: Setup container image push facts - set_fact: - _push_cmd: >- - {{ openstack_bin }} tripleo container image push - {{ tripleo_container_image_push_local | ternary('--local', '') }} - {{ tripleo_container_image_push_username | ternary('--username "$TRIPLEO_IMAGE_PUSH_USERNAME"', '') }} - {{ tripleo_container_image_push_password | ternary('--password "$TRIPLEO_IMAGE_PUSH_PASSWORD"', '') }} - {{ tripleo_container_image_push_registry_url | ternary('--registry-url $TRIPLEO_IMAGE_PUSH_REGISTRY_URL', '') }} - {{ tripleo_container_image_push_append_tag | ternary('--append-tag $TRIPLEO_IMAGE_PUSH_APPEND_TAG', '') }} - {{ tripleo_container_image_push_dry_run | ternary('--dry-run', '') }} - {{ tripleo_container_image_push_multi_arch | ternary('--multi-arch', '') }} - {{ tripleo_container_image_push_cleanup | ternary('--cleanup', '') }} - {{ tripleo_container_image_push_image }} - _push_env: - TRIPLEO_IMAGE_PUSH_APPEND_TAG: "{{ tripleo_container_image_push_append_tag | default('') }}" - TRIPLEO_IMAGE_PUSH_USERNAME: "{{ tripleo_container_image_push_username | default('') | quote }}" - TRIPLEO_IMAGE_PUSH_PASSWORD: "{{ tripleo_container_image_push_password | default('') | quote }}" - TRIPLEO_IMAGE_PUSH_REGISTRY_URL: "{{ tripleo_container_image_push_registry_url | default('') }}" - -- name: Show debug information - when: tripleo_container_image_push_debug|bool - block: - - name: Show the container image push command - debug: - var: _push_cmd - - name: Show the container image push environment - debug: - var: _push_env - -- name: Container image push - shell: "{{ _push_cmd }}" # noqa 305 - environment: "{{ _push_env }}" - async: "{{ tripleo_container_image_push_timeout }}" - poll: 1 - become: "{{ tripleo_container_image_push_become }}" - register: tripleo_container_image_push_result - changed_when: not tripleo_container_image_push_dry_run|bool diff --git a/roles/tripleo_container_image_push/tests/inventory b/roles/tripleo_container_image_push/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_push/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_push/tests/test.yml b/roles/tripleo_container_image_push/tests/test.yml deleted file mode 100644 index 62d5a01..0000000 --- a/roles/tripleo_container_image_push/tests/test.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_push - vars: - tripleo_container_image_push_image: docker.io/library/centos:7 diff --git a/roles/tripleo_container_image_show/README.md b/roles/tripleo_container_image_show/README.md deleted file mode 100644 index 1509f56..0000000 --- a/roles/tripleo_container_image_show/README.md +++ /dev/null @@ -1,53 +0,0 @@ -tripleo_container_image_show -============================ - -A role to perform the container image show against a registry. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_container_image_show_debug`: (Boolean) Flag to print out the show command. Default: False -* `tripleo_container_image_show_format`: (String) The format that the output will be in. By default we specify 'json' so that the output will be parsed in ansible. Default: json -* `tripleo_container_image_show_image`: (String) Image to fetch the details -* `tripleo_container_image_show_password`: (String) Password for the registry -* `tripleo_container_image_show_username`: (String) Username for the registry - -Output Variables ----------------- - -* `tripleo_container_image_show_output`: (Dictionary|String) If tripleo_container_image_show_format is json, the results will automatically be parsed and a dictionary is returned. If another format is used then this will be the response in String format. -* `tripleo_container_image_show_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container show execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: List containers - import_role: - name: tripleo_container_image_show - vars: - tripleo_container_image_show_image: docker.io/library/centos:7 - - name: Print containers - debug: - var: tripleo_container_image_show_output -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_container_image_show/defaults/main.yml b/roles/tripleo_container_image_show/defaults/main.yml deleted file mode 100644 index 5302488..0000000 --- a/roles/tripleo_container_image_show/defaults/main.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# defaults file for tripleo_container_image_show -openstack_bin: openstack -tripleo_container_image_show_debug: false -tripleo_container_image_show_format: json -tripleo_container_image_show_password: -tripleo_container_image_show_username: diff --git a/roles/tripleo_container_image_show/meta/main.yml b/roles/tripleo_container_image_show/meta/main.yml deleted file mode 100644 index 1f90efc..0000000 --- a/roles/tripleo_container_image_show/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_container_image_show - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_container_image_show - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_container_image_show/molecule/default/converge.yml b/roles/tripleo_container_image_show/molecule/default/converge.yml deleted file mode 100644 index 94c41bb..0000000 --- a/roles/tripleo_container_image_show/molecule/default/converge.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_container_image_show" - include_role: - name: "tripleo_container_image_show" - vars: - openstack_bin: echo - tripleo_container_image_show_debug: true - tripleo_container_image_show_image: containername - - - name: Check role - assert: - that: - - tripleo_container_image_show_result.stdout == "tripleo container image show -f json containername" - - - name: Check parameter "tripleo_container_image_show_username" - include_role: - name: "tripleo_container_image_show" - vars: - openstack_bin: echo - tripleo_container_image_show_debug: true - tripleo_container_image_show_username: test - tripleo_container_image_show_image: containername - - - name: Assert "tripleo_container_image_show_username" - assert: - that: - - tripleo_container_image_show_result.stdout == "tripleo container image show --username test -f json containername" - - - name: Check parameter "tripleo_container_image_show_password" - include_role: - name: "tripleo_container_image_show" - vars: - openstack_bin: echo - tripleo_container_image_show_debug: true - tripleo_container_image_show_password: test - tripleo_container_image_show_image: containername - - - name: Assert "tripleo_container_image_show_password" - assert: - that: - - tripleo_container_image_show_result.stdout == "tripleo container image show --password test -f json containername" - - - name: Check parameter "tripleo_container_image_show_format" - include_role: - name: "tripleo_container_image_show" - vars: - openstack_bin: echo - tripleo_container_image_show_debug: true - tripleo_container_image_show_format: values - tripleo_container_image_show_image: containername - - - name: Assert "tripleo_container_image_show_format" - assert: - that: - - tripleo_container_image_show_result.stdout == "tripleo container image show -f values containername" diff --git a/roles/tripleo_container_image_show/molecule/default/molecule.yml b/roles/tripleo_container_image_show/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_container_image_show/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_container_image_show/molecule/default/prepare.yml b/roles/tripleo_container_image_show/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_container_image_show/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_container_image_show/tasks/main.yml b/roles/tripleo_container_image_show/tasks/main.yml deleted file mode 100644 index 4f38a78..0000000 --- a/roles/tripleo_container_image_show/tasks/main.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -# tasks file for tripleo_container_image_show -- name: Setup container image show facts - set_fact: - _show_cmd: >- - {{ openstack_bin }} tripleo container image show - {{ tripleo_container_image_show_username | ternary('--username "$TRIPLEO_IMAGE_SHOW_USERNAME"', '') }} - {{ tripleo_container_image_show_password | ternary('--password "$TRIPLEO_IMAGE_SHOW_PASSWORD"', '') }} - {{ tripleo_container_image_show_format | ternary('-f $TRIPLEO_IMAGE_SHOW_FORMAT', '') }} - {{ tripleo_container_image_show_image }} - _show_env: - TRIPLEO_IMAGE_SHOW_USERNAME: "{{ tripleo_container_image_show_username | default('') | quote }}" - TRIPLEO_IMAGE_SHOW_PASSWORD: "{{ tripleo_container_image_show_password | default('') | quote }}" - TRIPLEO_IMAGE_SHOW_FORMAT: "{{ tripleo_container_image_show_format | default('') }}" - -- name: Show debug information - when: tripleo_container_image_show_debug|bool - block: - - name: Show the container image show command - debug: - var: _show_cmd - - name: Show the container image show environment - debug: - var: _show_env - -- name: Container image show - shell: "{{ _show_cmd }}" # noqa 305 - environment: "{{ _show_env }}" - register: tripleo_container_image_show_result - changed_when: false - -- name: Set output fact - when: - - tripleo_container_image_show_result.stdout is defined - set_fact: - tripleo_container_image_show_output: "{{ tripleo_container_image_show_result.stdout }}" diff --git a/roles/tripleo_container_image_show/tests/inventory b/roles/tripleo_container_image_show/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_container_image_show/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_container_image_show/tests/test.yml b/roles/tripleo_container_image_show/tests/test.yml deleted file mode 100644 index dc279cb..0000000 --- a/roles/tripleo_container_image_show/tests/test.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_container_image_show - vars: - tripleo_container_image_show_image: docker.io/library/centos:7 diff --git a/roles/tripleo_deploy/README.md b/roles/tripleo_deploy/README.md deleted file mode 100644 index 8343f3e..0000000 --- a/roles/tripleo_deploy/README.md +++ /dev/null @@ -1,86 +0,0 @@ -tripleo_deploy -============== - -A role to execute a single node standalone deployment. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_deploy_become`: (Boolean) Execute command with escalated privileges. Default: true -* `tripleo_deploy_cleanup`: (Boolean) Cleanup temporary files after execution. Default: false -* `tripleo_deploy_control_virtual_ip`: (String) Control plain VIP address. -* `tripleo_deploy_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_deploy_debug_arg`: (Boolean) Flag for ansible to use -vv. Default: false -* `tripleo_deploy_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_deploy_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_deploy_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_deploy_deployment_python_interpreter`: (String) Path to a python interpreter for the deployment actions. -* `tripleo_deploy_deployment_user`: (String) User who is executing the tripleo deployment via sudo. Defaults: "{{ ansible_env.USER }}" -* `tripleo_deploy_environment_files`: (List) A list of environment file paths for the deployment. -* `tripleo_deploy_force_stack_create`: (Boolean) Flag to force stack create. Default: false -* `tripleo_deploy_force_stack_update`: (Boolean) Flag to force stack update. Default: false -* `tripleo_deploy_heat_api_port`: (Number) Heat API port to use for the installer. -* `tripleo_deploy_heat_container_image`: (String) Full container image location for the openstack-heat-all container. -* `tripleo_deploy_heat_user`: (String) User to execute the non-privileged heat-all process. -* `tripleo_deploy_hieradata_override`: (String) Path to hiera data override file. -* `tripleo_deploy_home_dir`: (String) Path to the directory to execute the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_deploy_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_deploy_keep_running`: (Boolean) Flag to keep the heat instance running after the deploy has run. Default: false -* `tripleo_deploy_local_domain`: (String): Local domain for standalone cloud and the endpoints. -* `tripleo_deploy_local_ip`: (String) Local IP address to use for the cloud traffic. REQUIRED. -* `tripleo_deploy_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_deploy_home_dir }}/overcloud_deploy.log" -* `tripleo_deploy_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_deploy_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_deploy_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_deploy_output_dir`: (String) Directory to write output data to. -* `tripleo_deploy_output_only`: (String) Flag to skip ansible execution and only output the deployment scripts. Default: false -* `tripleo_deploy_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_deploy_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_deploy_public_virtual_ip`: (String) Public network VIP. -* `tripleo_deploy_roles_file`: (String) File path to a deployment roles file. -* `tripleo_deploy_stack`: (String) Name for ephemeral stack. Default: standalone -* `tripleo_deploy_standalone`: (Boolean) Flag to indicate that a standalone cloud is being deployed. Should be false after the Victoria. Default: false -* `tripleo_deploy_standalone_role`: (String) Role name to deploy. Default: Standalone -* `tripleo_deploy_templates`: (String) Path to the directory containing heat templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_deploy_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_deploy_timeout_arg` value. Default: 5700 -* `tripleo_deploy_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_deploy_upgrade`: (Boolean) Flag to indicate upgrade an existing deployment. Default: false -* `tripleo_deploy_yes`: (Boolean) Flag to skip yes/no prompts. Default: true - -Output Variables ----------------- - -* `tripleo_deploy_output`: (String) The command standard output. -* `tripleo_deploy_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud deploy execution playbook - -```yaml -- hosts: standalone - gather_facts: true - tasks: - - name: Run standalone deploy - import_role: - name: tripleo_deploy - vars: - tripleo_deploy_local_ip: 192.168.24.2/24 - tripleo_deploy_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_deploy/defaults/main.yml b/roles/tripleo_deploy/defaults/main.yml deleted file mode 100644 index c33eba2..0000000 --- a/roles/tripleo_deploy/defaults/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# defaults file for tripleo_deploy -openstack_bin: openstack -tripleo_deploy_become: true -tripleo_deploy_cleanup: false -tripleo_deploy_control_virtual_ip: -tripleo_deploy_debug: false -tripleo_deploy_debug_arg: false -tripleo_deploy_deployment_python_interpreter: -tripleo_deploy_deployment_user: "{{ ansible_env.USER }}" -tripleo_deploy_environment_files: [] -tripleo_deploy_force_stack_create: false -tripleo_deploy_force_stack_update: false -tripleo_deploy_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_deploy_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_deploy_heat_api_port: -tripleo_deploy_heat_container_image: -tripleo_deploy_heat_user: -tripleo_deploy_hieradata_override: -tripleo_deploy_home_dir: "{{ ansible_env.HOME }}" -tripleo_deploy_inflight_validations: false -tripleo_deploy_keep_running: false -tripleo_deploy_local_domain: -tripleo_deploy_local_ip: -tripleo_deploy_log: "{{ tripleo_deploy_home_dir }}/standalone_deploy.log" -tripleo_deploy_log_combine: true -tripleo_deploy_log_output: true -tripleo_deploy_networks_file: -tripleo_deploy_output_dir: -tripleo_deploy_output_only: false -tripleo_deploy_override_ansible_cfg: -tripleo_deploy_plan_environment_file: -tripleo_deploy_poll: 10 -tripleo_deploy_public_virtual_ip: -tripleo_deploy_roles_file: "{{ tripleo_deploy_templates }}/roles/Standalone.yaml" -tripleo_deploy_stack: standalone -tripleo_deploy_standalone: false -tripleo_deploy_standalone_role: Standalone -tripleo_deploy_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_deploy_timeout: 5700 -tripleo_deploy_timeout_arg: 90 -tripleo_deploy_upgrade: false -tripleo_deploy_yes: true -tripleo_deploy_reproducer_command: false diff --git a/roles/tripleo_deploy/meta/main.yml b/roles/tripleo_deploy/meta/main.yml deleted file mode 100644 index 21c169a..0000000 --- a/roles/tripleo_deploy/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_deploy - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_deploy - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_deploy/molecule/default/converge.yml b/roles/tripleo_deploy/molecule/default/converge.yml deleted file mode 100644 index a66191a..0000000 --- a/roles/tripleo_deploy/molecule/default/converge.yml +++ /dev/null @@ -1,436 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_deploy_become: false - tripleo_deploy_debug: true - tripleo_deploy_log_output: false - tripleo_deploy_log_combine: false - tripleo_deploy_poll: 1 - tripleo_deploy_local_ip: 192.168.24.2/24 - tripleo_deploy_deployment_user: - tripleo_deploy_roles_file: - tripleo_deploy_yes: false - tasks: - - - name: "Include tripleo_deploy" - include_role: - name: "tripleo_deploy" - - - name: Check role - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --templates /usr/share/openstack-tripleo-heat-templates " - "--stack standalone --standalone-role Standalone --timeout 90 " - "--local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_stack" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: test - tripleo_deploy_standalone: true - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - - - name: Assert "tripleo_deploy_stack" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --standalone --stack test --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_upgrade" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_upgrade: true - - - name: Assert "tripleo_deploy_upgrade" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --upgrade --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_yes" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_yes: true - - - name: Assert "tripleo_deploy_yes" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --yes --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_output_dir" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_output_dir: /foo - - - name: Assert "tripleo_deploy_output_dir" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --output-dir /foo --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_output_only" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_output_only: true - - - name: Assert "tripleo_deploy_output_only" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --output-only --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_environment_files" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_environment_files: - - /foo/bar.yml - - /foo/baz.yml - - - name: Assert "tripleo_deploy_environment_files" - assert: - that: - - tripleo_deploy_output == "tripleo deploy -e /foo/bar.yml -e /foo/baz.yml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_roles_file" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_roles_file: roles.yaml - - - name: Assert "tripleo_deploy_roles_file" - assert: - that: - - tripleo_deploy_output == "tripleo deploy -r roles.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_networks_file" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_networks_file: net.yaml - - - name: Assert "tripleo_deploy_networks_file" - assert: - that: - - tripleo_deploy_output == "tripleo deploy -n net.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_plan_environment_file" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_plan_environment_file: plan.yaml - - - name: Assert "tripleo_deploy_plan_environment_file" - assert: - that: - - tripleo_deploy_output == "tripleo deploy -p plan.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_heat_api_port" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_heat_api_port: 1111 - - - name: Assert "tripleo_deploy_heat_api_port" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --heat-api-port 1111 --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_heat_container_image" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_heat_container_image: quay.io/tripleomaster/openstack-heat-all:foo - - - name: Assert "tripleo_deploy_heat_api_port" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --heat-container-image quay.io/tripleomaster/openstack-heat-all:foo --local-ip 192.168.24.2/24" - - - - name: Check parameter "tripleo_deploy_heat_user" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_heat_user: foo - - - name: Assert "tripleo_deploy_heat_user" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --heat-user foo --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_deployment_user" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_deployment_user: user - - - name: Assert "tripleo_deploy_deployment_user" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --deployment-user user --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_deployment_python_interpreter" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_deployment_python_interpreter: python2 - - - name: Assert "tripleo_deploy_deployment_python_interpreter" - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --deployment-python-interpreter python2 --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_deploy_control_virtual_ip" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_control_virtual_ip: 1.1.1.12 - - - name: Assert "tripleo_deploy_control_virtual_ip" - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --local-ip 192.168.24.2/24 --control-virtual-ip 1.1.1.12" - - - name: Check parameter "tripleo_deploy_public_virtual_ip" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_public_virtual_ip: 1.1.1.13 - - - name: Assert "tripleo_deploy_public_virtual_ip" - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --local-ip 192.168.24.2/24 --public-virtual-ip 1.1.1.13" - - - name: Check parameter "tripleo_deploy_local_domain" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_local_domain: rh.local - - - name: Assert "tripleo_deploy_local_domain" - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --local-ip 192.168.24.2/24 --local-domain rh.local" - - - name: Check parameter "tripleo_deploy_cleanup" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_cleanup: true - - - name: Assert "tripleo_deploy_cleanup" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --cleanup" - - - name: Check parameter "tripleo_deploy_hieradata_override" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_hieradata_override: /foo.yml - - - name: Assert "tripleo_deploy_hieradata_override" - assert: - that: - - tripleo_deploy_output == - "tripleo deploy --local-ip 192.168.24.2/24 --hieradata-override /foo.yml" - - - name: Check parameter "tripleo_deploy_keep_running" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_keep_running: true - - - name: Assert "tripleo_deploy_keep_running" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --keep-running" - - - name: Check parameter "tripleo_deploy_inflight_validations" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_inflight_validations: true - - - name: Assert "tripleo_deploy_inflight_validations" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --inflight-validations" - - - name: Check parameter "tripleo_deploy_force_stack_create" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_force_stack_create: true - - - name: Assert "tripleo_deploy_force_stack_create" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --force-stack-create" - - - name: Check parameter "tripleo_deploy_force_stack_update" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_force_stack_update: true - - - name: Assert "tripleo_deploy_force_stack_update" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --force-stack-update" - - - name: Check parameter "tripleo_deploy_reproducer_command" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_reproducer_command: true - - - name: Assert "tripleo_deploy_reproducer_command" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --local-ip 192.168.24.2/24 --reproduce-command" - - - name: Check parameter "tripleo_deploy_debug_arg" - include_role: - name: "tripleo_deploy" - vars: - tripleo_deploy_templates: - tripleo_deploy_stack: - tripleo_deploy_standalone: false - tripleo_deploy_standalone_role: - tripleo_deploy_timeout_arg: - tripleo_deploy_debug_arg: true - - - name: Assert "tripleo_deploy_debug_arg" - assert: - that: - - tripleo_deploy_output == "tripleo deploy --debug --local-ip 192.168.24.2/24" diff --git a/roles/tripleo_deploy/molecule/default/molecule.yml b/roles/tripleo_deploy/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_deploy/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_deploy/molecule/default/prepare.yml b/roles/tripleo_deploy/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_deploy/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_deploy/tasks/main.yml b/roles/tripleo_deploy/tasks/main.yml deleted file mode 100644 index 7fa46b2..0000000 --- a/roles/tripleo_deploy/tasks/main.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -# tasks file for tripleo_deploy -- name: Validate local ip is set - fail: - msg: "tripleo_deploy_local_ip must be configured" - when: not tripleo_deploy_local_ip - -- name: Setup standalone deploy facts - set_fact: - _deploy_cmd: >- - {{ openstack_bin }} tripleo deploy - {{ tripleo_deploy_debug_arg | ternary('--debug', '') }} - {{ tripleo_deploy_templates | ternary('--templates $DEPLOY_TEMPLATES', '') }} - {{ tripleo_deploy_standalone | ternary('--standalone', '') }} - {{ tripleo_deploy_upgrade | ternary('--upgrade', '') }} - {{ tripleo_deploy_yes | ternary('--yes', '') }} - {{ tripleo_deploy_output_dir | ternary('--output-dir $DEPLOY_OUTPUT_DIR', '') }} - {{ tripleo_deploy_output_only | ternary('--output-only', '') }} - {{ tripleo_deploy_stack | ternary('--stack $DEPLOY_STACK', '') }} - {{ tripleo_deploy_standalone_role | ternary('--standalone-role $DEPLOY_STANDALONE_ROLE', '') }} - {{ tripleo_deploy_timeout_arg | ternary('--timeout $DEPLOY_TIMEOUT_ARG', '') }} - {{ tripleo_deploy_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_deploy_roles_file | ternary('-r $DEPLOY_ROLES_FILE', '') }} - {{ tripleo_deploy_networks_file | ternary('-n $DEPLOY_NETWORKS_FILE', '') }} - {{ tripleo_deploy_plan_environment_file | ternary('-p $DEPLOY_PLAN_ENV_FILE', '') }} - {{ tripleo_deploy_heat_api_port | ternary('--heat-api-port $DEPLOY_HEAT_API_PORT', '') }} - {{ tripleo_deploy_heat_container_image | ternary('--heat-container-image $DEPLOY_HEAT_CONTAINER_IMAGE', '') }} - {{ tripleo_deploy_heat_user | ternary('--heat-user $DEPLOY_HEAT_USER', '') }} - {{ tripleo_deploy_deployment_user | ternary('--deployment-user $DEPLOY_DEPLOYMENT_USER', '') }} - {{ tripleo_deploy_deployment_python_interpreter | ternary('--deployment-python-interpreter $DEPLOY_PYTHON_INTERPRETER', '') }} - {{ tripleo_deploy_local_ip | ternary('--local-ip $DEPLOY_LOCAL_IP', '') }} - {{ tripleo_deploy_control_virtual_ip | ternary('--control-virtual-ip $DEPLOY_CONTROL_VIP', '') }} - {{ tripleo_deploy_public_virtual_ip | ternary('--public-virtual-ip $DEPLOY_PUBLIC_VIP', '') }} - {{ tripleo_deploy_local_domain | ternary('--local-domain $DEPLOY_LOCAL_DOMAIN', '') }} - {{ tripleo_deploy_cleanup | ternary('--cleanup', '') }} - {{ tripleo_deploy_hieradata_override | ternary('--hieradata-override $DEPLOY_HIERADATA_OVERRIDE', '') }} - {{ tripleo_deploy_keep_running | ternary('--keep-running', '') }} - {{ tripleo_deploy_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_deploy_force_stack_create | ternary('--force-stack-create', '') }} - {{ tripleo_deploy_force_stack_update | ternary('--force-stack-update', '') }} - {{ tripleo_deploy_reproducer_command | ternary('--reproduce-command', '') }} - {{ tripleo_deploy_log_output | ternary((">" ~ tripleo_deploy_log), '') }} - {{ tripleo_deploy_log_combine | ternary("2>&1", '') }} - _deploy_env: - DEPLOY_CONTROL_VIP: "{{ tripleo_deploy_control_virtual_ip }}" - DEPLOY_DEPLOYMENT_USER: "{{ tripleo_deploy_deployment_user }}" - DEPLOY_HEAT_API_PORT: "{{ tripleo_deploy_heat_api_port }}" - DEPLOY_HEAT_CONTAINER_IMAGE: "{{ tripleo_deploy_heat_container_image }}" - DEPLOY_HEAT_USER: "{{ tripleo_deploy_heat_user }}" - DEPLOY_HIERADATA_OVERRIDE: "{{ tripleo_deploy_hieradata_override }}" - DEPLOY_LOCAL_DOMAIN: "{{ tripleo_deploy_local_domain }}" - DEPLOY_LOCAL_IP: "{{ tripleo_deploy_local_ip }}" - DEPLOY_NETWORKS_FILE: "{{ tripleo_deploy_networks_file }}" - DEPLOY_OUTPUT_DIR: "{{ tripleo_deploy_output_dir }}" - DEPLOY_PLAN_ENV_FILE: "{{ tripleo_deploy_plan_environment_file }}" - DEPLOY_PUBLIC_VIP: "{{ tripleo_deploy_public_virtual_ip }}" - DEPLOY_PYTHON_INTERPRETER: "{{ tripleo_deploy_deployment_python_interpreter }}" - DEPLOY_ROLES_FILE: "{{ tripleo_deploy_roles_file }}" - DEPLOY_STACK: "{{ tripleo_deploy_stack }}" - DEPLOY_STANDALONE_ROLE: "{{ tripleo_deploy_standalone_role }}" - DEPLOY_TEMPLATES: "{{ tripleo_deploy_templates }}" - DEPLOY_TIMEOUT_ARG: "{{ tripleo_deploy_timeout_arg }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_deploy_log }}" - when: tripleo_deploy_log_output|bool - -- name: Show debug information - when: tripleo_deploy_debug|bool - block: - - name: Show the standalone deploy command - debug: - var: _deploy_cmd - - - name: Show the standalone deploy environment - debug: - var: _deploy_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_deploy_home_dir }}/tripleo_deploy.sh" - shell_command: "{{ _deploy_cmd }}" - shell_environment: "{{ _deploy_env }}" - when: tripleo_deploy_generate_scripts|bool - -- name: Standalone deploy - shell: "{{ _deploy_cmd }}" # noqa 305 - environment: "{{ _deploy_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_deploy_home_dir }}" - become: "{{ tripleo_deploy_become }}" - register: tripleo_deploy_result - async: "{{ tripleo_deploy_timeout }}" - poll: "{{ tripleo_deploy_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_deploy_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_deploy_result.stdout is defined - set_fact: - tripleo_deploy_output: "{{ tripleo_deploy_result.stdout }}" diff --git a/roles/tripleo_deploy/tests/inventory b/roles/tripleo_deploy/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_deploy/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_deploy/tests/test.yml b/roles/tripleo_deploy/tests/test.yml deleted file mode 100644 index 42ec380..0000000 --- a/roles/tripleo_deploy/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_deploy diff --git a/roles/tripleo_overcloud_admin_authorize/README.md b/roles/tripleo_overcloud_admin_authorize/README.md deleted file mode 100644 index c50e138..0000000 --- a/roles/tripleo_overcloud_admin_authorize/README.md +++ /dev/null @@ -1,62 +0,0 @@ -tripleo_overcloud_admin_authorize -================================= - -A role to run the overcloud admin authorize action. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_admin_authorize_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_admin_authorize_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_admin_authorize_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_admin_authorize_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_admin_authorize_home_dir`: (String) Location to execute the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_admin_authorize_os_cloud`: (String) OS_CLOUD value to use when running the command. If tripleo_os_cloud is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_admin_authorize_rc_file`. -* `tripleo_overcloud_admin_authorize_output_dir`: (String) Directory to output ansible.cfg and ansible.log files. If not specified, will output to the `tripleo_overcloud_admin_authorize_home_dir`. -* `tripleo_overcloud_admin_authorize_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_admin_authorize_rc_file`: (String) Path to the credential file to use. If tripleo_rc_file is defined, it will be the default. Default: "{{ ansible_env.HOME }}/overcloudrc" -* `tripleo_overcloud_admin_authorize_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish (Train version only) -* `tripleo_overcloud_admin_authorize_ssh_key`: (String) Path to ssh key for the overcloud nodes. -* `tripleo_overcloud_admin_authorize_ssh_network`: (String) Network name to use for ssh access to the overcloud nodes. -* `tripleo_overcloud_admin_authorize_ssh_port_timeout`: (Integer) Timeout for the ssh port to become active. -* `tripleo_overcloud_admin_authorize_ssh_user`: (String) User for ssh access to overcloud nodes -* `tripleo_overcloud_admin_authorize_stack`: (String) Name or ID of the heat stack -* `tripleo_overcloud_admin_authorize_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_admin_authorize_output`: (String) The command standard output. -* `tripleo_overcloud_admin_authorize_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Deploy the ssh key for the overcloud - import_role: - name: tripleo_overcloud_admin_authorize - vars: - tripleo_overcloud_admin_authorize_stack: overcloud - tripleo_overcloud_admin_authorize_ssh_user: admin - tripleo_overcloud_admin_authorize_ssh_key: "/home/stack/my_key.pub" -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_admin_authorize/defaults/main.yml b/roles/tripleo_overcloud_admin_authorize/defaults/main.yml deleted file mode 100644 index 2c60114..0000000 --- a/roles/tripleo_overcloud_admin_authorize/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -# defaults file for tripleo_overcloud_admin_authorize -openstack_bin: openstack -tripleo_overcloud_admin_authorize_debug: false -tripleo_overcloud_admin_authorize_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_admin_authorize_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_admin_authorize_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_admin_authorize_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_admin_authorize_output_dir: -tripleo_overcloud_admin_authorize_poll: 10 -tripleo_overcloud_admin_authorize_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/overcloudrc') }}" -tripleo_overcloud_admin_authorize_ssh_enable_timeout: -tripleo_overcloud_admin_authorize_ssh_key: -tripleo_overcloud_admin_authorize_ssh_network: -tripleo_overcloud_admin_authorize_ssh_port_timeout: -tripleo_overcloud_admin_authorize_ssh_user: -tripleo_overcloud_admin_authorize_timeout: 3600 -tripleo_overcloud_admin_authorize_stack: diff --git a/roles/tripleo_overcloud_admin_authorize/meta/main.yml b/roles/tripleo_overcloud_admin_authorize/meta/main.yml deleted file mode 100644 index d9a2a86..0000000 --- a/roles/tripleo_overcloud_admin_authorize/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_admin_authorize - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_admin_authorize - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_admin_authorize/molecule/default/converge.yml b/roles/tripleo_overcloud_admin_authorize/molecule/default/converge.yml deleted file mode 100644 index 31d4ab7..0000000 --- a/roles/tripleo_overcloud_admin_authorize/molecule/default/converge.yml +++ /dev/null @@ -1,92 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_admin_authorize_debug: true - tripleo_overcloud_admin_authorize_output_dir: - tasks: - - - name: "Include tripleo_overcloud_admin_authorize" - include_role: - name: "tripleo_overcloud_admin_authorize" - - - name: Check role - assert: - that: - - tripleo_overcloud_admin_authorize_output == "overcloud admin authorize" - - - name: Check parameter "tripleo_overcloud_admin_authorize_stack" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_stack: foo - - - name: Assert "tripleo_overcloud_admin_authorize_stack" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --stack foo" - - - name: Check parameter "tripleo_overcloud_admin_authorize_ssh_user" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_ssh_user: foo - - - name: Assert "tripleo_overcloud_admin_authorize_ssh_user" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --overcloud-ssh-user foo" - - - name: Check parameter "tripleo_overcloud_admin_authorize_ssh_key" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_ssh_key: /home/stack/foo.pub - - - name: Assert "tripleo_overcloud_admin_authorize_ssh_key" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --overcloud-ssh-key /home/stack/foo.pub" - - - name: Check parameter "tripleo_overcloud_admin_authorize_ssh_network" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_ssh_network: internal - - - name: Assert "tripleo_overcloud_admin_authorize_ssh_network" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --overcloud-ssh-network internal" - - - name: Check parameter "tripleo_overcloud_admin_authorize_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_ssh_enable_timeout: 10 - - - name: Assert "tripleo_overcloud_admin_authorize_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --overcloud-ssh-enable-timeout 10" - - - name: Check parameter "tripleo_overcloud_admin_authorize_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_admin_authorize" - vars: - tripleo_overcloud_admin_authorize_ssh_port_timeout: 10 - - - name: Assert "tripleo_overcloud_admin_authorize_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_admin_authorize_output == - "overcloud admin authorize --overcloud-ssh-port-timeout 10" diff --git a/roles/tripleo_overcloud_admin_authorize/molecule/default/molecule.yml b/roles/tripleo_overcloud_admin_authorize/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_admin_authorize/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_admin_authorize/molecule/default/prepare.yml b/roles/tripleo_overcloud_admin_authorize/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_admin_authorize/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_admin_authorize/tasks/main.yml b/roles/tripleo_overcloud_admin_authorize/tasks/main.yml deleted file mode 100644 index ae8cf9d..0000000 --- a/roles/tripleo_overcloud_admin_authorize/tasks/main.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -- name: Setup config overcloud admin authorize ansible facts - set_fact: - _authorize_cmd: >- - {{ tripleo_overcloud_admin_authorize_os_cloud | ternary('', "source " ~ tripleo_overcloud_admin_authorize_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud admin authorize - {{ tripleo_overcloud_admin_authorize_stack | ternary("--stack $AUTHORIZE_STACK", '') }} - {{ tripleo_overcloud_admin_authorize_ssh_user | ternary("--overcloud-ssh-user $AUTHORIZE_SSH_USER", '') }} - {{ tripleo_overcloud_admin_authorize_ssh_key | ternary("--overcloud-ssh-key $AUTHORIZE_SSH_KEY", '') }} - {{ tripleo_overcloud_admin_authorize_ssh_network | ternary("--overcloud-ssh-network $AUTHORIZE_SSH_NETWORK", '') }} - {{ tripleo_overcloud_admin_authorize_ssh_enable_timeout | ternary("--overcloud-ssh-enable-timeout $AUTHORIZE_SSH_ENABLE_TIMEOUT", '') }} - {{ tripleo_overcloud_admin_authorize_ssh_port_timeout | ternary("--overcloud-ssh-port-timeout $AUTHORIZE_SSH_PORT_TIMEOUT", '') }} - {{ tripleo_overcloud_admin_authorize_output_dir | ternary("--output-dir $AUTHORIZE_OUTPUT_DIR", '') }} - _authorize_env: - AUTHORIZE_STACK: "{{ tripleo_overcloud_admin_authorize_stack }}" - AUTHORIZE_SSH_USER: "{{ tripleo_overcloud_admin_authorize_ssh_user }}" - AUTHORIZE_SSH_KEY: "{{ tripleo_overcloud_admin_authorize_ssh_key }}" - AUTHORIZE_SSH_NETWORK: "{{ tripleo_overcloud_admin_authorize_ssh_network }}" - AUTHORIZE_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_admin_authorize_ssh_enable_timeout }}" - AUTHORIZE_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_admin_authorize_ssh_port_timeout }}" - AUTHORIZE_OUTPUT_DIR: "{{ tripleo_overcloud_admin_authorize_output_dir }}" - OS_CLOUD: "{{ tripleo_overcloud_admin_authorize_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_admin_authorize_debug|bool - block: - - name: Show the overcloud admin authorize command - debug: - var: _authorize_cmd - - name: Show the overcloud admin authorize ansible environment - debug: - var: _authorize_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_admin_authorize_home_dir }}/tripleo_overcloud_admin_authorize.sh" - shell_command: "{{ _authorize_cmd }}" - shell_environment: "{{ _authorize_env }}" - when: tripleo_overcloud_admin_authorize_generate_scripts|bool - -- name: overcloud admin authorize - shell: "{{ _authorize_cmd }}" # noqa 305 - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_admin_authorize_home_dir }}" - environment: "{{ _authorize_env }}" - async: "{{ tripleo_overcloud_admin_authorize_timeout }}" - poll: "{{ tripleo_overcloud_admin_authorize_poll }}" - register: tripleo_overcloud_admin_authorize_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_admin_authorize_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_admin_authorize_result.stdout is defined - set_fact: - tripleo_overcloud_admin_authorize_output: "{{ tripleo_overcloud_admin_authorize_result.stdout }}" diff --git a/roles/tripleo_overcloud_admin_authorize/tests/inventory b/roles/tripleo_overcloud_admin_authorize/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_admin_authorize/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_admin_authorize/tests/test.yml b/roles/tripleo_overcloud_admin_authorize/tests/test.yml deleted file mode 100644 index 12f30fe..0000000 --- a/roles/tripleo_overcloud_admin_authorize/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_admin_authorize diff --git a/roles/tripleo_overcloud_backup/README.md b/roles/tripleo_overcloud_backup/README.md deleted file mode 100644 index 84414b6..0000000 --- a/roles/tripleo_overcloud_backup/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_overcloud_backup -========================= - -A role to run backup of a TripleO overcloud. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_backup_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_backup_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_backup_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_backup_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_backup_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_backup_init`: (String) Flag to initialize environment for backup, using `rear` or `nfs` as args which will check for packages, install and configure ReaR or NFS server. WARNING: This flag will be deprecated and replaced by `--setup-rear` and `--setup-nfs`. -* `tripleo_overcloud_backup_setup_nfs`: (Boolean) Flag to setup the NFS server on the backup node which will install required packages and configuration. -* `tripleo_overcloud_backup_setup_rear`: (Boolean) Flag to setup ReaR on undercloud which will install and configure ReaR. -* `tripleo_overcloud_backup_storage_ip`: (String) Flag to setup an ip for the NFS / Backup server. WARNING: This flag will be deprecated in favor of '--extra-vars' which will allow to pass this and other variables. -* `tripleo_overcloud_backup_extra_vars`: (String) Flag to set additional variables as JSON or as an absolute path of a JSON or YAML file type. -* `tripleo_overcloud_backup_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_overcloud_backup_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_overcloud_backup_poll`: (Integer) Number of seconds to wait between checks to see if the backup command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_overcloud_backup_timeout`: (Integer) Timeout for the backup command. Default: 7200 -* `tripleo_overcloud_backup_log`: (String) Backup log file path. Default: "{{ tripleo_undercloud_backup_home_dir }}/undercloud_backup.log" - -Output Variables ----------------- - -* `tripleo_overcloud_backup_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example backup execution playbook - -```yaml -- hosts: Undercloud - gather_facts: true - tasks: - - name: Backup overcloud - import_role: - name: tripleo_overcloud_backup - vars: - tripleo_overcloud_backup_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_backup/defaults/main.yml b/roles/tripleo_overcloud_backup/defaults/main.yml deleted file mode 100644 index b3fe49c..0000000 --- a/roles/tripleo_overcloud_backup/defaults/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -# defaults file for tripleo_overcloud_backup ---- -openstack_bin: openstack -tripleo_overcloud_backup_add_path: [] -tripleo_overcloud_backup_debug: false -tripleo_overcloud_backup_exclude_path: [] -tripleo_overcloud_backup_init: -tripleo_overcloud_backup_setup_nfs: false -tripleo_overcloud_backup_setup_rear: false -tripleo_overcloud_backup_storage_ip: -tripleo_overcloud_backup_extra_vars: -tripleo_overcloud_backup_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_backup_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_backup_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_backup_log: "{{ tripleo_overcloud_backup_home_dir }}/overcloud_backup.log" -tripleo_overcloud_backup_log_combine: true -tripleo_overcloud_backup_log_output: true -tripleo_overcloud_backup_poll: 10 -tripleo_overcloud_backup_timeout: 7200 diff --git a/roles/tripleo_overcloud_backup/meta/main.yml b/roles/tripleo_overcloud_backup/meta/main.yml deleted file mode 100644 index bce897a..0000000 --- a/roles/tripleo_overcloud_backup/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_backup - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_backup - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_backup/molecule/default/converge.yml b/roles/tripleo_overcloud_backup/molecule/default/converge.yml deleted file mode 100644 index 4cf27b0..0000000 --- a/roles/tripleo_overcloud_backup/molecule/default/converge.yml +++ /dev/null @@ -1,104 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: overcloud - tripleo_overcloud_backup_debug: true - tripleo_overcloud_backup_log_output: false - tripleo_overcloud_backup_log_combine: false - tripleo_overcloud_backup_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_backup" - include_role: - name: "tripleo_overcloud_backup" - - - name: Check role - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup" - - - name: Check parameter "tripleo_overcloud_backup_init_rear" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_init: rear - - - name: Assert "tripleo_overcloud_backup_init_rear" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --init rear" - - - name: Check parameter "tripleo_overcloud_backup_init_nfs" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_init: nfs - - - name: Assert "tripleo_overcloud_backup_init_nfs" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --init nfs" - - - name: Check parameter "tripleo_overcloud_backup_setup_nfs" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_setup_nfs: true - - - name: Assert "tripleo_overcloud_backup_setup_nfs" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --setup-nfs" - - - name: Check parameter "tripleo_overcloud_backup_setup_rear" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_setup_rear: true - - - name: Assert "tripleo_overcloud_backup_setup_rear" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --setup-rear" - - - name: Check parameter "tripleo_overcloud_backup_setup_rear_extra_vars_file" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_setup_rear: true - tripleo_overcloud_backup_extra_vars: /path/to/vars.yaml - - - name: Assert "tripleo_overcloud_backup_setup_rear_extra_vars_file" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --setup-rear --extra-vars /path/to/vars.yaml" - - - name: Check parameter "tripleo_overcloud_backup_storage_ip" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_setup_rear: true - tripleo_overcloud_backup_storage_ip: "192.168.24.1" - - - name: Assert "tripleo_overcloud_backup_storage_ip" - assert: - that: - - tripleo_overcloud_backup_result.stdout == "overcloud backup --setup-rear --storage-ip 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_backup_setup_rear_extra_vars_string" - include_role: - name: "tripleo_overcloud_backup" - vars: - tripleo_overcloud_backup_setup_rear: true - tripleo_overcloud_backup_extra_vars: "{{ {'tripleo_backup_and_restore_nfs_server': '192.168.24.1'} | to_json }}" - - - name: Assert "tripleo_overcloud_backup_setup_rear_extra_vars_string" - vars: - tripleo_overcloud_backup_extra_vars: "{{ {'tripleo_backup_and_restore_nfs_server': '192.168.24.1'} | to_json }}" - assert: - that: - - tripleo_overcloud_backup_result.stdout == 'overcloud backup --setup-rear --extra-vars {{ tripleo_overcloud_backup_extra_vars }}' diff --git a/roles/tripleo_overcloud_backup/molecule/default/molecule.yml b/roles/tripleo_overcloud_backup/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_backup/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_backup/molecule/default/prepare.yml b/roles/tripleo_overcloud_backup/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_backup/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_backup/tasks/main.yml b/roles/tripleo_overcloud_backup/tasks/main.yml deleted file mode 100644 index ee0ccfe..0000000 --- a/roles/tripleo_overcloud_backup/tasks/main.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -- name: Setup overcloud backup facts - set_fact: - _backup_cmd: >- - {{ openstack_bin }} overcloud backup - {{ tripleo_overcloud_backup_init | tripleo.operator.shell_arg_list(parameter='--init') }} - {{ tripleo_overcloud_backup_setup_nfs | ternary('--setup-nfs', '') }} - {{ tripleo_overcloud_backup_setup_rear | ternary('--setup-rear', '') }} - {{ tripleo_overcloud_backup_storage_ip | tripleo.operator.shell_arg_list(parameter='--storage-ip') }} - {{ tripleo_overcloud_backup_extra_vars | tripleo.operator.shell_arg_list(parameter='--extra-vars') }} - {{ tripleo_overcloud_backup_log_output | ternary((">" ~ tripleo_overcloud_backup_log), '') }} - {{ tripleo_overcloud_backup_log_combine | ternary("2>&1", '') }} - _backup_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_backup_log }}" - when: tripleo_overcloud_backup_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_backup_debug|bool - block: - - name: Show the overcloud backup command - debug: - var: _backup_cmd - - - name: Show the overcloud backup environment - debug: - var: _backup_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_backup_home_dir }}/tripleo_overcloud_backup.sh" - shell_command: "{{ _backup_cmd }}" - shell_environment: "{{ _backup_env }}" - when: tripleo_overcloud_backup_generate_scripts|bool - -- name: overcloud backup - shell: "{{ _backup_cmd }}" # noqa 305 - environment: "{{ _backup_env }}" - args: - chdir: "{{ tripleo_overcloud_backup_home_dir }}" - async: "{{ tripleo_overcloud_backup_timeout }}" - poll: "{{ tripleo_overcloud_backup_poll }}" - register: tripleo_overcloud_backup_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_backup_generate_scripts_only|bool diff --git a/roles/tripleo_overcloud_backup/tests/inventory b/roles/tripleo_overcloud_backup/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_backup/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_backup/tests/test.yml b/roles/tripleo_overcloud_backup/tests/test.yml deleted file mode 100644 index 21063d6..0000000 --- a/roles/tripleo_overcloud_backup/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_backup diff --git a/roles/tripleo_overcloud_cell_export/README.md b/roles/tripleo_overcloud_cell_export/README.md deleted file mode 100644 index 68a7318..0000000 --- a/roles/tripleo_overcloud_cell_export/README.md +++ /dev/null @@ -1,62 +0,0 @@ -tripleo_overcloud_cell_export -========= - -A role to perform an overcloud cell export. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_cell_export_cell_stack`: (String) Name of the controller cell Heat stack to export information from -* `tripleo_overcloud_cell_export_control_plane_stack`: (String) Name of the main Heat stack to export information from. -* `tripleo_overcloud_cell_export_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_cell_export_force_overwrite`: (Boolean) Flag to overwrite the output file. Default: false -* `tripleo_overcloud_cell_export_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_cell_export_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_cell_export_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_cell_export_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_cell_export_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_cell_export_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_cell_export_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_cell_export_home_dir }}/overcloud_cell_export.log" -* `tripleo_overcloud_cell_export_name`: (String) REQUIRED. Name of the stack used for additional cell. -* `tripleo_overcloud_cell_export_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_cell_export_rc_file`. -* `tripleo_overcloud_cell_export_output_file`: (String) Name of the output file for the cell data export. -* `tripleo_overcloud_cell_export_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_cell_export_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_cell_export_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_cell_export_output`: (String) The command standard output. -* `tripleo_overcloud_cell_export_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example cell export - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: overcloud cell export - import_role: - name: tripleo_overcloud_cell_export - var: - tripleo_overcloud_cell_export_debug: true - tripleo_overcloud_cell_export_name: cell1 -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_cell_export/defaults/main.yml b/roles/tripleo_overcloud_cell_export/defaults/main.yml deleted file mode 100644 index aca5d68..0000000 --- a/roles/tripleo_overcloud_cell_export/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# defaults file for tripleo_overcloud_cell_export ---- -openstack_bin: openstack -tripleo_overcloud_cell_export_cell_stack: -tripleo_overcloud_cell_export_control_plane_stack: -tripleo_overcloud_cell_export_debug: false -tripleo_overcloud_cell_export_force_overwrite: false -tripleo_overcloud_cell_export_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_cell_export_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_cell_export_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_cell_export_log: "{{ tripleo_overcloud_cell_export_home_dir }}/overcloud_cell_export.log" -tripleo_overcloud_cell_export_log_combine: true -tripleo_overcloud_cell_export_log_output: true -tripleo_overcloud_cell_export_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_cell_export_output_file: -tripleo_overcloud_cell_export_poll: 10 -tripleo_overcloud_cell_export_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_cell_export_timeout: 3600 diff --git a/roles/tripleo_overcloud_cell_export/meta/main.yml b/roles/tripleo_overcloud_cell_export/meta/main.yml deleted file mode 100644 index 12c5e0f..0000000 --- a/roles/tripleo_overcloud_cell_export/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_cell_export - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_cell_export - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_cell_export/molecule/default/converge.yml b/roles/tripleo_overcloud_cell_export/molecule/default/converge.yml deleted file mode 100644 index 0a60683..0000000 --- a/roles/tripleo_overcloud_cell_export/molecule/default/converge.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_cell_export_log_output: false - tripleo_overcloud_cell_export_poll: 1 - tripleo_overcloud_cell_export_name: cell1 - tripleo_overcloud_cell_export_debug: true - tasks: - - - name: "Include tripleo_overcloud_cell_export" - include_role: - name: "tripleo_overcloud_cell_export" - - - name: Check role - assert: - that: - - tripleo_overcloud_cell_export_output == "overcloud cell export cell1" - - - name: Assert "tripleo_overcloud_cell_export_control_plane_stack" - include_role: - name: "tripleo_overcloud_cell_export" - vars: - tripleo_overcloud_cell_export_control_plane_stack: overcloud - - - name: Check tripleo_overcloud_cell_export_control_plane_stack - assert: - that: - - tripleo_overcloud_cell_export_output == - "overcloud cell export --control-plane-stack overcloud cell1" - - - name: Assert "tripleo_overcloud_cell_export_cell_stack" - include_role: - name: "tripleo_overcloud_cell_export" - vars: - tripleo_overcloud_cell_export_cell_stack: stack0 - - - name: Check tripleo_overcloud_cell_export_cell_stack - assert: - that: - - tripleo_overcloud_cell_export_output == - "overcloud cell export --cell-stack stack0 cell1" - - - name: Assert "tripleo_overcloud_cell_export_output_file" - include_role: - name: "tripleo_overcloud_cell_export" - vars: - tripleo_overcloud_cell_export_output_file: foo.json - - - name: Check tripleo_overcloud_cell_export_output_file - assert: - that: - - tripleo_overcloud_cell_export_output == - "overcloud cell export --output-file foo.json cell1" - - - name: Assert "tripleo_overcloud_cell_export_force_overwrite" - include_role: - name: "tripleo_overcloud_cell_export" - vars: - tripleo_overcloud_cell_export_force_overwrite: true - - - name: Check tripleo_overcloud_cell_export_force_overwrite - assert: - that: - - tripleo_overcloud_cell_export_output == - "overcloud cell export --force-overwrite cell1" diff --git a/roles/tripleo_overcloud_cell_export/molecule/default/molecule.yml b/roles/tripleo_overcloud_cell_export/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_cell_export/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_cell_export/molecule/default/prepare.yml b/roles/tripleo_overcloud_cell_export/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_cell_export/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_cell_export/tasks/main.yml b/roles/tripleo_overcloud_cell_export/tasks/main.yml deleted file mode 100644 index ad45d45..0000000 --- a/roles/tripleo_overcloud_cell_export/tasks/main.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -# tasks file for tripleo_overcloud_cell_export -- name: Set overcloud cell export facts - set_fact: - _export_cmd: >- - {{ tripleo_overcloud_cell_export_os_cloud | ternary('', "source " ~ tripleo_overcloud_cell_export_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud cell export - {{ tripleo_overcloud_cell_export_control_plane_stack | ternary('--control-plane-stack $EXPORT_CONTROL_STACK', '') }} - {{ tripleo_overcloud_cell_export_cell_stack | ternary('--cell-stack $EXPORT_CELL_STACK', '') }} - {{ tripleo_overcloud_cell_export_output_file | ternary('--output-file $EXPORT_OUTPUT_FILE', '') }} - {{ tripleo_overcloud_cell_export_force_overwrite | ternary('--force-overwrite', '') }} - {{ tripleo_overcloud_cell_export_name }} - {{ tripleo_overcloud_cell_export_log_output | ternary((">" ~ tripleo_overcloud_cell_export_log), '') }} - {{ tripleo_overcloud_cell_export_log_combine | ternary("2>&1", '') }} - _export_env: - EXPORT_CONTROL_STACK: "{{ tripleo_overcloud_cell_export_control_plane_stack | quote }}" - EXPORT_CELL_STACK: "{{ tripleo_overcloud_cell_export_cell_stack | quote }}" - EXPORT_OUTPUT_FILE: "{{ tripleo_overcloud_cell_export_output_file | quote }}" - OS_CLOUD: "{{ tripleo_overcloud_cell_export_os_cloud }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_cell_export_log }}" - when: tripleo_overcloud_cell_export_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_cell_export_debug|bool - block: - - name: Show the command - debug: - var: _export_cmd - - - name: Show the environment - debug: - var: _export_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_cell_export_home_dir }}/tripleo_overcloud_cell_export.sh" - shell_command: "{{ _export_cmd }}" - shell_environment: "{{ _export_env }}" - when: tripleo_overcloud_cell_export_generate_scripts|bool - -- name: Run overcloud cell export - shell: "{{ _export_cmd }}" # noqa 305 - environment: "{{ _export_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_cell_export_home_dir }}" - register: tripleo_overcloud_cell_export_result - async: "{{ tripleo_overcloud_cell_export_timeout }}" - poll: "{{ tripleo_overcloud_cell_export_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_cell_export_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_cell_export_result.stdout is defined - set_fact: - tripleo_overcloud_cell_export_output: "{{ tripleo_overcloud_cell_export_result.stdout }}" diff --git a/roles/tripleo_overcloud_cell_export/tests/inventory b/roles/tripleo_overcloud_cell_export/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_cell_export/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_cell_export/tests/test.yml b/roles/tripleo_overcloud_cell_export/tests/test.yml deleted file mode 100644 index 500b6b9..0000000 --- a/roles/tripleo_overcloud_cell_export/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_cell_export diff --git a/roles/tripleo_overcloud_config_download/README.md b/roles/tripleo_overcloud_config_download/README.md deleted file mode 100644 index 7694877..0000000 --- a/roles/tripleo_overcloud_config_download/README.md +++ /dev/null @@ -1,62 +0,0 @@ -tripleo_overcloud_config_download -================================= - -A role to perform an overcloud config download. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_config_download_config_dir`: (String) Directory where the files will be downloaded to -* `tripleo_overcloud_config_download_config_type`: (String) Type of object config to extract from the deployment -* `tripleo_overcloud_config_download_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_config_download_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_config_download_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_config_download_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_config_download_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_config_download_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_config_download_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_config_download_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_config_download_home_dir }}/overcloud_config_download.log" -* `tripleo_overcloud_config_download_name`: (String) Name of the plan -* `tripleo_overcloud_config_download_no_preserve_config`: (Boolean) If set to `true` the config dir will be removed prior to download. Default: false -* `tripleo_overcloud_config_download_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_config_download_rc_file`. -* `tripleo_overcloud_config_download_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_config_download_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_config_download_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_config_download_output`: (String) The command standard output. -* `tripleo_overcloud_config_download_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example config download - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: overcloud config download - import_role: - name: tripleo_overcloud_config_download - var: - tripleo_overcloud_config_download_debug: true - tripleo_overcloud_config_download_name: overcloud - tripleo_overcloud_config_download_config_dir: /home/stack/config -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_config_download/defaults/main.yml b/roles/tripleo_overcloud_config_download/defaults/main.yml deleted file mode 100644 index 5deaca4..0000000 --- a/roles/tripleo_overcloud_config_download/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# defaults file for tripleo_overcloud_config_download ---- -openstack_bin: openstack -tripleo_overcloud_config_download_config_dir: -tripleo_overcloud_config_download_config_type: -tripleo_overcloud_config_download_debug: false -tripleo_overcloud_config_download_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_config_download_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_config_download_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_config_download_log: "{{ tripleo_overcloud_config_download_home_dir }}/overcloud_config_download.log" -tripleo_overcloud_config_download_log_combine: true -tripleo_overcloud_config_download_log_output: true -tripleo_overcloud_config_download_name: -tripleo_overcloud_config_download_no_preserve_config: false -tripleo_overcloud_config_download_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_config_download_poll: 10 -tripleo_overcloud_config_download_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_config_download_timeout: 3600 diff --git a/roles/tripleo_overcloud_config_download/meta/main.yml b/roles/tripleo_overcloud_config_download/meta/main.yml deleted file mode 100644 index db8ef07..0000000 --- a/roles/tripleo_overcloud_config_download/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_config_download - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_config_download - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_config_download/molecule/default/converge.yml b/roles/tripleo_overcloud_config_download/molecule/default/converge.yml deleted file mode 100644 index 7dbb3c6..0000000 --- a/roles/tripleo_overcloud_config_download/molecule/default/converge.yml +++ /dev/null @@ -1,69 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_config_download_log_output: false - tripleo_overcloud_config_download_poll: 1 - tripleo_overcloud_config_download_debug: true - tasks: - - - name: "Include tripleo_overcloud_config_download" - include_role: - name: "tripleo_overcloud_config_download" - - - name: Check role - assert: - that: - - tripleo_overcloud_config_download_output == "overcloud config download" - - - name: Assert "tripleo_overcloud_config_download_name" - include_role: - name: "tripleo_overcloud_config_download" - vars: - tripleo_overcloud_config_download_name: foo - - - name: Verify tripleo_overcloud_config_download_name - assert: - that: - - tripleo_overcloud_config_download_output == - "overcloud config download --name foo" - - - name: Assert "tripleo_overcloud_config_download_config_dir" - include_role: - name: "tripleo_overcloud_config_download" - vars: - tripleo_overcloud_config_download_config_dir: /foo - - - name: Verify tripleo_overcloud_config_download_config_dir - assert: - that: - - tripleo_overcloud_config_download_output == - "overcloud config download --config-dir /foo" - - - name: Assert "tripleo_overcloud_config_download_config_type" - include_role: - name: "tripleo_overcloud_config_download" - vars: - tripleo_overcloud_config_download_config_type: bar - - - name: Verify tripleo_overcloud_config_download_config_type - assert: - that: - - tripleo_overcloud_config_download_output == - "overcloud config download --config-type bar" - - - name: Assert "tripleo_overcloud_config_download_no_preserve_config" - include_role: - name: "tripleo_overcloud_config_download" - vars: - tripleo_overcloud_config_download_no_preserve_config: true - - - name: Verify tripleo_overcloud_config_download_no_preserve_config - assert: - that: - - tripleo_overcloud_config_download_output == - "overcloud config download --no-preserve-config" diff --git a/roles/tripleo_overcloud_config_download/molecule/default/molecule.yml b/roles/tripleo_overcloud_config_download/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_config_download/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_config_download/molecule/default/prepare.yml b/roles/tripleo_overcloud_config_download/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_config_download/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_config_download/tasks/main.yml b/roles/tripleo_overcloud_config_download/tasks/main.yml deleted file mode 100644 index 3993d1a..0000000 --- a/roles/tripleo_overcloud_config_download/tasks/main.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -# tasks file for _skeleton -- name: Set overcloud config download facts - set_fact: - _download_cmd: >- - {{ tripleo_overcloud_config_download_os_cloud | ternary('', "source " ~ tripleo_overcloud_config_download_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud config download - {{ tripleo_overcloud_config_download_name | ternary('--name $DOWNLOAD_NAME', '') }} - {{ tripleo_overcloud_config_download_config_dir | ternary('--config-dir $DOWNLOAD_CONFIG_DIR', '') }} - {{ tripleo_overcloud_config_download_config_type | ternary('--config-type $DOWNLOAD_CONFIG_TYPE', '') }} - {{ tripleo_overcloud_config_download_no_preserve_config | ternary('--no-preserve-config', '') }} - {{ tripleo_overcloud_config_download_log_output | ternary((">" ~ tripleo_overcloud_config_download_log), '') }} - {{ tripleo_overcloud_config_download_log_combine | ternary("2>&1", '') }} - _download_env: - DOWNLOAD_NAME: "{{ tripleo_overcloud_config_download_name | quote }}" - DOWNLOAD_CONFIG_DIR: "{{ tripleo_overcloud_config_download_config_dir | quote }}" - DOWNLOAD_CONFIG_TYPE: "{{ tripleo_overcloud_config_download_config_type | quote }}" - OS_CLOUD: "{{ tripleo_overcloud_config_download_os_cloud }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_config_download_log }}" - when: tripleo_overcloud_config_download_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_config_download_debug|bool - block: - - name: Show the command - debug: - var: _download_cmd - - - name: Show the environment - debug: - var: _download_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_config_download_home_dir }}/tripleo_overcloud_config_download.sh" - shell_command: "{{ _download_cmd }}" - shell_environment: "{{ _download_env }}" - when: tripleo_overcloud_config_download_generate_scripts|bool - -- name: Run overcloud config download - shell: "{{ _download_cmd }}" # noqa 305 - environment: "{{ _download_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_config_download_home_dir }}" - register: tripleo_overcloud_config_download_result - async: "{{ tripleo_overcloud_config_download_timeout }}" - poll: "{{ tripleo_overcloud_config_download_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_config_download_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_config_download_result.stdout is defined - set_fact: - tripleo_overcloud_config_download_output: "{{ tripleo_overcloud_config_download_result.stdout }}" diff --git a/roles/tripleo_overcloud_config_download/tests/inventory b/roles/tripleo_overcloud_config_download/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_config_download/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_config_download/tests/test.yml b/roles/tripleo_overcloud_config_download/tests/test.yml deleted file mode 100644 index 7b37505..0000000 --- a/roles/tripleo_overcloud_config_download/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_config_download diff --git a/roles/tripleo_overcloud_container_image_build/README.md b/roles/tripleo_overcloud_container_image_build/README.md deleted file mode 100644 index 9bf3ec6..0000000 --- a/roles/tripleo_overcloud_container_image_build/README.md +++ /dev/null @@ -1,61 +0,0 @@ -tripleo_overcloud_container_image_build -======================================= - -A role to perform the container image build process. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_container_image_build_config_files`: (List) YAML Config file(s) specifyign the image to build. Default: [] -* `tripleo_overcloud_container_image_build_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_container_image_build_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_container_image_build_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_container_image_build_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_container_image_build_excludes`: (List) Name of containers to exclude from the build. Default: [] -* `tripleo_overcloud_container_image_build_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_container_image_build_kolla_config_file`: (String) Path to Kolla config file. -* `tripleo_overcloud_container_image_build_list_dependencies`: (Boolean) Show the image build dependencies instead of building. Default: false -* `tripleo_overcloud_container_image_build_list_images`: (Boolean) Show the images which would be built rather than building. Default: false -* `tripleo_overcloud_container_image_build_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_container_image_build_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_container_image_build_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_container_image_build_home_dir }}/overcloud_container_image_build.log" -* `tripleo_overcloud_container_image_build_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_container_image_build_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 -* `tripleo_overcloud_container_image_build_use_buildah`: (Boolean) Use Buildah instead of Docker to build. Default: false -* `tripleo_overcloud_container_image_build_work_dir`: (String) Tripleo container builds directory. - -Output Variables ----------------- - -* `tripleo_overcloud_container_image_build_output`: (String) The command standard output. -* `tripleo_overcloud_container_image_build_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container images build. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Build containers - import_role: - name: tripleo_overcloud_container_image_build - var: - tripleo_overcloud_container_image_build_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_container_image_build/defaults/main.yml b/roles/tripleo_overcloud_container_image_build/defaults/main.yml deleted file mode 100644 index 1cf6e9d..0000000 --- a/roles/tripleo_overcloud_container_image_build/defaults/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -# defaults file for tripleo_overcloud_container_image_build ---- -openstack_bin: openstack -tripleo_overcloud_container_image_build_config_files: [] -tripleo_overcloud_container_image_build_debug: false -tripleo_overcloud_container_image_build_excludes: [] -tripleo_overcloud_container_image_build_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_container_image_build_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_container_image_build_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_container_image_build_kolla_config_file: -tripleo_overcloud_container_image_build_list_dependencies: false -tripleo_overcloud_container_image_build_list_images: false -tripleo_overcloud_container_image_build_log: "{{ tripleo_overcloud_container_image_build_home_dir }}/overcloud_container_image_build.log" -tripleo_overcloud_container_image_build_log_combine: true -tripleo_overcloud_container_image_build_log_output: true -tripleo_overcloud_container_image_build_poll: 10 -tripleo_overcloud_container_image_build_timeout: 3600 -tripleo_overcloud_container_image_build_use_buildah: false -tripleo_overcloud_container_image_build_work_dir: diff --git a/roles/tripleo_overcloud_container_image_build/meta/main.yml b/roles/tripleo_overcloud_container_image_build/meta/main.yml deleted file mode 100644 index df17f62..0000000 --- a/roles/tripleo_overcloud_container_image_build/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_container_image_build - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_container_image_build - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_container_image_build/molecule/default/converge.yml b/roles/tripleo_overcloud_container_image_build/molecule/default/converge.yml deleted file mode 100644 index 4c05189..0000000 --- a/roles/tripleo_overcloud_container_image_build/molecule/default/converge.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_container_image_build_log_output: false - tripleo_overcloud_container_image_build_poll: 1 - tripleo_overcloud_container_image_build_debug: true - tasks: - - - name: "Include tripleo_overcloud_container_image_build" - include_role: - name: "tripleo_overcloud_container_image_build" - - - name: Check role - assert: - that: - - tripleo_overcloud_container_image_build_output == "overcloud container image build" - - - name: Check paramter "tripleo_overcloud_container_image_build_config_files" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_config_files: - - foo.yaml - - bar.yaml - - - name: Assert "tripleo_overcloud_container_image_build_config_files" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --config-file foo.yaml --config-file bar.yaml" - - - name: Check paramter "tripleo_overcloud_container_image_build_kolla_config_file" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_kolla_config_file: foo.conf - - - name: Assert "tripleo_overcloud_container_image_build_kolla_config_file" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --kolla-config-file foo.conf" - - - name: Check paramter "tripleo_overcloud_container_image_build_list_images" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_list_images: true - - - name: Assert "tripleo_overcloud_container_image_build_list_images" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --list-images" - - - name: Check paramter "tripleo_overcloud_container_image_build_list_dependencies" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_list_dependencies: true - - - name: Assert "tripleo_overcloud_container_image_build_list_dependencies" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --list-dependencies" - - - name: Check paramter "tripleo_overcloud_container_image_build_excludes" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_excludes: - - nova-api - - nova-compute - - - name: Assert "tripleo_overcloud_container_image_build_excludes" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --exclude nova-api --exclude nova-compute" - - - name: Check paramter "tripleo_overcloud_container_image_build_use_buildah" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_use_buildah: true - - - name: Assert "tripleo_overcloud_container_image_build_use_buildah" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --use-buildah" - - - name: Check paramter "tripleo_overcloud_container_image_build_work_dir" - include_role: - name: "tripleo_overcloud_container_image_build" - vars: - tripleo_overcloud_container_image_build_work_dir: /tmp/foo - - - name: Assert "tripleo_overcloud_container_image_build_work_dir" - assert: - that: - - tripleo_overcloud_container_image_build_output == - "overcloud container image build --work-dir /tmp/foo" diff --git a/roles/tripleo_overcloud_container_image_build/molecule/default/molecule.yml b/roles/tripleo_overcloud_container_image_build/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_container_image_build/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_container_image_build/molecule/default/prepare.yml b/roles/tripleo_overcloud_container_image_build/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_container_image_build/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_container_image_build/tasks/main.yml b/roles/tripleo_overcloud_container_image_build/tasks/main.yml deleted file mode 100644 index d61078d..0000000 --- a/roles/tripleo_overcloud_container_image_build/tasks/main.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -# tasks file for tripleo_overcloud_container_image_build -- name: Set facts for overcloud container image build - set_fact: - _build_cmd: >- - {{ openstack_bin }} overcloud container image build - {{ tripleo_overcloud_container_image_build_config_files | tripleo.operator.shell_arg_list('--config-file') }} - {{ tripleo_overcloud_container_image_build_kolla_config_file | tripleo.operator.shell_arg_list('--kolla-config-file') }} - {{ tripleo_overcloud_container_image_build_list_images | ternary('--list-images', '') }} - {{ tripleo_overcloud_container_image_build_list_dependencies | ternary('--list-dependencies', '') }} - {{ tripleo_overcloud_container_image_build_excludes | tripleo.operator.shell_arg_list('--exclude') }} - {{ tripleo_overcloud_container_image_build_use_buildah | ternary('--use-buildah', '') }} - {{ tripleo_overcloud_container_image_build_work_dir | tripleo.operator.shell_arg_list('--work-dir') }} - {{ tripleo_overcloud_container_image_build_log_output | ternary((">" ~ tripleo_overcloud_container_image_build_log), '') }} - {{ tripleo_overcloud_container_image_build_log_combine | ternary("2>&1", '') }} - _build_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_container_image_build_log }}" - when: tripleo_overcloud_container_image_build_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_container_image_build_debug|bool - block: - - name: Show the command - debug: - var: _build_cmd - - - name: Show the environment - debug: - var: _build_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_container_image_build_home_dir }}/tripleo_overcloud_container_image_build.sh" - shell_command: "{{ _build_cmd }}" - shell_environment: "{{ _build_env }}" - when: tripleo_overcloud_container_image_build_generate_scripts|bool - -- name: Run container image build - shell: "{{ _build_cmd }}" # noqa 305 - environment: "{{ _build_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_container_image_build_home_dir }}" - register: tripleo_overcloud_container_image_build_result - async: "{{ tripleo_overcloud_container_image_build_timeout }}" - poll: "{{ tripleo_overcloud_container_image_build_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_container_image_build_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_container_image_build_result.stdout is defined - set_fact: - tripleo_overcloud_container_image_build_output: "{{ tripleo_overcloud_container_image_build_result.stdout }}" diff --git a/roles/tripleo_overcloud_container_image_build/tests/inventory b/roles/tripleo_overcloud_container_image_build/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_container_image_build/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_container_image_build/tests/test.yml b/roles/tripleo_overcloud_container_image_build/tests/test.yml deleted file mode 100644 index 7beea08..0000000 --- a/roles/tripleo_overcloud_container_image_build/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_container_image_build diff --git a/roles/tripleo_overcloud_container_image_prepare/README.md b/roles/tripleo_overcloud_container_image_prepare/README.md deleted file mode 100644 index d7e8fd1..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/README.md +++ /dev/null @@ -1,74 +0,0 @@ -tripleo_overcloud_container_image_prepare -========================================= - -IMPORTANT: This role is for use in Queens only. This functionality was replaced -by the `openstack tripleo container image prepare` command in Rocky. - -A role to perform the overcloud container image prepare. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_container_image_prepare_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_container_image_prepare_environment_directory`: (String) Path to a directory containing the environment files specifying which services are containerized. -* `tripleo_overcloud_container_image_prepare_environment_files`: (List) List of environment files specifying which services are containerized. Default: [] -* `tripleo_overcloud_container_image_prepare_excludes`: (List) List of patterns to match the image name against to exclude from the output. Default: [] -* `tripleo_overcloud_container_image_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_container_image_prepare_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_container_image_prepare_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_container_image_prepare_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_container_image_prepare_includes`: (List) List of patterns to match the image name against to include in the output. Default: [] -* `tripleo_overcloud_container_image_prepare_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_container_image_prepare_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_container_image_prepare_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_container_image_prepare_home_dir }}/overcloud_container_image_prepare.log" -* `tripleo_overcloud_container_image_prepare_modify_role`: (String) Name of ansible role to run between every image pull and push. -* `tripleo_overcloud_container_image_prepare_modify_vars`: (String) Ansible variables file containing variables to use when using modify role. -* `tripleo_overcloud_container_image_prepare_namespace`: (String) Override the default namespace substitution -* `tripleo_overcloud_container_image_prepare_output_env_file`: (String) Output heat environment file which specifies all image parameters. -* `tripleo_overcloud_container_image_prepare_output_images_file`: (String) Path to write the output image entries to. -* `tripleo_overcloud_container_image_prepare_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_container_image_prepare_prefix`: (String) Override the default name prefix substitution -* `tripleo_overcloud_container_image_prepare_push_destination`: (String) Location of image registry to push images to -* `tripleo_overcloud_container_image_prepare_roles_file`: (String) Roles file path for the cloud. -* `tripleo_overcloud_container_image_prepare_set`: (List) Set the value of a variable in the template even if it has no dedicated argument. Default: [] -* `tripleo_overcloud_container_image_prepare_suffix`: (String) Override the default name suffix substitution -* `tripleo_overcloud_container_image_prepare_tag_from_label`: (String) Use the value of the specify label to discover the tag -* `tripleo_overcloud_container_image_prepare_tag`: (String) Override the default tag substitution -* `tripleo_overcloud_container_image_prepare_template_file`: (String) YAML template file for image config -* `tripleo_overcloud_container_image_prepare_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_container_image_prepare_output`: (String) The command standard output. -* `tripleo_overcloud_container_image_prepare_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud container image prepare. - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Overcloud container image prepare - import_role: - name: tripleo_overcloud_container_image_prepare - var: - tripleo_overcloud_container_image_prepare_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_container_image_prepare/defaults/main.yml b/roles/tripleo_overcloud_container_image_prepare/defaults/main.yml deleted file mode 100644 index 8040319..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/defaults/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -# defaults file for tripleo_overcloud_container_image_prepare ---- -openstack_bin: openstack -tripleo_overcloud_container_image_prepare_debug: false -tripleo_overcloud_container_image_prepare_environment_directory: -tripleo_overcloud_container_image_prepare_environment_files: [] -tripleo_overcloud_container_image_prepare_excludes: [] -tripleo_overcloud_container_image_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_container_image_prepare_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_container_image_prepare_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_container_image_prepare_includes: [] -tripleo_overcloud_container_image_prepare_log: "{{ tripleo_overcloud_container_image_prepare_home_dir }}/overcloud_container_image_prepare.log" -tripleo_overcloud_container_image_prepare_log_combine: true -tripleo_overcloud_container_image_prepare_log_output: true -tripleo_overcloud_container_image_prepare_modify_role: -tripleo_overcloud_container_image_prepare_modify_vars: -tripleo_overcloud_container_image_prepare_namespace: -tripleo_overcloud_container_image_prepare_output_env_file: -tripleo_overcloud_container_image_prepare_output_images_file: -tripleo_overcloud_container_image_prepare_poll: 10 -tripleo_overcloud_container_image_prepare_prefix: -tripleo_overcloud_container_image_prepare_push_destination: -tripleo_overcloud_container_image_prepare_roles_file: -tripleo_overcloud_container_image_prepare_set: [] -tripleo_overcloud_container_image_prepare_suffix: -tripleo_overcloud_container_image_prepare_tag: -tripleo_overcloud_container_image_prepare_tag_from_label: -tripleo_overcloud_container_image_prepare_template_file: -tripleo_overcloud_container_image_prepare_timeout: 3600 diff --git a/roles/tripleo_overcloud_container_image_prepare/meta/main.yml b/roles/tripleo_overcloud_container_image_prepare/meta/main.yml deleted file mode 100644 index 860345d..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_container_image_prepare - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_container_image_prepare - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_container_image_prepare/molecule/default/converge.yml b/roles/tripleo_overcloud_container_image_prepare/molecule/default/converge.yml deleted file mode 100644 index 2bc0d8c..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/molecule/default/converge.yml +++ /dev/null @@ -1,206 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_container_image_prepare_log_output: false - tripleo_overcloud_container_image_prepare_poll: 1 - tripleo_overcloud_container_image_prepare_debug: true - tasks: - - - name: "Include tripleo_overcloud_container_image_prepare" - include_role: - name: "tripleo_overcloud_container_image_prepare" - - - name: Check role - assert: - that: - - tripleo_overcloud_container_image_prepare_output == "overcloud container image prepare" - - - name: Validate "tripleo_overcloud_container_image_prepare_template_file" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_template_file: foo.yaml.j2 - - - name: Assert tripleo_overcloud_container_image_prepare_template_file - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --template-file foo.yaml.j2" - - - name: Validate "tripleo_overcloud_container_image_prepare_push_destination" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_push_destination: "localhost:8787" - - - name: Assert tripleo_overcloud_container_image_prepare_push_destination - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --push-destination localhost:8787" - - - name: Validate "tripleo_overcloud_container_image_prepare_tag" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_tag: foo - - - name: Assert tripleo_overcloud_container_image_prepare_tag - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --tag foo" - - - name: Validate "tripleo_overcloud_container_image_prepare_tag_from_label" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_tag_from_label: "{version}-123" - - - name: Assert tripleo_overcloud_container_image_prepare_tag_from_label - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --tag-from-label '{version}-123'" - - - name: Validate "tripleo_overcloud_container_image_prepare_namespace" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_namespace: foo - - - name: Assert tripleo_overcloud_container_image_prepare_namespace - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --namespace foo" - - - name: Validate "tripleo_overcloud_container_image_prepare_prefix" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_prefix: foo - - - name: Assert tripleo_overcloud_container_image_prepare_prefix - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --prefix foo" - - - name: Validate "tripleo_overcloud_container_image_prepare_suffix" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_suffix: bar - - - name: Assert tripleo_overcloud_container_image_prepare_suffix - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --suffix bar" - - - name: Validate "tripleo_overcloud_container_image_prepare_excludes" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_excludes: - - nova-api - - nova-compute - - - name: Assert tripleo_overcloud_container_image_prepare_excludes - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --exclude nova-api --exclude nova-compute" - - - name: Validate "tripleo_overcloud_container_image_prepare_includes" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_includes: - - nova-api - - nova-compute - - - name: Assert tripleo_overcloud_container_image_prepare_includes - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --include nova-api --include nova-compute" - - - name: Validate "tripleo_overcloud_container_image_prepare_environment_files" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_environment_files: - - a.yaml - - b.yaml - - - name: Assert tripleo_overcloud_container_image_prepare_environment_files - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --environment-file a.yaml --environment-file b.yaml" - - - name: Validate "tripleo_overcloud_container_image_prepare_environment_directory" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_environment_directory: /tmp/a - - - name: Assert tripleo_overcloud_container_image_prepare_environment_directory - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --environment-directory /tmp/a" - - - name: Validate "tripleo_overcloud_container_image_prepare_output_env_file" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_output_env_file: env.yaml - - - name: Assert tripleo_overcloud_container_image_prepare_output_env_file - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --output-env-file env.yaml" - - - name: Validate "tripleo_overcloud_container_image_prepare_roles_file" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_roles_file: roles.yaml - - - name: Assert tripleo_overcloud_container_image_preparea_roles_file - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --roles-file roles.yaml" - - - name: Validate "tripleo_overcloud_container_image_prepare_modify_role" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_modify_role: yum-update - - - name: Assert tripleo_overcloud_container_image_prepare_modify_role - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --modify-role yum-update" - - - name: Validate "tripleo_overcloud_container_image_prepare_modify_vars" - include_role: - name: "tripleo_overcloud_container_image_prepare" - vars: - tripleo_overcloud_container_image_prepare_modify_vars: myvars.yaml - - - name: Assert tripleo_overcloud_container_image_prepare_modify_vars - assert: - that: - - tripleo_overcloud_container_image_prepare_output == - "overcloud container image prepare --modify-vars myvars.yaml" diff --git a/roles/tripleo_overcloud_container_image_prepare/molecule/default/molecule.yml b/roles/tripleo_overcloud_container_image_prepare/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_container_image_prepare/molecule/default/prepare.yml b/roles/tripleo_overcloud_container_image_prepare/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_container_image_prepare/tasks/main.yml b/roles/tripleo_overcloud_container_image_prepare/tasks/main.yml deleted file mode 100644 index 7fd79af..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/tasks/main.yml +++ /dev/null @@ -1,83 +0,0 @@ ---- -# tasks file for tripleo_overcloud_container_image_prepare -- name: Set overcloud container image prepare facts - set_fact: - _prepare_cmd: >- - {{ openstack_bin }} overcloud container image prepare - {{ tripleo_overcloud_container_image_prepare_template_file | ternary('--template-file $PREPARE_TEMPLATE_FILE', '') }} - {{ tripleo_overcloud_container_image_prepare_push_destination | ternary('--push-destination $PREPARE_PUSH_DESTINATION', '') }} - {{ tripleo_overcloud_container_image_prepare_tag | ternary('--tag $PREPARE_TAG', '') }} - {{ tripleo_overcloud_container_image_prepare_tag_from_label | ternary('--tag-from-label $PREPARE_TAG_FROM_LABEL', '') }} - {{ tripleo_overcloud_container_image_prepare_namespace | ternary('--namespace $PREPARE_NAMESPACE', '') }} - {{ tripleo_overcloud_container_image_prepare_prefix | ternary('--prefix $PREPARE_PREFIX', '') }} - {{ tripleo_overcloud_container_image_prepare_suffix | ternary('--suffix $PREPARE_SUFFIX', '') }} - {{ tripleo_overcloud_container_image_prepare_set | tripleo.operator.shell_arg_list('--set') }} - {{ tripleo_overcloud_container_image_prepare_excludes | tripleo.operator.shell_arg_list('--exclude') }} - {{ tripleo_overcloud_container_image_prepare_includes | tripleo.operator.shell_arg_list('--include') }} - {{ tripleo_overcloud_container_image_prepare_output_images_file | ternary('--output-images-file $PREPARE_OUTPUT_IMAGES_FILE', '') }} - {{ tripleo_overcloud_container_image_prepare_environment_files | tripleo.operator.shell_arg_list('--environment-file') }} - {{ tripleo_overcloud_container_image_prepare_environment_directory | ternary('--environment-directory $PREPARE_ENVIRONMENT_DIR', '') }} - {{ tripleo_overcloud_container_image_prepare_output_env_file | ternary('--output-env-file $PREPARE_OUTPUT_ENV_FILE', '') }} - {{ tripleo_overcloud_container_image_prepare_roles_file | ternary('--roles-file $PREPARE_ROLES_FILE', '') }} - {{ tripleo_overcloud_container_image_prepare_modify_role | ternary('--modify-role $PREPARE_MODIFY_ROLE', '') }} - {{ tripleo_overcloud_container_image_prepare_modify_vars | ternary('--modify-vars $PREPARE_MODIFY_VARS', '') }} - {{ tripleo_overcloud_container_image_prepare_log_output | ternary((">" ~ tripleo_overcloud_container_image_prepare_log), '') }} - {{ tripleo_overcloud_container_image_prepare_log_combine | ternary("2>&1", '') }} - _prepare_env: - PREPARE_TEMPLATE_FILE: "{{ tripleo_overcloud_container_image_prepare_template_file | quote }}" - PREPARE_PUSH_DESTINATION: "{{ tripleo_overcloud_container_image_prepare_push_destination | quote }}" - PREPARE_TAG: "{{ tripleo_overcloud_container_image_prepare_tag | quote }}" - PREPARE_TAG_FROM_LABEL: "{{ tripleo_overcloud_container_image_prepare_tag_from_label | quote }}" - PREPARE_NAMESPACE: "{{ tripleo_overcloud_container_image_prepare_namespace | quote }}" - PREPARE_PREFIX: "{{ tripleo_overcloud_container_image_prepare_prefix | quote }}" - PREPARE_SUFFIX: "{{ tripleo_overcloud_container_image_prepare_suffix | quote }}" - PREPARE_OUTPUT_IMAGES_FILE: "{{ tripleo_overcloud_container_image_prepare_output_images_file | quote }}" - PREPARE_ENVIRONMENT_DIR: "{{ tripleo_overcloud_container_image_prepare_environment_directory | quote }}" - PREPARE_OUTPUT_ENV_FILE: "{{ tripleo_overcloud_container_image_prepare_output_env_file | quote }}" - PREPARE_ROLES_FILE: "{{ tripleo_overcloud_container_image_prepare_roles_file | quote }}" - PREPARE_MODIFY_ROLE: "{{ tripleo_overcloud_container_image_prepare_modify_role | quote }}" - PREPARE_MODIFY_VARS: "{{ tripleo_overcloud_container_image_prepare_modify_vars | quote }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_container_image_prepare_log }}" - when: tripleo_overcloud_container_image_prepare_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_container_image_prepare_debug|bool - block: - - name: Show the command - debug: - var: _prepare_cmd - - - name: Show the environment - debug: - var: _prepare_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_container_image_prepare_home_dir }}/tripleo_overcloud_container_image_prepare.sh" - shell_command: "{{ _prepare_cmd }}" - shell_environment: "{{ _prepare_env }}" - when: tripleo_overcloud_container_image_prepare_generate_scripts|bool - -- name: Run overcloud container image prepare - shell: "{{ _prepare_cmd }}" # noqa 305 - environment: "{{ _prepare_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_container_image_prepare_home_dir }}" - register: tripleo_overcloud_container_image_prepare_result - async: "{{ tripleo_overcloud_container_image_prepare_timeout }}" - poll: "{{ tripleo_overcloud_container_image_prepare_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_container_image_prepare_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_container_image_prepare_result.stdout is defined - set_fact: - tripleo_overcloud_container_image_prepare_output: "{{ tripleo_overcloud_container_image_prepare_result.stdout }}" diff --git a/roles/tripleo_overcloud_container_image_prepare/tests/inventory b/roles/tripleo_overcloud_container_image_prepare/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_container_image_prepare/tests/test.yml b/roles/tripleo_overcloud_container_image_prepare/tests/test.yml deleted file mode 100644 index 1d395db..0000000 --- a/roles/tripleo_overcloud_container_image_prepare/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_container_image_prepare diff --git a/roles/tripleo_overcloud_container_image_tag_discover/README.md b/roles/tripleo_overcloud_container_image_tag_discover/README.md deleted file mode 100644 index d50a0ab..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/README.md +++ /dev/null @@ -1,59 +0,0 @@ -tripleo_overcloud_container_image_tag_discover -========= - -IMPORTANT: This role is for use in Queens only. This functionality was replaced -by the `openstack tripleo container image prepare` command in Rocky. - -A role to perform a tag discovery for a container. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_container_image_tag_discover_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_container_image_tag_discover_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_container_image_tag_discover_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_container_image_tag_discover_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_container_image_tag_discover_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_container_image_tag_discover_image`: (String) REQUIRED. Fully qualified name of the image to discover the tag. -* `tripleo_overcloud_container_image_tag_discover_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_container_image_tag_discover_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_container_image_tag_discover_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}/overcloud_container_image_tag_discover.log" -* `tripleo_overcloud_container_image_tag_discover_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_container_image_tag_discover_tag_from_label`: (String) Label template format -* `tripleo_overcloud_container_image_tag_discover_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_container_image_tag_discover_output`: (String) The command standard output. -* `tripleo_overcloud_container_image_tag_discover_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example tag discover playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Overcloud image tag discover - import_role: - name: tripleo_overcloud_container_image_tag_discover - var: - tripleo_overcloud_container_image_tag_discover_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_container_image_tag_discover/defaults/main.yml b/roles/tripleo_overcloud_container_image_tag_discover/defaults/main.yml deleted file mode 100644 index 718892b..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_container_image_tag_discover ---- -openstack_bin: openstack -tripleo_overcloud_container_image_tag_discover_debug: false -tripleo_overcloud_container_image_tag_discover_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_container_image_tag_discover_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_container_image_tag_discover_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_container_image_tag_discover_image: -tripleo_overcloud_container_image_tag_discover_log: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}/overcloud_container_image_tag_discover.log" -tripleo_overcloud_container_image_tag_discover_log_combine: true -tripleo_overcloud_container_image_tag_discover_log_output: true -tripleo_overcloud_container_image_tag_discover_poll: 10 -tripleo_overcloud_container_image_tag_discover_tag_from_label: -tripleo_overcloud_container_image_tag_discover_timeout: 3600 diff --git a/roles/tripleo_overcloud_container_image_tag_discover/meta/main.yml b/roles/tripleo_overcloud_container_image_tag_discover/meta/main.yml deleted file mode 100644 index 937e2a6..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_container_image_tag_discover - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_container_image_tag_discover - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/converge.yml b/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/converge.yml deleted file mode 100644 index 9ddf9fb..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/converge.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_container_image_tag_discover_log_output: false - tripleo_overcloud_container_image_tag_discover_poll: 1 - tripleo_overcloud_container_image_tag_discover_debug: true - tasks: - - - name: "Include tripleo_overcloud_container_image_tag_discover" - include_role: - name: "tripleo_overcloud_container_image_tag_discover" - - - name: Check role - assert: - that: - - tripleo_overcloud_container_image_tag_discover_output == "overcloud container image tag discover" - - - name: Assert "tripleo_overcloud_container_image_tag_discover_image" - include_role: - name: "tripleo_overcloud_container_image_tag_discover" - vars: - tripleo_overcloud_container_image_tag_discover_image: "docker.io/tripleomaster/foo:latest" - - - name: Check tripleo_overcloud_container_image_tag_discover_image - assert: - that: - - tripleo_overcloud_container_image_tag_discover_output == - "overcloud container image tag discover --image docker.io/tripleomaster/foo:latest" - - - name: Assert "tripleo_overcloud_container_image_tag_discover_tag_from_label" - include_role: - name: "tripleo_overcloud_container_image_tag_discover" - vars: - tripleo_overcloud_container_image_tag_discover_tag_from_label: '{version}-123' - - - name: Check tripleo_overcloud_container_image_tag_discover_tag_from_label - assert: - that: - - tripleo_overcloud_container_image_tag_discover_output == - "overcloud container image tag discover --tag-from-label '{version}-123'" diff --git a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/molecule.yml b/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/prepare.yml b/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_container_image_tag_discover/tasks/main.yml b/roles/tripleo_overcloud_container_image_tag_discover/tasks/main.yml deleted file mode 100644 index c82ef2d..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/tasks/main.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- -# tasks file for tripleo_overcloud_container_image_tag_discover -- name: Set overcloud container image tag discover faces - set_fact: - _discover_cmd: >- - {{ openstack_bin }} overcloud container image tag discover - {{ tripleo_overcloud_container_image_tag_discover_image | ternary('--image $DISCOVER_IMAGE', '') }} - {{ tripleo_overcloud_container_image_tag_discover_tag_from_label | ternary('--tag-from-label $DISCOVER_TAG_FROM_LABEL', '') }} - {{ tripleo_overcloud_container_image_tag_discover_log_output | ternary((">" ~ tripleo_overcloud_container_image_tag_discover_log), '') }} - {{ tripleo_overcloud_container_image_tag_discover_log_combine | ternary("2>&1", '') }} - _discover_env: - DISCOVER_IMAGE: "{{ tripleo_overcloud_container_image_tag_discover_image | quote }}" - DISCOVER_TAG_FROM_LABEL: "{{ tripleo_overcloud_container_image_tag_discover_tag_from_label | quote }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_container_image_tag_discover_log }}" - when: tripleo_overcloud_container_image_tag_discover_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_container_image_tag_discover_debug|bool - block: - - name: Show the command - debug: - var: _discover_cmd - - - name: Show the environment - debug: - var: _discover_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}/tripleo_overcloud_container_image_tag_discover.sh" - shell_command: "{{ _discover_cmd }}" - shell_environment: "{{ _discover_env }}" - when: tripleo_overcloud_container_image_tag_discover_generate_scripts|bool - -- name: Run overcloud image tag discover - shell: "{{ _discover_cmd }}" # noqa 305 - environment: "{{ _discover_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_container_image_tag_discover_home_dir }}" - register: tripleo_overcloud_container_image_tag_discover_result - async: "{{ tripleo_overcloud_container_image_tag_discover_timeout }}" - poll: "{{ tripleo_overcloud_container_image_tag_discover_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_container_image_tag_discover_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_container_image_tag_discover_result.stdout is defined - set_fact: - tripleo_overcloud_container_image_tag_discover_output: "{{ tripleo_overcloud_container_image_tag_discover_result.stdout }}" diff --git a/roles/tripleo_overcloud_container_image_tag_discover/tests/inventory b/roles/tripleo_overcloud_container_image_tag_discover/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_container_image_tag_discover/tests/test.yml b/roles/tripleo_overcloud_container_image_tag_discover/tests/test.yml deleted file mode 100644 index f7384ba..0000000 --- a/roles/tripleo_overcloud_container_image_tag_discover/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_container_image_tag_discover diff --git a/roles/tripleo_overcloud_container_image_upload/README.md b/roles/tripleo_overcloud_container_image_upload/README.md deleted file mode 100644 index 5a5bb2d..0000000 --- a/roles/tripleo_overcloud_container_image_upload/README.md +++ /dev/null @@ -1,61 +0,0 @@ -tripleo_overcloud_container_image_upload -======================================== - -IMPORTANT: This role is for use in Queens only. This functionality was replaced -by the `openstack tripleo container image prepare` command in Rocky. - -A role to perform an overcloud container image upload. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_container_image_upload_cleanup`: (String) Cleanup behaviour for local images -* `tripleo_overcloud_container_image_upload_config_files`: (List) REQUIRED. YAML config files specifying images. Default: [] -* `tripleo_overcloud_container_image_upload_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_container_image_upload_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_container_image_upload_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_container_image_upload_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_container_image_upload_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_container_image_upload_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_container_image_upload_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_container_image_upload_log`: (String) Path to a log file for the command output. Default: "{{ CHANGEME_home_dir }}/CHANGEME.log" -* `tripleo_overcloud_container_image_upload_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_container_image_upload_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_container_image_upload_output`: (String) The command standard output. -* `tripleo_overcloud_container_image_upload_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud container image upload - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: overcloud container image upload - import_role: - name: tripleo_overcloud_container_image_upload - var: - tripleo_overcloud_container_image_upload_config_files: - - /home/stack/containers.yaml - tripleo_overcloud_container_image_upload_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_container_image_upload/defaults/main.yml b/roles/tripleo_overcloud_container_image_upload/defaults/main.yml deleted file mode 100644 index 4fc5438..0000000 --- a/roles/tripleo_overcloud_container_image_upload/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_container_image_upload ---- -openstack_bin: openstack -tripleo_overcloud_container_image_upload_cleanup: -tripleo_overcloud_container_image_upload_config_files: [] -tripleo_overcloud_container_image_upload_debug: false -tripleo_overcloud_container_image_upload_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_container_image_upload_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_container_image_upload_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_container_image_upload_log: "{{ tripleo_overcloud_container_image_upload_home_dir }}/overcloud_container_image_upload.log" -tripleo_overcloud_container_image_upload_log_combine: true -tripleo_overcloud_container_image_upload_log_output: true -tripleo_overcloud_container_image_upload_poll: 10 -tripleo_overcloud_container_image_upload_timeout: 3600 diff --git a/roles/tripleo_overcloud_container_image_upload/meta/main.yml b/roles/tripleo_overcloud_container_image_upload/meta/main.yml deleted file mode 100644 index 30cfb1c..0000000 --- a/roles/tripleo_overcloud_container_image_upload/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_container_image_upload - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_container_image_upload - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_container_image_upload/molecule/default/converge.yml b/roles/tripleo_overcloud_container_image_upload/molecule/default/converge.yml deleted file mode 100644 index 4b52a90..0000000 --- a/roles/tripleo_overcloud_container_image_upload/molecule/default/converge.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_container_image_upload_log_output: false - tripleo_overcloud_container_image_upload_poll: 1 - tripleo_overcloud_container_image_upload_debug: true - tasks: - - - name: "Include tripleo_overcloud_container_image_upload" - include_role: - name: "tripleo_overcloud_container_image_upload" - - - name: Check role - assert: - that: - - tripleo_overcloud_container_image_upload_output == "overcloud container image upload" - - - name: Assert "tripleo_overcloud_container_image_upload_config_files" - include_role: - name: "tripleo_overcloud_container_image_upload" - vars: - tripleo_overcloud_container_image_upload_config_files: - - a.yaml - - b.yaml - - - name: Validate tripleo_overcloud_container_image_upload_config_files - assert: - that: - - tripleo_overcloud_container_image_upload_output == - "overcloud container image upload --config-file a.yaml --config-file b.yaml" - - - name: Assert "tripleo_overcloud_container_image_upload_cleanup" - include_role: - name: "tripleo_overcloud_container_image_upload" - vars: - tripleo_overcloud_container_image_upload_cleanup: full - - - name: Validate tripleo_overcloud_container_image_upload_cleanup - assert: - that: - - tripleo_overcloud_container_image_upload_output == - "overcloud container image upload --cleanup full" diff --git a/roles/tripleo_overcloud_container_image_upload/molecule/default/molecule.yml b/roles/tripleo_overcloud_container_image_upload/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_container_image_upload/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_container_image_upload/molecule/default/prepare.yml b/roles/tripleo_overcloud_container_image_upload/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_container_image_upload/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_container_image_upload/tasks/main.yml b/roles/tripleo_overcloud_container_image_upload/tasks/main.yml deleted file mode 100644 index 44eafc4..0000000 --- a/roles/tripleo_overcloud_container_image_upload/tasks/main.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -# tasks file for tripleo_overcloud_container_image_upload -- name: Set overcloud container image upload facts - set_fact: - _upload_cmd: >- - {{ openstack_bin }} overcloud container image upload - {{ tripleo_overcloud_container_image_upload_config_files | tripleo.operator.shell_arg_list('--config-file') }} - {{ tripleo_overcloud_container_image_upload_cleanup | ternary('--cleanup $UPLOAD_CLEANUP', '') }} - {{ tripleo_overcloud_container_image_upload_log_output | ternary((">" ~ tripleo_overcloud_container_image_upload_log), '') }} - {{ tripleo_overcloud_container_image_upload_log_combine | ternary("2>&1", '') }} - _upload_env: - UPLOAD_CLEANUP: "{{ tripleo_overcloud_container_image_upload_cleanup | quote }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_container_image_upload_log }}" - when: tripleo_overcloud_container_image_upload_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_container_image_upload_debug|bool - block: - - name: Show the command - debug: - var: _upload_cmd - - - name: Show the environment - debug: - var: _upload_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_container_image_upload_home_dir }}/tripleo_overcloud_container_image_upload.sh" - shell_command: "{{ _upload_cmd }}" - shell_environment: "{{ _upload_env }}" - when: tripleo_overcloud_container_image_upload_generate_scripts|bool - -- name: Run overcloud container image upload - shell: "{{ _upload_cmd }}" # noqa 305 - environment: "{{ _upload_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_container_image_upload_home_dir }}" - register: tripleo_overcloud_container_image_upload_result - async: "{{ tripleo_overcloud_container_image_upload_timeout }}" - poll: "{{ tripleo_overcloud_container_image_upload_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_container_image_upload_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_container_image_upload_result.stdout is defined - set_fact: - tripleo_overcloud_container_image_upload_output: "{{ tripleo_overcloud_container_image_upload_result.stdout }}" diff --git a/roles/tripleo_overcloud_container_image_upload/tests/inventory b/roles/tripleo_overcloud_container_image_upload/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_container_image_upload/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_container_image_upload/tests/test.yml b/roles/tripleo_overcloud_container_image_upload/tests/test.yml deleted file mode 100644 index d3e51e8..0000000 --- a/roles/tripleo_overcloud_container_image_upload/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_container_image_upload diff --git a/roles/tripleo_overcloud_credentials/README.md b/roles/tripleo_overcloud_credentials/README.md deleted file mode 100644 index cbe7983..0000000 --- a/roles/tripleo_overcloud_credentials/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_overcloud_credentials -============================= - -A role to run the credentials action to output the cloud rc files. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_credentials_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_credentials_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_credentials_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_credentials_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_credentials_directory`: (String) The directory to create the rc files in. Defaults to current working directory which will be `tripleo_overcloud_credentials_home_dir`. -* `tripleo_overcloud_credentials_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_credentials_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_credentials_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_credentials_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_credentials_home_dir }}/overcloud_credentials.log" -* `tripleo_overcloud_credentials_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_credentials_rc_file`. -* `tripleo_overcloud_credentials_plan`: (String) REQUIRED. The name of the plan you wan to create rc files for. -* `tripleo_overcloud_credentials_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_credentials_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_credentials_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_credentials_output`: (String) The command standard output. -* `tripleo_overcloud_credentials_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud credentials playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud credentials - import_role: - name: tripleo_overcloud_credentials - var: - tripleo_overcloud_credentials_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_credentials/defaults/main.yml b/roles/tripleo_overcloud_credentials/defaults/main.yml deleted file mode 100644 index 3412db2..0000000 --- a/roles/tripleo_overcloud_credentials/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -# defaults file for tripleo_overcloud_credentials ---- -openstack_bin: openstack -tripleo_overcloud_credentials_debug: false -tripleo_overcloud_credentials_directory: -tripleo_overcloud_credentials_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_credentials_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_credentials_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_credentials_log: "{{ tripleo_overcloud_credentials_home_dir }}/overcloud_credentials.log" -tripleo_overcloud_credentials_log_combine: true -tripleo_overcloud_credentials_log_output: true -tripleo_overcloud_credentials_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_credentials_plan: -tripleo_overcloud_credentials_poll: 10 -tripleo_overcloud_credentials_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_credentials_timeout: 3600 diff --git a/roles/tripleo_overcloud_credentials/meta/main.yml b/roles/tripleo_overcloud_credentials/meta/main.yml deleted file mode 100644 index 15bbee4..0000000 --- a/roles/tripleo_overcloud_credentials/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_credentials - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_credentials - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_credentials/molecule/default/converge.yml b/roles/tripleo_overcloud_credentials/molecule/default/converge.yml deleted file mode 100644 index 091610b..0000000 --- a/roles/tripleo_overcloud_credentials/molecule/default/converge.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_credentials_log_output: false - tripleo_overcloud_credentials_poll: 1 - tripleo_overcloud_credentials_debug: true - tasks: - - - name: "Include tripleo_overcloud_credentials" - include_role: - name: "tripleo_overcloud_credentials" - - - name: Check role - assert: - that: - - tripleo_overcloud_credentials_output == "overcloud credentials" - - - name: Assert "tripleo_overcloud_credentials_plan" - include_role: - name: "tripleo_overcloud_credentials" - vars: - tripleo_overcloud_credentials_plan: foo - - - name: Verify tripleo_overcloud_credentials_plan - assert: - that: - - tripleo_overcloud_credentials_output == "overcloud credentials foo" - - - name: Assert "tripleo_overcloud_credentials_directory" - include_role: - name: "tripleo_overcloud_credentials" - vars: - tripleo_overcloud_credentials_directory: /foo - - - name: Verify tripleo_overcloud_credentials_plan - assert: - that: - - tripleo_overcloud_credentials_output == "overcloud credentials --directory /foo" diff --git a/roles/tripleo_overcloud_credentials/molecule/default/molecule.yml b/roles/tripleo_overcloud_credentials/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_credentials/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_credentials/molecule/default/prepare.yml b/roles/tripleo_overcloud_credentials/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_credentials/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_credentials/tasks/main.yml b/roles/tripleo_overcloud_credentials/tasks/main.yml deleted file mode 100644 index fc54e15..0000000 --- a/roles/tripleo_overcloud_credentials/tasks/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# tasks file for tripleo_overcloud_credentials -- name: CHANGEME - set_fact: - _creds_cmd: >- - {{ tripleo_overcloud_credentials_os_cloud | ternary('', "source " ~ tripleo_overcloud_credentials_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud credentials - {{ tripleo_overcloud_credentials_directory | ternary('--directory $CREDENTIALS_DIR', '') }} - {{ tripleo_overcloud_credentials_plan }} - {{ tripleo_overcloud_credentials_log_output | ternary((">" ~ tripleo_overcloud_credentials_log), '') }} - {{ tripleo_overcloud_credentials_log_combine | ternary("2>&1", '') }} - _creds_env: - CREDENTIALS_DIR: "{{ tripleo_overcloud_credentials_directory }}" - OS_CLOUD: "{{ tripleo_overcloud_credentials_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_credentials_log }}" - when: tripleo_overcloud_credentials_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_credentials_debug|bool - block: - - name: Show the command - debug: - var: _creds_cmd - - - name: Show the environment - debug: - var: _creds_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_credentials_home_dir }}/tripleo_overcloud_credentials.sh" - shell_command: "{{ _creds_cmd }}" - shell_environment: "{{ _creds_env }}" - when: tripleo_overcloud_credentials_generate_scripts|bool - -- name: CHANGEME - shell: "{{ _creds_cmd }}" # noqa 305 - environment: "{{ _creds_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_credentials_home_dir }}" - register: tripleo_overcloud_credentials_result - async: "{{ tripleo_overcloud_credentials_timeout }}" - poll: "{{ tripleo_overcloud_credentials_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_credentials_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_credentials_result.stdout is defined - set_fact: - tripleo_overcloud_credentials_output: "{{ tripleo_overcloud_credentials_result.stdout }}" diff --git a/roles/tripleo_overcloud_credentials/tests/inventory b/roles/tripleo_overcloud_credentials/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_credentials/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_credentials/tests/test.yml b/roles/tripleo_overcloud_credentials/tests/test.yml deleted file mode 100644 index a096fe4..0000000 --- a/roles/tripleo_overcloud_credentials/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - _skeleton diff --git a/roles/tripleo_overcloud_delete/README.md b/roles/tripleo_overcloud_delete/README.md deleted file mode 100644 index cb5b806..0000000 --- a/roles/tripleo_overcloud_delete/README.md +++ /dev/null @@ -1,60 +0,0 @@ -tripleo_overcloud_delete -========= - -A role to perform an overcloud delete. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_delete_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_delete_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_delete_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_delete_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_delete_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_delete_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_delete_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_delete_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_delete_home_dir }}/overcloud_delete.log" -* `tripleo_overcloud_delete_name`: (String) REQUIRED. Name or ID of heat stack to delete. -* `tripleo_overcloud_delete_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_delete_rc_file`. -* `tripleo_overcloud_delete_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_delete_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_delete_skip_ipa_cleanup`: (Boolean) Skip IPA cleanup actions during overcloud removal. Default: false -* `tripleo_overcloud_delete_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 -* `tripleo_overcloud_delete_yes`: (Boolean) Flag to indicate if we should prompt for yes/no. Default: false - -Output Variables ----------------- - -* `tripleo_overcloud_delete_output`: (String) The command standard output. -* `tripleo_overcloud_delete_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud delete playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud delete - import_role: - name: tripleo_overcloud_delete - var: - tripleo_overcloud_delete_debug: true - tripleo_overcloud_delete_name: overcloud -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_delete/defaults/main.yml b/roles/tripleo_overcloud_delete/defaults/main.yml deleted file mode 100644 index 1c5d94b..0000000 --- a/roles/tripleo_overcloud_delete/defaults/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -# defaults file for tripleo_overcloud_delete ---- -openstack_bin: openstack -tripleo_overcloud_delete_debug: false -tripleo_overcloud_delete_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_delete_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_delete_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_delete_log: "{{ tripleo_overcloud_delete_home_dir }}/overcloud_delete.log" -tripleo_overcloud_delete_log_combine: true -tripleo_overcloud_delete_log_output: true -tripleo_overcloud_delete_name: -tripleo_overcloud_delete_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_delete_poll: 10 -tripleo_overcloud_delete_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_delete_skip_ipa_cleanup: false -tripleo_overcloud_delete_timeout: 3600 -tripleo_overcloud_delete_yes: true diff --git a/roles/tripleo_overcloud_delete/meta/main.yml b/roles/tripleo_overcloud_delete/meta/main.yml deleted file mode 100644 index ce5271d..0000000 --- a/roles/tripleo_overcloud_delete/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_delete - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_delete - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_delete/molecule/default/converge.yml b/roles/tripleo_overcloud_delete/molecule/default/converge.yml deleted file mode 100644 index 1b2568e..0000000 --- a/roles/tripleo_overcloud_delete/molecule/default/converge.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_delete_yes: false - tripleo_overcloud_delete_log_output: false - tripleo_overcloud_delete_poll: 1 - tripleo_overcloud_delete_debug: true - tasks: - - - name: "Include tripleo_overcloud_delete" - include_role: - name: "tripleo_overcloud_delete" - - - name: Check role - assert: - that: - - tripleo_overcloud_delete_output == "overcloud delete" - - - name: Validate "tripleo_overcloud_delete_name" - include_role: - name: "tripleo_overcloud_delete" - vars: - tripleo_overcloud_delete_name: foo - - - name: Assert tripleo_overcloud_delete_name - assert: - that: - - tripleo_overcloud_delete_output == "overcloud delete foo" - - - name: Validate "tripleo_overcloud_delete_yes" - include_role: - name: "tripleo_overcloud_delete" - vars: - tripleo_overcloud_delete_yes: true - - - name: Assert tripleo_overcloud_delete_yes - assert: - that: - - tripleo_overcloud_delete_output == "overcloud delete --yes" - - - name: Validate "tripleo_overcloud_delete_skip_ipa_cleanup" - include_role: - name: "tripleo_overcloud_delete" - vars: - tripleo_overcloud_delete_skip_ipa_cleanup: true - - - name: Assert tripleo_overcloud_delete_skip_ipa_cleanup - assert: - that: - - tripleo_overcloud_delete_output == "overcloud delete --skip-ipa-cleanup" diff --git a/roles/tripleo_overcloud_delete/molecule/default/molecule.yml b/roles/tripleo_overcloud_delete/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_delete/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_delete/molecule/default/prepare.yml b/roles/tripleo_overcloud_delete/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_delete/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_delete/tasks/main.yml b/roles/tripleo_overcloud_delete/tasks/main.yml deleted file mode 100644 index d736f86..0000000 --- a/roles/tripleo_overcloud_delete/tasks/main.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -# tasks file for tripleo_overcloud_delete -- name: Set overcloud delete facts - set_fact: - _delete_cmd: >- - {{ tripleo_overcloud_delete_os_cloud | ternary('', "source " ~ tripleo_overcloud_delete_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud delete - {{ tripleo_overcloud_delete_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_delete_skip_ipa_cleanup | ternary('--skip-ipa-cleanup', '') }} - {{ tripleo_overcloud_delete_name }} - {{ tripleo_overcloud_delete_log_output | ternary((">" ~ tripleo_overcloud_delete_log), '') }} - {{ tripleo_overcloud_delete_log_combine | ternary("2>&1", '') }} - _delete_env: - OS_CLOUD: "{{ tripleo_overcloud_delete_os_cloud }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_delete_log }}" - when: tripleo_overcloud_delete_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_delete_debug|bool - block: - - name: Show the command - debug: - var: _delete_cmd - - - name: Show the environment - debug: - var: _delete_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_delete_home_dir }}/tripleo_overcloud_delete.sh" - shell_command: "{{ _delete_cmd }}" - shell_environment: "{{ _delete_env }}" - when: tripleo_overcloud_delete_generate_scripts|bool - -- name: openstack overcloud delete - shell: "{{ _delete_cmd }}" # noqa 305 - environment: "{{ _delete_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_delete_home_dir }}" - register: tripleo_overcloud_delete_result - async: "{{ tripleo_overcloud_delete_timeout }}" - poll: "{{ tripleo_overcloud_delete_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_delete_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_delete_result.stdout is defined - set_fact: - tripleo_overcloud_delete_output: "{{ tripleo_overcloud_delete_result.stdout }}" diff --git a/roles/tripleo_overcloud_delete/tests/inventory b/roles/tripleo_overcloud_delete/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_delete/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_delete/tests/test.yml b/roles/tripleo_overcloud_delete/tests/test.yml deleted file mode 100644 index 1681952..0000000 --- a/roles/tripleo_overcloud_delete/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_delete diff --git a/roles/tripleo_overcloud_deploy/README.md b/roles/tripleo_overcloud_deploy/README.md deleted file mode 100644 index 6bbb2ae..0000000 --- a/roles/tripleo_overcloud_deploy/README.md +++ /dev/null @@ -1,106 +0,0 @@ -tripleo_overcloud_deploy -======================== - -A role to execute an overcloud deployment. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_deploy_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_deploy_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_deploy_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_deploy_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_deploy_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_deploy_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_deploy_deployment_python_interpreter`: (String) Path to a python interpreter for the deployment actions. -* `tripleo_overcloud_deploy_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_deploy_disable_protected_resource_types`: (Boolean) Flag to disable protected resource types. -* `tripleo_overcloud_deploy_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_deploy_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_deploy_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_deploy_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_deploy_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_deploy_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` isn't defined. -* `tripleo_overcloud_deploy_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_deploy_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_deploy_heat_type`: (String) Ephemeral heat type. -* `tripleo_overcloud_deploy_heat_container_api_image`: (String) Heat container api image. -* `tripleo_overcloud_deploy_heat_container_engine_image`: (String) Heat container engine image. -* `tripleo_overcloud_deploy_remove_heat`:(Boolean) Remove ephemeral heat. Deafult: false -* `tripleo_overcloud_deploy_skip_heat_pull`: (Boolean) When --heat-type is pod or container assume the container image has already been pulled. Default: false -* `tripleo_overcloud_deploy_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_deploy_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_deploy_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_deploy_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_deploy_home_dir }}/overcloud_deploy.log" -* `tripleo_overcloud_deploy_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_deploy_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_deploy_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_deploy_vip_file`: (String) File path to a virtual IPs file for the deployment. -* `tripleo_overcloud_deploy_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_deploy_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_deploy_no_proxy`: (String) String containing a comma separated list of hosts to skip proxying when http_proxy and https_proxy are used. -* `tripleo_overcloud_deploy_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_deploy_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_deploy_rc_file`. -* `tripleo_overcloud_deploy_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_deploy_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_deploy_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_deploy_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_deploy_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_deploy_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_deploy_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_deploy_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_deploy_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_deploy_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_deploy_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_deploy_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_deploy_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_deploy_skip_nodes_and_networks`: (Boolean) Flag to enable skip nodes and networks provisionning. Default: false -* `tripleo_overcloud_deploy_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_deploy_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_deploy_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates/ -* `tripleo_overcloud_deploy_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_deploy_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_deploy_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_deploy_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_deploy_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_deploy_output`: (String) The command standard output. -* `tripleo_overcloud_deploy_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud deploy execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud deploy - import_role: - name: tripleo_overcloud_deploy - vars: - tripleo_overcloud_deploy_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_deploy/defaults/main.yml b/roles/tripleo_overcloud_deploy/defaults/main.yml deleted file mode 100644 index ffac358..0000000 --- a/roles/tripleo_overcloud_deploy/defaults/main.yml +++ /dev/null @@ -1,57 +0,0 @@ -# defaults file for tripleo_overcloud_deploy ---- -openstack_bin: openstack -tripleo_overcloud_deploy_answers_file: -tripleo_overcloud_deploy_baremetal_deployment: -tripleo_overcloud_deploy_config_download: false -tripleo_overcloud_deploy_config_download_timeout: -tripleo_overcloud_deploy_debug: false -tripleo_overcloud_deploy_deployed_server: false -tripleo_overcloud_deploy_deployment_python_interpreter: -tripleo_overcloud_deploy_disable_password_generation: false -tripleo_overcloud_deploy_disable_protected_resource_types: false -tripleo_overcloud_deploy_disable_validations: false -tripleo_overcloud_deploy_dry_run: false -tripleo_overcloud_deploy_environment_dirs: [] -tripleo_overcloud_deploy_environment_files: [] -tripleo_overcloud_deploy_force_postconfig: false -tripleo_overcloud_deploy_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_deploy_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_deploy_heat_type: "" -tripleo_overcloud_deploy_heat_container_api_image: "" -tripleo_overcloud_deploy_heat_container_engine_image: "" -tripleo_overcloud_deploy_remove_heat: false -tripleo_overcloud_deploy_skip_heat_pull: false -tripleo_overcloud_deploy_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_deploy_inflight_validations: false -tripleo_overcloud_deploy_libvirt_type: -tripleo_overcloud_deploy_log: "{{ tripleo_overcloud_deploy_home_dir }}/overcloud_deploy.log" -tripleo_overcloud_deploy_log_combine: true -tripleo_overcloud_deploy_log_output: true -tripleo_overcloud_deploy_networks_file: -tripleo_overcloud_deploy_vip_file: -tripleo_overcloud_deploy_no_cleanup: false -tripleo_overcloud_deploy_no_config_download: false -tripleo_overcloud_deploy_no_proxy: -tripleo_overcloud_deploy_ntp_server: -tripleo_overcloud_deploy_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_deploy_output_dir: -tripleo_overcloud_deploy_overcloud_ssh_enable_timeout: -tripleo_overcloud_deploy_overcloud_ssh_key: -tripleo_overcloud_deploy_overcloud_ssh_network: -tripleo_overcloud_deploy_overcloud_ssh_port_timeout: -tripleo_overcloud_deploy_overcloud_ssh_user: -tripleo_overcloud_deploy_override_ansible_cfg: -tripleo_overcloud_deploy_plan_environment_file: -tripleo_overcloud_deploy_poll: 10 -tripleo_overcloud_deploy_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_deploy_roles_file: -tripleo_overcloud_deploy_run_validations: false -tripleo_overcloud_deploy_skip_deploy_identifier: false -tripleo_overcloud_deploy_skip_postconfig: false -tripleo_overcloud_deploy_stack: overcloud -tripleo_overcloud_deploy_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_deploy_timeout: 5700 -tripleo_overcloud_deploy_timeout_arg: 90 -tripleo_overcloud_deploy_validation_errors_nonfatal: false -tripleo_overcloud_deploy_validation_warnings_fatal: false diff --git a/roles/tripleo_overcloud_deploy/meta/main.yml b/roles/tripleo_overcloud_deploy/meta/main.yml deleted file mode 100644 index 83a188b..0000000 --- a/roles/tripleo_overcloud_deploy/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_failures - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_failures - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_deploy/molecule/default/converge.yml b/roles/tripleo_overcloud_deploy/molecule/default/converge.yml deleted file mode 100644 index dba2d4c..0000000 --- a/roles/tripleo_overcloud_deploy/molecule/default/converge.yml +++ /dev/null @@ -1,590 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_debug: true - tripleo_overcloud_deploy_log_output: false - tripleo_overcloud_deploy_log_combine: false - tripleo_overcloud_deploy_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_deploy" - include_role: - name: "tripleo_overcloud_deploy" - - - name: Check role - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_deploy_stack" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: test - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - - - name: Assert "tripleo_overcloud_deploy_stack" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --stack test" - - - name: Check parameter "tripleo_overcloud_deploy_libvirt_type" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_deploy_libvirt_type" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_deploy_ntp_server" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_deploy_ntp_server" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_deploy_no_proxy" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_deploy_no_proxy" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_deploy_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_deploy_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_deploy_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_deploy_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_deploy_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_deploy_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_deploy_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_deploy_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_deploy_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_deploy_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_deploy_environment_files" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_deploy_environment_files" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_environment_dirs" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_deploy_environment_dirs" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_deploy_roles_files" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_deploy_roles_files" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_networks_file" - include_role: - name: "tripleo_overcloud_deploy" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_deploy_networks_file" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_plan_environment_file" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_no_cleanup: true - - - name: Assert "tripleo_overcloud_deploy_no_cleanup" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --no-cleanup" - - - name: Check parameter "tripleo_overcloud_deploy_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_deploy_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_deploy_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_deploy_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_deploy_disable_validations" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_disable_validations: true - - - name: Assert "tripleo_overcloud_deploy_disable_validations" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --disable-validations" - - - name: Check parameter "tripleo_overcloud_deploy_inflight_validations" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_inflight_validations: true - - - name: Assert "tripleo_overcloud_deploy_inflight_validations" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --inflight-validations" - - - name: Check parameter "tripleo_overcloud_deploy_dry_run" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_dry_run: true - - - name: Assert "tripleo_overcloud_deploy_dry_run" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --dry-run" - - - name: Check parameter "tripleo_overcloud_deploy_run_validations" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_run_validations: true - - - name: Assert "tripleo_overcloud_deploy_run_validations" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --run-validations" - - - name: Check parameter "tripleo_overcloud_deploy_skip_postconfig" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_skip_postconfig: true - - - name: Assert "tripleo_overcloud_deploy_skip_postconfig" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_deploy_force_postconfig" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_force_postconfig: true - - - name: Assert "tripleo_overcloud_deploy_force_postconfig" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --force-postconfig" - - - name: Check parameter "tripleo_overcloud_deploy_answers_file" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_deploy_answers_file" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_disable_password_generation" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_disable_password_generation: true - - - name: Assert "tripleo_overcloud_deploy_disable_password_generation" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_deploy_deployed_server" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_deployed_server: true - - - name: Assert "tripleo_overcloud_deploy_deployed_server" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --deployed-server" - - - name: Check parameter "tripleo_overcloud_deploy_config_download" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_config_download: true - - - name: Assert "tripleo_overcloud_deploy_config_download" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --config-download" - - - name: Check parameter "tripleo_overcloud_deploy_no_config_download" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_no_config_download: true - - - name: Assert "tripleo_overcloud_deploy_no_config_download" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --no-config-download" - - - name: Check parameter "tripleo_overcloud_deploy_output_dir" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_deploy_output_dir" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_deploy_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_deploy_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_deploy_config_download_timeout" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_deploy_config_download_timeout" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_deploy_deployment_python_interpreter" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_deployment_python_interpreter: python3 - - - name: Assert "tripleo_overcloud_deploy_deployment_python_interpreter" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --deployment-python-interpreter python3" - - - name: Check parameter "tripleo_overcloud_deploy_baremetal_deployment" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_deploy_baremetal_deployment" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --baremetal-deployment bare.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_vip_file" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_vip_file: vips.yaml - - - name: Assert "tripleo_overcloud_deploy_vip_file" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --vip-file vips.yaml" - - - name: Check parameter "tripleo_overcloud_deploy_heat_type" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_heat_type: "pod" - - - name: Assert "tripleo_overcloud_deploy_heat_type" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --heat-type pod" - - - name: Check parameter "tripleo_overcloud_deploy_heat_container_api_image" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_heat_container_api_image: "foo.iso" - - - name: Assert "tripleo_vercloud_deploy_heat_container_api_image" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --heat-container-api-image foo.iso" - - - name: Check parameter "tripleo_overcloud_deploy_heat_container_engine_image" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_heat_container_engine_image: "foo.iso" - - - name: Assert "tripleo_overcloud_deploy_heat_container_engine_image" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --heat-container-engine-image foo.iso" - - - name: Check parameter "tripleo_overcloud_deploy_skip_heat_pull" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_skip_heat_pull: true - - - name: Assert "tripleo_vercloud_deploy_skip_heat_pull" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --skip-heat-pull" - - - name: Check parameter "tripleo_overcloud_deploy_remove_heat" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_remove_heat: true - - - name: Assert "tripleo_overcloud_deploy_remove_heat" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --rm-heat" - - - name: Check parameter "tripleo_overcloud_deploy_disable_protected_resource_types" - include_role: - name: "tripleo_overcloud_deploy" - vars: - tripleo_overcloud_deploy_stack: - tripleo_overcloud_deploy_templates: - tripleo_overcloud_deploy_timeout_arg: - tripleo_overcloud_deploy_disable_protected_resource_types: true - - - name: Assert "tripleo_overcloud_deploy_disable_protected_resource_types" - assert: - that: - - tripleo_overcloud_deploy_output == "overcloud deploy --disable-protected-resource-types" diff --git a/roles/tripleo_overcloud_deploy/molecule/default/molecule.yml b/roles/tripleo_overcloud_deploy/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_deploy/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_deploy/molecule/default/prepare.yml b/roles/tripleo_overcloud_deploy/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_deploy/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_deploy/tasks/main.yml b/roles/tripleo_overcloud_deploy/tasks/main.yml deleted file mode 100644 index ff6bd3f..0000000 --- a/roles/tripleo_overcloud_deploy/tasks/main.yml +++ /dev/null @@ -1,120 +0,0 @@ ---- -# tasks file for tripleo_overcloud_deploy -- name: Setup overcloud deploy facts - set_fact: - _deploy_cmd: >- - {{ tripleo_overcloud_deploy_os_cloud | ternary('', "source " ~ tripleo_overcloud_deploy_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud deploy - {{ tripleo_overcloud_deploy_templates | ternary('--templates $DEPLOY_TEMPLATES', '') }} - {{ tripleo_overcloud_deploy_stack | ternary('--stack $DEPLOY_STACK', '') }} - {{ tripleo_overcloud_deploy_timeout_arg | ternary('--timeout $DEPLOY_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_deploy_libvirt_type | ternary('--libvirt-type $DEPLOY_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_deploy_ntp_server | ternary('--ntp-server $DEPLOY_NTP_SERVER', '') }} - {{ tripleo_overcloud_deploy_no_proxy | ternary('--no-proxy $DEPLOY_NO_PROXY', '') }} - {{ tripleo_overcloud_deploy_overcloud_ssh_user | ternary('--overcloud-ssh-user $DEPLOY_OVERCLOUD_SSH_USER', '') }} - {{ tripleo_overcloud_deploy_overcloud_ssh_key | ternary('--overcloud-ssh-key $DEPLOY_OVERCLOUD_SSH_KEY', '') }} - {{ tripleo_overcloud_deploy_overcloud_ssh_network | ternary('--overcloud-ssh-network $DEPLOY_OVERCLOUD_SSH_NETWORK', '') }} - {{ tripleo_overcloud_deploy_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $DEPLOY_OVERCLOUD_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_deploy_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $DEPLOY_OVERCLOUD_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_deploy_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_deploy_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_deploy_roles_file | ternary('-r $DEPLOY_ROLES_FILE', '') }} - {{ tripleo_overcloud_deploy_networks_file | ternary('-n $DEPLOY_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_deploy_vip_file | ternary('--vip-file $DEPLOY_VIP_FILE', '') }} - {{ tripleo_overcloud_deploy_plan_environment_file | ternary('-p $DEPLOY_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_deploy_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_deploy_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_deploy_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_deploy_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_deploy_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_deploy_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_deploy_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_deploy_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_deploy_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_deploy_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_deploy_answers_file | ternary('--answers-file $DEPLOY_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_deploy_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_deploy_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_deploy_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_deploy_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_deploy_output_dir | ternary('--output-dir $DEPLOY_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_deploy_override_ansible_cfg | ternary('--override-ansible-cfg $DEPLOY_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_deploy_config_download_timeout | ternary('--config-download-timeout $DEPLOY_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_deploy_deployment_python_interpreter | ternary('--deployment-python-interpreter $DEPLOY_PYTHON_INTERPRETER', '') }} - {{ tripleo_overcloud_deploy_baremetal_deployment | ternary('--baremetal-deployment $DEPLOY_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_deploy_heat_type | ternary('--heat-type $DEPLOY_HEAT_TYPE', '') }} - {{ tripleo_overcloud_deploy_heat_container_api_image | ternary('--heat-container-api-image $DEPLOY_HEAT_CONTAINER_API_IMAGE', '') }} - {{ tripleo_overcloud_deploy_heat_container_engine_image | ternary('--heat-container-engine-image $DEPLOY_HEAT_CONTAINER_ENGINE_IMAGE', '') }} - {{ tripleo_overcloud_deploy_skip_heat_pull | ternary('--skip-heat-pull', '') }} - {{ tripleo_overcloud_deploy_remove_heat | ternary('--rm-heat', '') }} - {{ tripleo_overcloud_deploy_disable_protected_resource_types | ternary('--disable-protected-resource-types', '') }} - {{ tripleo_overcloud_deploy_log_output | ternary((">" ~ tripleo_overcloud_deploy_log), '') }} - {{ tripleo_overcloud_deploy_log_combine | ternary("2>&1", '') }} - _deploy_env: - DEPLOY_TEMPLATES: "{{ tripleo_overcloud_deploy_templates }}" - DEPLOY_STACK: "{{ tripleo_overcloud_deploy_stack }}" - DEPLOY_TIMEOUT_ARG: "{{ tripleo_overcloud_deploy_timeout_arg }}" - DEPLOY_LIBVIRT_TYPE: "{{ tripleo_overcloud_deploy_libvirt_type }}" - DEPLOY_NTP_SERVER: "{{ tripleo_overcloud_deploy_ntp_server }}" - DEPLOY_NO_PROXY: "{{ tripleo_overcloud_deploy_no_proxy }}" - DEPLOY_OVERCLOUD_SSH_USER: "{{ tripleo_overcloud_deploy_overcloud_ssh_user }}" - DEPLOY_OVERCLOUD_SSH_KEY: "{{ tripleo_overcloud_deploy_overcloud_ssh_key }}" - DEPLOY_OVERCLOUD_SSH_NETWORK: "{{ tripleo_overcloud_deploy_overcloud_ssh_network }}" - DEPLOY_OVERCLOUD_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_deploy_overcloud_ssh_enable_timeout }}" - DEPLOY_OVERCLOUD_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_deploy_overcloud_ssh_port_timeout }}" - DEPLOY_ROLES_FILE: "{{ tripleo_overcloud_deploy_roles_file }}" - DEPLOY_NETWORKS_FILE: "{{ tripleo_overcloud_deploy_networks_file }}" - DEPLOY_VIP_FILE: "{{ tripleo_overcloud_deploy_vip_file }}" - DEPLOY_PLAN_ENV_FILE: "{{ tripleo_overcloud_deploy_plan_environment_file }}" - DEPLOY_ANSWERS_FILE: "{{ tripleo_overcloud_deploy_answers_file }}" - DEPLOY_OUTPUT_DIR: "{{ tripleo_overcloud_deploy_output_dir }}" - DEPLOY_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_deploy_override_ansible_cfg }}" - DEPLOY_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_deploy_config_download_timeout }}" - DEPLOY_PYTHON_INTERPRETER: "{{ tripleo_overcloud_deploy_deployment_python_interpreter }}" - DEPLOY_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_deploy_baremetal_deployment }}" - DEPLOY_HEAT_TYPE: "{{ tripleo_overcloud_deploy_heat_type }}" - DEPLOY_HEAT_CONTAINER_API_IMAGE: "{{ tripleo_overcloud_deploy_heat_container_api_image }}" - DEPLOY_HEAT_CONTAINER_ENGINE_IMAGE: "{{ tripleo_overcloud_deploy_heat_container_engine_image }}" - OS_CLOUD: "{{ tripleo_overcloud_deploy_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_deploy_log }}" - when: tripleo_overcloud_deploy_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_deploy_debug|bool - block: - - name: Show the overcloud deploy command - debug: - var: _deploy_cmd - - - name: Show the overcloud deploy environment - debug: - var: _deploy_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_deploy_home_dir }}/overcloud_deploy_{{ tripleo_overcloud_deploy_stack }}.sh" - shell_command: "{{ _deploy_cmd }}" - shell_environment: "{{ _deploy_env }}" - when: tripleo_overcloud_deploy_generate_scripts|bool - -- name: Overcloud deploy - shell: "{{ _deploy_cmd }}" # noqa 305 - environment: "{{ _deploy_env }}" - args: - chdir: "{{ tripleo_overcloud_deploy_home_dir }}" - register: tripleo_overcloud_deploy_result - async: "{{ tripleo_overcloud_deploy_timeout }}" - poll: "{{ tripleo_overcloud_deploy_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_deploy_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_deploy_result.stdout is defined - set_fact: - tripleo_overcloud_deploy_output: "{{ tripleo_overcloud_deploy_result.stdout }}" diff --git a/roles/tripleo_overcloud_deploy/tests/inventory b/roles/tripleo_overcloud_deploy/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_deploy/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_deploy/tests/test.yml b/roles/tripleo_overcloud_deploy/tests/test.yml deleted file mode 100644 index 5226e79..0000000 --- a/roles/tripleo_overcloud_deploy/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_deploy diff --git a/roles/tripleo_overcloud_export/README.md b/roles/tripleo_overcloud_export/README.md deleted file mode 100644 index 157c9fc..0000000 --- a/roles/tripleo_overcloud_export/README.md +++ /dev/null @@ -1,61 +0,0 @@ -tripleo_overcloud_export -======================== - -A role to run an overcloud export. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_export_config_download_dir`: (String) Directory for config-download export data. -* `tripleo_overcloud_export_debug`: (Boolean) Flag to print out the command that is run. Default: False -* `tripleo_overcloud_export_force_overwrite`: (Boolean) Overwrite the output file if it exists. Default: false -* `tripleo_overcloud_export_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_export_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_export_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_export_home_dir`: (String) Location to runt he command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_export_no_password_excludes`: (Boolean) Do not exclude certain passwords from the export. Default: false -* `tripleo_overcloud_export_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_export_rc_file`. -* `tripleo_overcloud_export_output_file`: (String) Name of the output file for the stack data export. -* `tripleo_overcloud_export_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_export_stack`: (String) The name of the stack/plan. Default: overcloud - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_export_output`: (String) The command standard output. -* `tripleo_overcloud_export_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud export execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Get overcloud export - import_role: - name: tripleo_overcloud_export - vars: - tripleo_overcloud_export_stack: overcloud -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_export/defaults/main.yml b/roles/tripleo_overcloud_export/defaults/main.yml deleted file mode 100644 index db380f0..0000000 --- a/roles/tripleo_overcloud_export/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_export ---- -openstack_bin: openstack -tripleo_overcloud_export_config_download_dir: -tripleo_overcloud_export_debug: false -tripleo_overcloud_export_force_overwrite: false -tripleo_overcloud_export_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_export_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_export_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_export_no_password_excludes: false -tripleo_overcloud_export_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_export_output_file: -tripleo_overcloud_export_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_export_stack: overcloud diff --git a/roles/tripleo_overcloud_export/meta/main.yml b/roles/tripleo_overcloud_export/meta/main.yml deleted file mode 100644 index 6ae6454..0000000 --- a/roles/tripleo_overcloud_export/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_export - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_export - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_export/molecule/default/converge.yml b/roles/tripleo_overcloud_export/molecule/default/converge.yml deleted file mode 100644 index 5d9ef93..0000000 --- a/roles/tripleo_overcloud_export/molecule/default/converge.yml +++ /dev/null @@ -1,89 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_export" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - - - name: Check role - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack overcloud" - - - name: Check parameter "tripleo_overcloud_export_stack" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - tripleo_overcloud_export_stack: test - - - name: Assert "tripleo_overcloud_export_stack" - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack test" - - - name: Check parameter "tripleo_overcloud_export_output_file" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - tripleo_overcloud_export_output_file: test - - - name: Assert "tripleo_overcloud_export_output_file" - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack overcloud --output-file test" - - - name: Check parameter "tripleo_overcloud_export_force_overwrite" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - tripleo_overcloud_export_force_overwrite: true - - - name: Assert "tripleo_overcloud_export_force_overwrite" - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack overcloud --force-overwrite" - - - name: Check parameter "tripleo_overcloud_export_config_download_dir" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - tripleo_overcloud_export_config_download_dir: /tmp - - - name: Assert "tripleo_overcloud_export_config_download_dir" - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack overcloud --config-download-dir /tmp" - - - name: Check parameter "tripleo_overcloud_export_no_password_excludes" - include_role: - name: "tripleo_overcloud_export" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_export_debug: true - tripleo_overcloud_export_no_password_excludes: true - - - name: Assert "tripleo_overcloud_export_no_password_excludes" - assert: - that: - - tripleo_overcloud_export_output == "overcloud export --stack overcloud --no-password-excludes" diff --git a/roles/tripleo_overcloud_export/molecule/default/molecule.yml b/roles/tripleo_overcloud_export/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_export/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_export/molecule/default/prepare.yml b/roles/tripleo_overcloud_export/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_export/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_export/tasks/main.yml b/roles/tripleo_overcloud_export/tasks/main.yml deleted file mode 100644 index f81ac34..0000000 --- a/roles/tripleo_overcloud_export/tasks/main.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -# tasks file for tripleo_overcloud_export -- name: Setup overcloud export facts - set_fact: - _export_cmd: >- - {{ tripleo_overcloud_export_os_cloud | ternary('', "source " ~ tripleo_overcloud_export_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud export - {{ tripleo_overcloud_export_stack | ternary('--stack ' ~ tripleo_overcloud_export_stack, '') }} - {{ tripleo_overcloud_export_output_file | ternary('--output-file ' ~ tripleo_overcloud_export_output_file, '') }} - {{ tripleo_overcloud_export_force_overwrite | ternary('--force-overwrite', '') }} - {{ tripleo_overcloud_export_config_download_dir | ternary('--config-download-dir ' ~ tripleo_overcloud_export_config_download_dir, '') }} - {{ tripleo_overcloud_export_no_password_excludes | ternary('--no-password-excludes', '') }} - _export_env: - OS_CLOUD: "{{ tripleo_overcloud_export_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_export_debug|bool - block: - - name: Show the overcloud export command - debug: - var: _export_cmd - - - name: Show the overcloud export environment - debug: - var: _export_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_export_home_dir }}/tripleo_overcloud_export.sh" - shell_command: "{{ _export_cmd }}" - shell_environment: "{{ _export_env }}" - when: tripleo_overcloud_export_generate_scripts|bool - -- name: Overcloud export - shell: "{{ _export_cmd }}" # noqa 305 - environment: "{{ _export_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_export_home_dir }}" - register: tripleo_overcloud_export_result - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_export_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_export_result.stdout is defined - set_fact: - tripleo_overcloud_export_output: "{{ tripleo_overcloud_export_result.stdout }}" diff --git a/roles/tripleo_overcloud_export/tests/inventory b/roles/tripleo_overcloud_export/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_export/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_export/tests/test.yml b/roles/tripleo_overcloud_export/tests/test.yml deleted file mode 100644 index eaeacc2..0000000 --- a/roles/tripleo_overcloud_export/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_export diff --git a/roles/tripleo_overcloud_external_update_run/README.md b/roles/tripleo_overcloud_external_update_run/README.md deleted file mode 100644 index 96f9be5..0000000 --- a/roles/tripleo_overcloud_external_update_run/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_external_update_run -===================================== - -A role to execute an overcloud external update. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_external_update_run_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_external_update_run_extra_vars`: (List) List of key=value or yaml/json file ansible reference. Default: [] -* `tripleo_overcloud_external_update_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_external_update_run_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_external_update_run_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_external_update_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_external_update_run_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_external_update_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_external_update_run_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_external_update_run_home_dir }}/overcloud_external_update_run.log" -* `tripleo_overcloud_external_update_run_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_external_update_run_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_external_update_run_skip_tags`: (String) A string specifying the tag or a comma separated list of tags to be passed as --skip-tags to the playbook. -* `tripleo_overcloud_external_update_run_ssh_user`: (String) Username of user to be used as the ssh user. -* `tripleo_overcloud_external_update_run_stack`: (String) Name of the stack to deploy. -* `tripleo_overcloud_external_update_run_static_inventory`: (String) Path to an existing ansible inventory to use. -* `tripleo_overcloud_external_update_run_tags`: (String) A string specifying the tag or comma separate list of tags to be passed as --tags to the playbook. -* `tripleo_overcloud_external_update_run_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 5700 -* 'tripleo_overcloud_external_update_run_yes': (Boolean) Flag to skip the confirmation required before any update prepare operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_external_update_run_output`: (String) The command standard output. -* `tripleo_overcloud_external_update_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud external update run execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud external update run - import_role: - name: tripleo_overcloud_external_update_run -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_external_update_run/defaults/main.yml b/roles/tripleo_overcloud_external_update_run/defaults/main.yml deleted file mode 100644 index d0c66be..0000000 --- a/roles/tripleo_overcloud_external_update_run/defaults/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -# defaults file for tripleo_overcloud_external_update_run ---- -openstack_bin: openstack -tripleo_overcloud_external_update_run_debug: false -tripleo_overcloud_external_update_run_extra_vars: [] -tripleo_overcloud_external_update_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_external_update_run_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_external_update_run_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_external_update_run_log: "{{ tripleo_overcloud_external_update_run_home_dir }}/overcloud_external_update_run.log" -tripleo_overcloud_external_update_run_log_combine: true -tripleo_overcloud_external_update_run_log_output: true -tripleo_overcloud_external_update_run_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_external_update_run_playbook: [] -tripleo_overcloud_external_update_run_poll: 10 -tripleo_overcloud_external_update_run_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_external_update_run_skip_tags: -tripleo_overcloud_external_update_run_ssh_user: -tripleo_overcloud_external_update_run_stack: -tripleo_overcloud_external_update_run_static_inventory: -tripleo_overcloud_external_update_run_tags: -tripleo_overcloud_external_update_run_timeout: 5700 -tripleo_overcloud_external_update_run_yes: true diff --git a/roles/tripleo_overcloud_external_update_run/meta/main.yml b/roles/tripleo_overcloud_external_update_run/meta/main.yml deleted file mode 100644 index d462da3..0000000 --- a/roles/tripleo_overcloud_external_update_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_external_update_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_external_update_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_external_update_run/molecule/default/converge.yml b/roles/tripleo_overcloud_external_update_run/molecule/default/converge.yml deleted file mode 100644 index 3e5f3a8..0000000 --- a/roles/tripleo_overcloud_external_update_run/molecule/default/converge.yml +++ /dev/null @@ -1,103 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_external_update_run_debug: true - tripleo_overcloud_external_update_run_log_output: false - tripleo_overcloud_external_update_run_log_combine: false - tripleo_overcloud_external_update_run_poll: 1 - tripleo_overcloud_external_update_run_yes: false - tasks: - - - name: "Include tripleo_overcloud_external_update_run" - include_role: - name: "tripleo_overcloud_external_update_run" - - - name: Check role - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run" - - - name: Check parameter "tripleo_overcloud_external_update_run_extra_vars" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_extra_vars: - - 'foo=bar' - - '@foobar.yaml' - - - name: Assert "tripleo_overcloud_external_update_run_extra_vars" - assert: - that: - - tripleo_overcloud_external_update_run_output == - "overcloud external-update run --extra-vars foo=bar --extra-vars @foobar.yaml" - - - name: Check parameter "tripleo_overcloud_external_update_run_stack" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_stack: test - - - name: Assert "tripleo_overcloud_external_update_run_stack" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --stack test" - - - name: Check parameter "tripleo_overcloud_external_update_run_yes" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_yes: true - - - name: Assert "tripleo_overcloud_external_update_run_yes" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --yes" - - - name: Check parameter "tripleo_overcloud_external_update_run_tags" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_tags: test - - - name: Assert "tripleo_overcloud_external_update_run_tags" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --tags test" - - - name: Check parameter "tripleo_overcloud_external_update_run_skip_tags" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_skip_tags: test - - - name: Assert "tripleo_overcloud_external_update_run_skip_tags" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --skip-tags test" - - - name: Check parameter "tripleo_overcloud_external_update_run_ssh_user" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_ssh_user: username - - - name: Assert "tripleo_overcloud_external_update_run_ssh_user" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --ssh-user username" - - - name: Check parameter "tripleo_overcloud_external_update_run_static_inventory" - include_role: - name: "tripleo_overcloud_external_update_run" - vars: - tripleo_overcloud_external_update_run_static_inventory: /home/foo/inventory.yml - - - name: Assert "tripleo_overcloud_external_update_run_static_inventory" - assert: - that: - - tripleo_overcloud_external_update_run_output == "overcloud external-update run --static-inventory /home/foo/inventory.yml" diff --git a/roles/tripleo_overcloud_external_update_run/molecule/default/molecule.yml b/roles/tripleo_overcloud_external_update_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_external_update_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_external_update_run/molecule/default/prepare.yml b/roles/tripleo_overcloud_external_update_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_external_update_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_external_update_run/tasks/main.yml b/roles/tripleo_overcloud_external_update_run/tasks/main.yml deleted file mode 100644 index f8aff92..0000000 --- a/roles/tripleo_overcloud_external_update_run/tasks/main.yml +++ /dev/null @@ -1,65 +0,0 @@ ---- -# tasks file for tripleo_overcloud_external_update_run -- name: Setup overcloud external-update run facts - set_fact: - _update_run_cmd: >- - {{ tripleo_overcloud_external_update_run_os_cloud | ternary('', "source " ~ tripleo_overcloud_external_update_run_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud external-update run - {{ tripleo_overcloud_external_update_run_extra_vars | tripleo.operator.shell_arg_list('--extra-vars') }} - {{ tripleo_overcloud_external_update_run_ssh_user | ternary('--ssh-user $UPDATE_SSH_USER', '') }} - {{ tripleo_overcloud_external_update_run_tags | ternary('--tags $UPDATE_TAGS', '') }} - {{ tripleo_overcloud_external_update_run_skip_tags | ternary('--skip-tags $UPDATE_SKIP_TAGS', '') }} - {{ tripleo_overcloud_external_update_run_static_inventory | ternary('--static-inventory $UPDATE_STATIC_INVENTORY', '') }} - {{ tripleo_overcloud_external_update_run_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_external_update_run_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_external_update_run_log_output | ternary((">" ~ tripleo_overcloud_external_update_run_log), '') }} - {{ tripleo_overcloud_external_update_run_log_combine | ternary("2>&1", '') }} - _update_run_env: - OS_CLOUD: "{{ tripleo_overcloud_external_update_run_os_cloud }}" - UPDATE_SSH_USER: "{{ tripleo_overcloud_external_update_run_ssh_user }}" - UPDATE_TAGS: "{{ tripleo_overcloud_external_update_run_tags | quote }}" - UPDATE_SKIP_TAGS: "{{ tripleo_overcloud_external_update_run_skip_tags | quote }}" - UPDATE_STATIC_INVENTORY: "{{ tripleo_overcloud_external_update_run_static_inventory }}" - UPDATE_STACK: "{{ tripleo_overcloud_external_update_run_stack }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_external_update_run_log }}" - when: tripleo_overcloud_external_update_run_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_external_update_run_debug|bool - block: - - name: Show the overcloud external-update run command - debug: - var: _update_run_cmd - - - name: Show the overcloud external-update run environment - debug: - var: _update_run_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_external_update_run_home_dir }}/tripleo_overcloud_external_update_run.sh" - shell_command: "{{ _update_run_cmd }}" - shell_environment: "{{ _update_run_env }}" - when: tripleo_overcloud_external_update_run_generate_scripts|bool - -- name: Overcloud external-update run - shell: "{{ _update_run_cmd }}" # noqa 305 - environment: "{{ _update_run_env }}" - args: - chdir: "{{ tripleo_overcloud_external_update_run_home_dir }}" - register: tripleo_overcloud_external_update_run_result - async: "{{ tripleo_overcloud_external_update_run_timeout }}" - poll: "{{ tripleo_overcloud_external_update_run_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_external_update_run_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_external_update_run_result.stdout is defined - set_fact: - tripleo_overcloud_external_update_run_output: "{{ tripleo_overcloud_external_update_run_result.stdout }}" diff --git a/roles/tripleo_overcloud_external_update_run/tests/inventory b/roles/tripleo_overcloud_external_update_run/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_external_update_run/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_external_update_run/tests/test.yml b/roles/tripleo_overcloud_external_update_run/tests/test.yml deleted file mode 100644 index 5090a8f..0000000 --- a/roles/tripleo_overcloud_external_update_run/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_external_update_prepare diff --git a/roles/tripleo_overcloud_external_upgrade_run/README.md b/roles/tripleo_overcloud_external_upgrade_run/README.md deleted file mode 100644 index b84b646..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/README.md +++ /dev/null @@ -1,64 +0,0 @@ -tripleo_overcloud_external_upgrade_run -====================================== - -A role to execute an overcloud external upgrade. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_external_upgrade_run_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_external_upgrade_run_extra_vars`: (List) List of key=value or yaml/json file ansible reference. Default: [] -* `tripleo_overcloud_external_upgrade_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_external_upgrade_run_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_external_upgrade_run_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_external_upgrade_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_external_upgrade_run_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_external_upgrade_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_external_upgrade_run_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}/overcloud_external_upgrade_run.log" -* `tripleo_overcloud_external_upgrade_run_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_external_upgrade_run_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_external_upgrade_run_skip_tags`: (String) A string specifying the tag or a comma separated list of tags to be passed as --skip-tags to the playbook. -* `tripleo_overcloud_external_upgrade_run_ssh_user`: (String) Username of user to be used as the ssh user. -* `tripleo_overcloud_external_upgrade_run_stack`: (String) Name of the stack to deploy. -* `tripleo_overcloud_external_upgrade_run_static_inventory`: (String) Path to an existing ansible inventory to use. -* `tripleo_overcloud_external_upgrade_run_tags`: (String) A string specifying the tag or comma separate list of tags to be passed as --tags to the playbook. -* `tripleo_overcloud_external_upgrade_run_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 5700 - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_external_upgrade_run_output`: (String) The command standard output. -* `tripleo_overcloud_external_upgrade_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud external upgrade run execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud external upgrade run - import_role: - name: tripleo_overcloud_external_upgrade_run -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_external_upgrade_run/defaults/main.yml b/roles/tripleo_overcloud_external_upgrade_run/defaults/main.yml deleted file mode 100644 index 9509946..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/defaults/main.yml +++ /dev/null @@ -1,21 +0,0 @@ -# defaults file for tripleo_overcloud_external_upgrade_run ---- -openstack_bin: openstack -tripleo_overcloud_external_upgrade_run_debug: false -tripleo_overcloud_external_upgrade_run_extra_vars: [] -tripleo_overcloud_external_upgrade_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_external_upgrade_run_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_external_upgrade_run_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_external_upgrade_run_log: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}/overcloud_external_upgrade_run.log" -tripleo_overcloud_external_upgrade_run_log_combine: true -tripleo_overcloud_external_upgrade_run_log_output: true -tripleo_overcloud_external_upgrade_run_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_external_upgrade_run_playbook: [] -tripleo_overcloud_external_upgrade_run_poll: 10 -tripleo_overcloud_external_upgrade_run_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_external_upgrade_run_skip_tags: -tripleo_overcloud_external_upgrade_run_ssh_user: -tripleo_overcloud_external_upgrade_run_stack: -tripleo_overcloud_external_upgrade_run_static_inventory: -tripleo_overcloud_external_upgrade_run_tags: -tripleo_overcloud_external_upgrade_run_timeout: 5700 diff --git a/roles/tripleo_overcloud_external_upgrade_run/meta/main.yml b/roles/tripleo_overcloud_external_upgrade_run/meta/main.yml deleted file mode 100644 index a568c10..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_external_upgrade_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_external_upgrade_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/converge.yml b/roles/tripleo_overcloud_external_upgrade_run/molecule/default/converge.yml deleted file mode 100644 index 8a6aef8..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/converge.yml +++ /dev/null @@ -1,91 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_external_upgrade_run_debug: true - tripleo_overcloud_external_upgrade_run_log_output: false - tripleo_overcloud_external_upgrade_run_log_combine: false - tripleo_overcloud_external_upgrade_run_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_external_upgrade_run" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - - - name: Check role - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_extra_vars" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_extra_vars: - - 'foo=bar' - - '@foobar.yaml' - - - name: Assert "tripleo_overcloud_external_upgrade_run_extra_vars" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == - "overcloud external-upgrade run --extra-vars foo=bar --extra-vars @foobar.yaml" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_stack" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_stack: test - - - name: Assert "tripleo_overcloud_external_upgrade_run_stack" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run --stack test" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_tags" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_tags: test - - - name: Assert "tripleo_overcloud_external_upgrade_run_tags" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run --tags test" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_skip_tags" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_skip_tags: test - - - name: Assert "tripleo_overcloud_external_upgrade_run_skip_tags" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run --skip-tags test" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_ssh_user" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_ssh_user: username - - - name: Assert "tripleo_overcloud_external_upgrade_run_ssh_user" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run --ssh-user username" - - - name: Check parameter "tripleo_overcloud_external_upgrade_run_static_inventory" - include_role: - name: "tripleo_overcloud_external_upgrade_run" - vars: - tripleo_overcloud_external_upgrade_run_static_inventory: /home/foo/inventory.yml - - - name: Assert "tripleo_overcloud_external_upgrade_run_static_inventory" - assert: - that: - - tripleo_overcloud_external_upgrade_run_output == "overcloud external-upgrade run --static-inventory /home/foo/inventory.yml" diff --git a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/molecule.yml b/roles/tripleo_overcloud_external_upgrade_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/prepare.yml b/roles/tripleo_overcloud_external_upgrade_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_external_upgrade_run/tasks/main.yml b/roles/tripleo_overcloud_external_upgrade_run/tasks/main.yml deleted file mode 100644 index 9b55c00..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/tasks/main.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -# tasks file for tripleo_overcloud_external_upgrade_run -- name: Setup overcloud external-upgrade run facts - set_fact: - _upgrade_run_cmd: >- - {{ tripleo_overcloud_external_upgrade_run_os_cloud | ternary('', "source " ~ tripleo_overcloud_external_upgrade_run_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud external-upgrade run - {{ tripleo_overcloud_external_upgrade_run_extra_vars | tripleo.operator.shell_arg_list('--extra-vars') }} - {{ tripleo_overcloud_external_upgrade_run_ssh_user | ternary('--ssh-user $UPDATE_SSH_USER', '') }} - {{ tripleo_overcloud_external_upgrade_run_tags | ternary('--tags $UPDATE_TAGS', '') }} - {{ tripleo_overcloud_external_upgrade_run_skip_tags | ternary('--skip-tags $UPDATE_SKIP_TAGS', '') }} - {{ tripleo_overcloud_external_upgrade_run_static_inventory | ternary('--static-inventory $UPDATE_STATIC_INVENTORY', '') }} - {{ tripleo_overcloud_external_upgrade_run_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_external_upgrade_run_log_output | ternary((">" ~ tripleo_overcloud_external_upgrade_run_log), '') }} - {{ tripleo_overcloud_external_upgrade_run_log_combine | ternary("2>&1", '') }} - _upgrade_run_env: - OS_CLOUD: "{{ tripleo_overcloud_external_upgrade_run_os_cloud }}" - UPDATE_SSH_USER: "{{ tripleo_overcloud_external_upgrade_run_ssh_user }}" - UPDATE_TAGS: "{{ tripleo_overcloud_external_upgrade_run_tags | quote }}" - UPDATE_SKIP_TAGS: "{{ tripleo_overcloud_external_upgrade_run_skip_tags | quote }}" - UPDATE_STATIC_INVENTORY: "{{ tripleo_overcloud_external_upgrade_run_static_inventory }}" - UPDATE_STACK: "{{ tripleo_overcloud_external_upgrade_run_stack }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_external_upgrade_run_log }}" - when: tripleo_overcloud_external_upgrade_run_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_external_upgrade_run_debug|bool - block: - - name: Show the overcloud external-upgrade run command - debug: - var: _upgrade_run_cmd - - - name: Show the overcloud external-upgrade run environment - debug: - var: _upgrade_run_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}/tripleo_overcloud_external_upgrade_run.sh" - shell_command: "{{ _upgrade_run_cmd }}" - shell_environment: "{{ _upgrade_run_env }}" - when: tripleo_overcloud_external_upgrade_run_generate_scripts|bool - -- name: Overcloud external-upgrade run - shell: "{{ _upgrade_run_cmd }}" # noqa 305 - environment: "{{ _upgrade_run_env }}" - args: - chdir: "{{ tripleo_overcloud_external_upgrade_run_home_dir }}" - register: tripleo_overcloud_external_upgrade_run_result - async: "{{ tripleo_overcloud_external_upgrade_run_timeout }}" - poll: "{{ tripleo_overcloud_external_upgrade_run_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_external_upgrade_run_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_external_upgrade_run_result.stdout is defined - set_fact: - tripleo_overcloud_external_upgrade_run_output: "{{ tripleo_overcloud_external_upgrade_run_result.stdout }}" diff --git a/roles/tripleo_overcloud_external_upgrade_run/tests/inventory b/roles/tripleo_overcloud_external_upgrade_run/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_external_upgrade_run/tests/test.yml b/roles/tripleo_overcloud_external_upgrade_run/tests/test.yml deleted file mode 100644 index 10a366f..0000000 --- a/roles/tripleo_overcloud_external_upgrade_run/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_external_upgrade_prepare diff --git a/roles/tripleo_overcloud_failures/README.md b/roles/tripleo_overcloud_failures/README.md deleted file mode 100644 index 8974cd7..0000000 --- a/roles/tripleo_overcloud_failures/README.md +++ /dev/null @@ -1,52 +0,0 @@ -tripleo_overcloud_failures -========================== - -A role to get the deployment failures output. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_failures_debug`: (Boolean) Flag to print out the command that is run. Default: False -* `tripleo_overcloud_failures_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_failures_rc_file`. -* `tripleo_overcloud_failures_plan`: (String) The name of the stack/plan. Default: overcloud -* `tripleo_overcloud_failures_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_failures_output`: (String) The command standard output. -* `tripleo_overcloud_failures_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud failures execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Get overcloud failures - import_role: - name: tripleo_overcloud_failures -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_failures/defaults/main.yml b/roles/tripleo_overcloud_failures/defaults/main.yml deleted file mode 100644 index 5f826df..0000000 --- a/roles/tripleo_overcloud_failures/defaults/main.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# defaults file for tripleo_overcloud_failures -openstack_bin: openstack -tripleo_overcloud_failures_debug: false -tripleo_overcloud_failures_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_failures_plan: overcloud -tripleo_overcloud_failures_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_failures/meta/main.yml b/roles/tripleo_overcloud_failures/meta/main.yml deleted file mode 100644 index 83a188b..0000000 --- a/roles/tripleo_overcloud_failures/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_failures - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_failures - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_failures/molecule/default/converge.yml b/roles/tripleo_overcloud_failures/molecule/default/converge.yml deleted file mode 100644 index 41b8b40..0000000 --- a/roles/tripleo_overcloud_failures/molecule/default/converge.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_failures" - include_role: - name: "tripleo_overcloud_failures" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_failures_debug: true - - - name: Check role - assert: - that: - - tripleo_overcloud_failures_output == "overcloud failures --plan overcloud" - - - name: Check parameter "tripleo_overcloud_failures_plan" - include_role: - name: "tripleo_overcloud_failures" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_failures_debug: true - tripleo_overcloud_failures_plan: test - - - name: Assert "tripleo_overcloud_failures_plan" - assert: - that: - - tripleo_overcloud_failures_output == "overcloud failures --plan test" diff --git a/roles/tripleo_overcloud_failures/molecule/default/molecule.yml b/roles/tripleo_overcloud_failures/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_failures/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_failures/molecule/default/prepare.yml b/roles/tripleo_overcloud_failures/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_failures/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_failures/tasks/main.yml b/roles/tripleo_overcloud_failures/tasks/main.yml deleted file mode 100644 index ec2738a..0000000 --- a/roles/tripleo_overcloud_failures/tasks/main.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# tasks file for tripleo_overcloud_failures -- name: Setup overcloud failures facts - set_fact: - _failures_cmd: >- - {{ tripleo_overcloud_failures_os_cloud | ternary('', "source " ~ tripleo_overcloud_failures_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud failures - {{ tripleo_overcloud_failures_plan | ternary('--plan ' ~ tripleo_overcloud_failures_plan, '') }} - _failures_env: - OS_CLOUD: "{{ tripleo_overcloud_failures_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_failures_debug|bool - block: - - name: Show the overcloud failures command - debug: - var: _failures_cmd - - - name: Show the overcloud failures environment - debug: - var: _failures_env - -- name: Overcloud failures - shell: "{{ _failures_cmd }}" # noqa 305 - environment: "{{ _failures_env }}" - args: - executable: /bin/bash - register: tripleo_overcloud_failures_result - changed_when: false - -- name: Set output fact - when: - - tripleo_overcloud_failures_result.stdout is defined - set_fact: - tripleo_overcloud_failures_output: "{{ tripleo_overcloud_failures_result.stdout }}" diff --git a/roles/tripleo_overcloud_failures/tests/inventory b/roles/tripleo_overcloud_failures/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_failures/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_failures/tests/test.yml b/roles/tripleo_overcloud_failures/tests/test.yml deleted file mode 100644 index d08ad16..0000000 --- a/roles/tripleo_overcloud_failures/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_failures diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/README.md b/roles/tripleo_overcloud_ffwd_upgrade_converge/README.md deleted file mode 100644 index d757a02..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/README.md +++ /dev/null @@ -1,98 +0,0 @@ -tripleo_overcloud_upgrade_ffwd_converge -======================================= - -A role to execute an overcloud ffwd-upgrade converge. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_ffwd_upgrade_converge_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_ffwd_upgrade_converge_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_ffwd_upgrade_converge_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_upgrade_ffwd_converge_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_upgrade_ffwd_converge_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_upgrade_ffwd_converge_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_upgrade_ffwd_converge_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_upgrade_ffwd_converge_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_upgrade_ffwd_converge_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_upgrade_ffwd_converge_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_ffwd_converge_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_upgrade_ffwd_converge_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_upgrade_ffwd_converge_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_ffwd_converge_home_dir }}/overcloud_upgrade_ffwd_converge.log" -* `tripleo_overcloud_upgrade_ffwd_converge_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_upgrade_ffwd_converge_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_no_proxy`: (String) String containing a comma separated list of hosts to skip proxing when http_proxy and https_proxy are used. -* `tripleo_overcloud_upgrade_ffwd_converge_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_ffwd_converge_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_upgrade_ffwd_converge_rc_file`. -* `tripleo_overcloud_upgrade_ffwd_converge_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_upgrade_ffwd_converge_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_upgrade_ffwd_converge_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_upgrade_ffwd_converge_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_ffwd_converge_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_upgrade_ffwd_converge_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_ffwd_converge_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_upgrade_ffwd_converge_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_upgrade_ffwd_converge_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_upgrade_ffwd_converge_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_upgrade_ffwd_converge_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_upgrade_ffwd_converge_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_upgrade_ffwd_converge_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_overcloud_upgrade_ffwd_converge_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_upgrade_ffwd_converge_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_upgrade_ffwd_converge_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_upgrade_ffwd_converge_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false -* `tripleo_overcloud_upgrade_ffwd_converge_yes`: (Boolean) Flag to skip the confirmation required before any ffwd-upgrade operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_upgrade_ffwd_converge_output`: (String) The command standard output. -* `tripleo_overcloud_upgrade_ffwd_converge_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud ffwd-upgrade converge execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud ffwd-upgrade converge - import_role: - name: tripleo_overcloud_upgrade_ffwd_converge - vars: - tripleo_overcloud_upgrade_ffwd_converge_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/defaults/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/defaults/main.yml deleted file mode 100644 index 90c5dc0..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/defaults/main.yml +++ /dev/null @@ -1,50 +0,0 @@ -# defaults file for tripleo_overcloud_ffwd_upgrade_converge ---- -openstack_bin: openstack -tripleo_overcloud_ffwd_upgrade_converge_answers_file: -tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment: -tripleo_overcloud_ffwd_upgrade_converge_config_download: false -tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout: -tripleo_overcloud_ffwd_upgrade_converge_debug: false -tripleo_overcloud_ffwd_upgrade_converge_deployed_server: false -tripleo_overcloud_ffwd_upgrade_converge_disable_password_generation: false -tripleo_overcloud_ffwd_upgrade_converge_disable_validations: false -tripleo_overcloud_ffwd_upgrade_converge_dry_run: false -tripleo_overcloud_ffwd_upgrade_converge_environment_dirs: [] -tripleo_overcloud_ffwd_upgrade_converge_environment_files: [] -tripleo_overcloud_ffwd_upgrade_converge_force_postconfig: false -tripleo_overcloud_ffwd_upgrade_converge_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_ffwd_upgrade_converge_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_ffwd_upgrade_converge_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_ffwd_upgrade_converge_inflight_validations: false -tripleo_overcloud_ffwd_upgrade_converge_libvirt_type: -tripleo_overcloud_ffwd_upgrade_converge_log: "{{ tripleo_overcloud_ffwd_upgrade_converge_home_dir }}/overcloud_ffwd_upgrade_converge.log" -tripleo_overcloud_ffwd_upgrade_converge_log_combine: true -tripleo_overcloud_ffwd_upgrade_converge_log_output: true -tripleo_overcloud_ffwd_upgrade_converge_networks_file: -tripleo_overcloud_ffwd_upgrade_converge_no_cleanup: false -tripleo_overcloud_ffwd_upgrade_converge_no_config_download: false -tripleo_overcloud_ffwd_upgrade_converge_no_proxy: -tripleo_overcloud_ffwd_upgrade_converge_ntp_server: -tripleo_overcloud_ffwd_upgrade_converge_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_ffwd_upgrade_converge_output_dir: -tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout: -tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key: -tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network: -tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout: -tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user: -tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg: -tripleo_overcloud_ffwd_upgrade_converge_plan_environment_file: -tripleo_overcloud_ffwd_upgrade_converge_poll: 10 -tripleo_overcloud_ffwd_upgrade_converge_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_ffwd_upgrade_converge_roles_file: -tripleo_overcloud_ffwd_upgrade_converge_run_validations: false -tripleo_overcloud_ffwd_upgrade_converge_skip_deploy_identifier: false -tripleo_overcloud_ffwd_upgrade_converge_skip_postconfig: false -tripleo_overcloud_ffwd_upgrade_converge_stack: overcloud -tripleo_overcloud_ffwd_upgrade_converge_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_ffwd_upgrade_converge_timeout: 5700 -tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: 90 -tripleo_overcloud_ffwd_upgrade_converge_validation_errors_nonfatal: false -tripleo_overcloud_ffwd_upgrade_converge_validation_warnings_fatal: false -tripleo_overcloud_ffwd_upgrade_converge_yes: true diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/meta/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/meta/main.yml deleted file mode 100644 index bd05725..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_ffwd_upgrade_converge - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_ffwd_upgrade_converge - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/converge.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/converge.yml deleted file mode 100644 index dfc3946..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/converge.yml +++ /dev/null @@ -1,489 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_ffwd_upgrade_converge_debug: true - tripleo_overcloud_ffwd_upgrade_converge_yes: false - tripleo_overcloud_ffwd_upgrade_converge_log_output: false - tripleo_overcloud_ffwd_upgrade_converge_log_combine: false - tripleo_overcloud_ffwd_upgrade_converge_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_ffwd_upgrade_converge" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - - - name: Check role - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == - "overcloud ffwd-upgrade converge --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_stack" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: test - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_stack" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --stack test" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_libvirt_type" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_libvirt_type" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_ntp_server" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_ntp_server" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_no_proxy" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_no_proxy" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_environment_files" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_environment_files" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_environment_dirs" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_environment_dirs" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_roles_files" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_roles_files" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_networks_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_networks_file" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_plan_environment_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_no_cleanup: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_no_cleanup" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --no-cleanup" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_disable_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_disable_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_disable_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --disable-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_inflight_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_inflight_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_inflight_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --inflight-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_dry_run" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_dry_run: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_dry_run" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --dry-run" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_run_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_run_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_run_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --run-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_skip_postconfig" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_skip_postconfig: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_skip_postconfig" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_force_postconfig" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_force_postconfig: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_force_postconfig" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --force-postconfig" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_answers_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_answers_file" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_disable_password_generation" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_disable_password_generation: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_disable_password_generation" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_deployed_server" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_deployed_server: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_deployed_server" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --deployed-server" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_config_download" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_config_download: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_config_download" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --config-download" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_no_config_download" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_no_config_download: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_no_config_download" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --no-config-download" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_output_dir" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_output_dir" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --baremetal-deployment bare.yaml" - - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_converge_yes" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_converge" - vars: - tripleo_overcloud_ffwd_upgrade_converge_stack: - tripleo_overcloud_ffwd_upgrade_converge_templates: - tripleo_overcloud_ffwd_upgrade_converge_timeout_arg: - tripleo_overcloud_ffwd_upgrade_converge_yes: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_converge_yes" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_converge_output == "overcloud ffwd-upgrade converge --yes" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/molecule.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/prepare.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/tasks/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/tasks/main.yml deleted file mode 100644 index 108af25..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/tasks/main.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -# tasks file for tripleo_overcloud_ffwd_upgrade_converge -- name: Setup overcloud ffwd-upgrade converge facts - set_fact: - _upgrade_converge_cmd: >- - {{ tripleo_overcloud_ffwd_upgrade_converge_os_cloud | ternary('', "source " ~ tripleo_overcloud_ffwd_upgrade_converge_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud ffwd-upgrade converge - {{ tripleo_overcloud_ffwd_upgrade_converge_templates | ternary('--templates $FFWD_TEMPLATES', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_stack | ternary('--stack $FFWD_STACK', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_timeout_arg | ternary('--timeout $FFWD_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_libvirt_type | ternary('--libvirt-type $FFWD_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_ntp_server | ternary('--ntp-server $FFWD_NTP_SERVER', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_no_proxy | ternary('--no-proxy $FFWD_NO_PROXY', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user | ternary('--overcloud-ssh-user $FFWD_OC_SSH_USER', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key | ternary('--overcloud-ssh-key $FFWD_OC_SSH_KEY', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network | ternary('--overcloud-ssh-network $FFWD_OC_SSH_NETWORK', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $FFWD_OC_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $FFWD_OC_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_roles_file | ternary('-r $FFWD_ROLES_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_networks_file | ternary('-n $FFWD_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_plan_environment_file | ternary('-p $FFWD_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_answers_file | ternary('--answers-file $FFWD_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_output_dir | ternary('--output-dir $FFWD_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg | ternary('--override-ansible-cfg $FFWD_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout | ternary('--config-download-timeout $FFWD_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment | ternary('--baremetal-deployment $FFWD_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_log_output | ternary((">" ~ tripleo_overcloud_ffwd_upgrade_converge_log), '') }} - {{ tripleo_overcloud_ffwd_upgrade_converge_log_combine | ternary("2>&1", '') }} - _upgrade_converge_env: - FFWD_TEMPLATES: "{{ tripleo_overcloud_ffwd_upgrade_converge_templates }}" - FFWD_STACK: "{{ tripleo_overcloud_ffwd_upgrade_converge_stack }}" - FFWD_TIMEOUT_ARG: "{{ tripleo_overcloud_ffwd_upgrade_converge_timeout_arg }}" - FFWD_LIBVIRT_TYPE: "{{ tripleo_overcloud_ffwd_upgrade_converge_libvirt_type }}" - FFWD_NTP_SERVER: "{{ tripleo_overcloud_ffwd_upgrade_converge_ntp_server }}" - FFWD_NO_PROXY: "{{ tripleo_overcloud_ffwd_upgrade_converge_no_proxy }}" - FFWD_OC_SSH_USER: "{{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_user }}" - FFWD_OC_SSH_KEY: "{{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_key }}" - FFWD_OC_SSH_NETWORK: "{{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_network }}" - FFWD_OC_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_enable_timeout }}" - FFWD_OC_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_converge_overcloud_ssh_port_timeout }}" - FFWD_ROLES_FILE: "{{ tripleo_overcloud_ffwd_upgrade_converge_roles_file }}" - FFWD_NETWORKS_FILE: "{{ tripleo_overcloud_ffwd_upgrade_converge_networks_file }}" - FFWD_PLAN_ENV_FILE: "{{ tripleo_overcloud_ffwd_upgrade_converge_plan_environment_file }}" - FFWD_ANSWERS_FILE: "{{ tripleo_overcloud_ffwd_upgrade_converge_answers_file }}" - FFWD_OUTPUT_DIR: "{{ tripleo_overcloud_ffwd_upgrade_converge_output_dir }}" - FFWD_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_ffwd_upgrade_converge_override_ansible_cfg }}" - FFWD_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_converge_config_download_timeout }}" - FFWD_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_ffwd_upgrade_converge_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_ffwd_upgrade_converge_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_ffwd_upgrade_converge_log }}" - when: tripleo_overcloud_ffwd_upgrade_converge_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_ffwd_upgrade_converge_debug|bool - block: - - name: Show the overcloud ffwd-upgrade converge command - debug: - var: _upgrade_converge_cmd - - - name: Show the overcloud ffwd-upgrade converge environment - debug: - var: _upgrade_converge_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_ffwd_upgrade_converge_home_dir }}/tripleo_overcloud_ffwd_upgrade_converge.sh" - shell_command: "{{ _upgrade_converage_cmd }}" - shell_environment: "{{ _upgrade_converage_env }}" - when: tripleo_overcloud_ffwd_upgrade_converge_generate_scripts|bool - -- name: overcloud ffwd-upgrade converge - shell: "{{ _upgrade_converge_cmd }}" # noqa 305 - environment: "{{ _upgrade_converge_env }}" - args: - chdir: "{{ tripleo_overcloud_ffwd_upgrade_converge_home_dir }}" - register: tripleo_overcloud_ffwd_upgrade_converge_result - async: "{{ tripleo_overcloud_ffwd_upgrade_converge_timeout }}" - poll: "{{ tripleo_overcloud_ffwd_upgrade_converge_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_ffwd_upgrade_converge_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_ffwd_upgrade_converge_result.stdout is defined - set_fact: - tripleo_overcloud_ffwd_upgrade_converge_output: "{{ tripleo_overcloud_ffwd_upgrade_converge_result.stdout }}" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/inventory b/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/test.yml b/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/test.yml deleted file mode 100644 index 5232e9e..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_converge/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_ffwd_upgrade_converge diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/README.md b/roles/tripleo_overcloud_ffwd_upgrade_prepare/README.md deleted file mode 100644 index 499c0cb..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/README.md +++ /dev/null @@ -1,99 +0,0 @@ -tripleo_overcloud_ffwd_upgrade_prepare -====================================== - -A role to execute an overcloud ffwd upgrade prepare. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_ffwd_upgrade_prepare_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_ffwd_upgrade_prepare_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_ffwd_upgrade_prepare_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_ffwd_upgrade_prepare_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_ffwd_upgrade_prepare_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_ffwd_upgrade_prepare_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_ffwd_upgrade_prepare_home_dir }}/overcloud_ffwd_upgrade_prepare.log" -* `tripleo_overcloud_ffwd_upgrade_prepare_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_ffwd_upgrade_prepare_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_ffwd_upgrade_prepare_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_ffwd_upgrade_prepare_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_no_proxy`: (String) String containing a comma separated list of hosts to skip proxing when http_proxy and https_proxy are used. -* `tripleo_overcloud_ffwd_upgrade_prepare_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_ffwd_upgrade_prepare_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_ffwd_upgrade_prepare_rc_file`. -* `tripleo_overcloud_ffwd_upgrade_prepare_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_ffwd_upgrade_prepare_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_ffwd_upgrade_prepare_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_ffwd_upgrade_prepare_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_ffwd_upgrade_prepare_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_ffwd_upgrade_prepare_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_ffwd_upgrade_prepare_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_ffwd_upgrade_prepare_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_ffwd_upgrade_prepare_upgrade_plan_only`: (Boolean) Flag to enable only updating the plan. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false -* `tripleo_overcloud_ffwd_upgrade_prepare_yes`: (Boolean) Flag to skip the confirmation required before actions. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_ffwd_upgrade_prepare_output`: (String) The command standard output. -* `tripleo_overcloud_ffwd_upgrade_prepare_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud ffwd upgrade prepare execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud ffwd upgrade prepare - import_role: - name: tripleo_overcloud_ffwd_upgrade_prepare - vars: - tripleo_overcloud_ffwd_upgrade_prepare_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/defaults/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/defaults/main.yml deleted file mode 100644 index ed7c94d..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/defaults/main.yml +++ /dev/null @@ -1,50 +0,0 @@ -# defaults file for tripleo_overcloud_ffwd_upgrade_prepare ---- -openstack_bin: openstack -tripleo_overcloud_ffwd_upgrade_prepare_answers_file: -tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment: -tripleo_overcloud_ffwd_upgrade_prepare_config_download: false -tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout: -tripleo_overcloud_ffwd_upgrade_prepare_debug: false -tripleo_overcloud_ffwd_upgrade_prepare_deployed_server: false -tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation: false -tripleo_overcloud_ffwd_upgrade_prepare_disable_validations: false -tripleo_overcloud_ffwd_upgrade_prepare_dry_run: false -tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs: [] -tripleo_overcloud_ffwd_upgrade_prepare_environment_files: [] -tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig: false -tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_ffwd_upgrade_prepare_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations: false -tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type: -tripleo_overcloud_ffwd_upgrade_prepare_log: "{{ tripleo_overcloud_ffwd_upgrade_prepare_home_dir }}/overcloud_ffwd_upgrade_prepare.log" -tripleo_overcloud_ffwd_upgrade_prepare_log_combine: true -tripleo_overcloud_ffwd_upgrade_prepare_log_output: true -tripleo_overcloud_ffwd_upgrade_prepare_networks_file: -tripleo_overcloud_ffwd_upgrade_prepare_no_cleanup: false -tripleo_overcloud_ffwd_upgrade_prepare_no_config_download: false -tripleo_overcloud_ffwd_upgrade_prepare_no_proxy: -tripleo_overcloud_ffwd_upgrade_prepare_ntp_server: -tripleo_overcloud_ffwd_upgrade_prepare_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_ffwd_upgrade_prepare_output_dir: -tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout: -tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key: -tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network: -tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout: -tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user: -tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg: -tripleo_overcloud_ffwd_upgrade_prepare_plan_environment_file: -tripleo_overcloud_ffwd_upgrade_prepare_poll: 10 -tripleo_overcloud_ffwd_upgrade_prepare_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_ffwd_upgrade_prepare_roles_file: -tripleo_overcloud_ffwd_upgrade_prepare_run_validations: false -tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier: false -tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig: false -tripleo_overcloud_ffwd_upgrade_prepare_stack: overcloud -tripleo_overcloud_ffwd_upgrade_prepare_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_ffwd_upgrade_prepare_timeout: 5700 -tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: 90 -tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal: false -tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal: false -tripleo_overcloud_ffwd_upgrade_prepare_yes: true diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/meta/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/meta/main.yml deleted file mode 100644 index 98e4d99..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_ffwd_upgrade_prepare - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_ffwd_upgrade_prepare - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/converge.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/converge.yml deleted file mode 100644 index 7153685..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/converge.yml +++ /dev/null @@ -1,488 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_ffwd_upgrade_prepare_debug: true - tripleo_overcloud_ffwd_upgrade_prepare_yes: false - tripleo_overcloud_ffwd_upgrade_prepare_log_output: false - tripleo_overcloud_ffwd_upgrade_prepare_log_combine: false - tripleo_overcloud_ffwd_upgrade_prepare_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_ffwd_upgrade_prepare" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - - - name: Check role - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == - "overcloud ffwd-upgrade prepare --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_stack" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: test - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_stack" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --stack test" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_ntp_server" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_ntp_server" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_no_proxy" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_no_proxy" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_environment_files" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_environment_files" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_roles_files" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_roles_files" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_networks_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_networks_file" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_plan_environment_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_no_cleanup: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_no_cleanup" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --no-cleanup" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_disable_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_disable_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_disable_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --disable-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --inflight-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_dry_run" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_dry_run: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_dry_run" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --dry-run" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_run_validations" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_run_validations: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_run_validations" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --run-validations" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --force-postconfig" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_answers_file" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_answers_file" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_deployed_server" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_deployed_server: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_deployed_server" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --deployed-server" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_config_download" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_config_download: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_config_download" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --config-download" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_no_config_download" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_no_config_download: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_no_config_download" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --no-config-download" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_output_dir" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_output_dir" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --baremetal-deployment bare.yaml" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_prepare_yes" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_prepare" - vars: - tripleo_overcloud_ffwd_upgrade_prepare_stack: - tripleo_overcloud_ffwd_upgrade_prepare_templates: - tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg: - tripleo_overcloud_ffwd_upgrade_prepare_yes: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_prepare_yes" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_prepare_output == "overcloud ffwd-upgrade prepare --yes" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/molecule.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/prepare.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tasks/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/tasks/main.yml deleted file mode 100644 index 6b8ea31..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tasks/main.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -# tasks file for tripleo_overcloud_ffwd_upgrade_prepare -- name: Setup overcloud ffwd-upgrade prepare facts - set_fact: - _upgrade_prepare_cmd: >- - {{ tripleo_overcloud_ffwd_upgrade_prepare_os_cloud | ternary('', "source " ~ tripleo_overcloud_ffwd_upgrade_prepare_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud ffwd-upgrade prepare - {{ tripleo_overcloud_ffwd_upgrade_prepare_templates | ternary('--templates $FFWD_TEMPLATES', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_stack | ternary('--stack $FFWD_STACK', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg | ternary('--timeout $FFWD_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type | ternary('--libvirt-type $FFWD_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_ntp_server | ternary('--ntp-server $FFWD_NTP_SERVER', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_no_proxy | ternary('--no-proxy $FFWD_NO_PROXY', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user | ternary('--overcloud-ssh-user $FFWD_OC_SSH_USER', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key | ternary('--overcloud-ssh-key $FFWD_OC_SSH_KEY', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network | ternary('--overcloud-ssh-network $FFWD_OC_SSH_NETWORK', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $FFWD_OC_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $FFWD_OC_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_roles_file | ternary('-r $FFWD_ROLES_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_networks_file | ternary('-n $FFWD_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_plan_environment_file | ternary('-p $FFWD_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_answers_file | ternary('--answers-file $FFWD_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_output_dir | ternary('--output-dir $FFWD_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg | ternary('--override-ansible-cfg $FFWD_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout | ternary('--config-download-timeout $FFWD_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment | ternary('--baremetal-deployment $FFWD_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_log_output | ternary((">" ~ tripleo_overcloud_ffwd_upgrade_prepare_log), '') }} - {{ tripleo_overcloud_ffwd_upgrade_prepare_log_combine | ternary("2>&1", '') }} - _upgrade_prepare_env: - FFWD_TEMPLATES: "{{ tripleo_overcloud_ffwd_upgrade_prepare_templates }}" - FFWD_STACK: "{{ tripleo_overcloud_ffwd_upgrade_prepare_stack }}" - FFWD_TIMEOUT_ARG: "{{ tripleo_overcloud_ffwd_upgrade_prepare_timeout_arg }}" - FFWD_LIBVIRT_TYPE: "{{ tripleo_overcloud_ffwd_upgrade_prepare_libvirt_type }}" - FFWD_NTP_SERVER: "{{ tripleo_overcloud_ffwd_upgrade_prepare_ntp_server }}" - FFWD_NO_PROXY: "{{ tripleo_overcloud_ffwd_upgrade_prepare_no_proxy }}" - FFWD_OC_SSH_USER: "{{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_user }}" - FFWD_OC_SSH_KEY: "{{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_key }}" - FFWD_OC_SSH_NETWORK: "{{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_network }}" - FFWD_OC_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_enable_timeout }}" - FFWD_OC_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_prepare_overcloud_ssh_port_timeout }}" - FFWD_ROLES_FILE: "{{ tripleo_overcloud_ffwd_upgrade_prepare_roles_file }}" - FFWD_NETWORKS_FILE: "{{ tripleo_overcloud_ffwd_upgrade_prepare_networks_file }}" - FFWD_PLAN_ENV_FILE: "{{ tripleo_overcloud_ffwd_upgrade_prepare_plan_environment_file }}" - FFWD_ANSWERS_FILE: "{{ tripleo_overcloud_ffwd_upgrade_prepare_answers_file }}" - FFWD_OUTPUT_DIR: "{{ tripleo_overcloud_ffwd_upgrade_prepare_output_dir }}" - FFWD_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_ffwd_upgrade_prepare_override_ansible_cfg }}" - FFWD_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_ffwd_upgrade_prepare_config_download_timeout }}" - FFWD_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_ffwd_upgrade_prepare_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_ffwd_upgrade_prepare_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_ffwd_upgrade_prepare_log }}" - when: tripleo_overcloud_ffwd_upgrade_prepare_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_ffwd_upgrade_prepare_debug|bool - block: - - name: Show the overcloud ffwd-upgrade prepare command - debug: - var: _upgrade_prepare_cmd - - - name: Show the overcloud ffwd-upgrade prepare environment - debug: - var: _upgrade_prepare_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_ffwd_upgrade_prepare_home_dir }}/tripleo_overcloud_ffwd_upgrade_prepare.sh" - shell_command: "{{ _upgrade_prepare_cmd }}" - shell_environment: "{{ _upgrade_prepare_env }}" - when: tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts|bool - -- name: overcloud ffwd-upgrade prepare - shell: "{{ _upgrade_prepare_cmd }}" # noqa 305 - environment: "{{ _upgrade_prepare_env }}" - args: - chdir: "{{ tripleo_overcloud_ffwd_upgrade_prepare_home_dir }}" - register: tripleo_overcloud_ffwd_upgrade_prepare_result - async: "{{ tripleo_overcloud_ffwd_upgrade_prepare_timeout }}" - poll: "{{ tripleo_overcloud_ffwd_upgrade_prepare_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_ffwd_upgrade_prepare_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_ffwd_upgrade_prepare_result.stdout is defined - set_fact: - tripleo_overcloud_ffwd_upgrade_prepare_output: "{{ tripleo_overcloud_ffwd_upgrade_prepare_result.stdout }}" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/inventory b/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/test.yml b/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/test.yml deleted file mode 100644 index d3a2370..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_prepare/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_ffwd_upgrade_prepare diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/README.md b/roles/tripleo_overcloud_ffwd_upgrade_run/README.md deleted file mode 100644 index 72afa2a..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/README.md +++ /dev/null @@ -1,63 +0,0 @@ -tripleo_overcloud_ffwd_upgrade_run -================================== - -A role to execute an overcloud ffwd-upgrade run. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_ffwd_upgrade_run_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_ffwd_upgrade_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_ffwd_upgrade_run_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_ffwd_upgrade_run_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_ffwd_upgrade_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_ffwd_upgrade_run_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_ffwd_upgrade_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_ffwd_upgrade_run_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}/overcloud_ffwd_upgrade_run.log" -* `tripleo_overcloud_ffwd_upgrade_run_playbook`: (List) List of playbook(s) to use for the upgrade. Defaults: [] -* `tripleo_overcloud_ffwd_upgrade_run_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_ffwd_upgrade_run_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_ffwd_upgrade_run_ssh_user`: (String) Username of user to be used as the ssh user. -* `tripleo_overcloud_ffwd_upgrade_run_stack`: (String) Name of the stack to deploy. -* `tripleo_overcloud_ffwd_upgrade_run_static_inventory`: (String) Path to an existing ansible inventory to use. -* `tripleo_overcloud_ffwd_upgrade_run_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 5700 -* `tripleo_overcloud_ffwd_upgrade_run_yes`: (Boolean) Flag to skip the confirmation required before any ffwd-upgrade operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_ffwd_upgrade_run_output`: (String) The command standard output. -* `tripleo_overcloud_ffwd_upgrade_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud ffwd-upgrade run execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud ffwd-upgrade run - import_role: - name: tripleo_overcloud_ffwd_upgrade_run -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/defaults/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/defaults/main.yml deleted file mode 100644 index d67c738..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# defaults file for tripleo_overcloud_ffwd_upgrade_run ---- -openstack_bin: openstack -tripleo_overcloud_ffwd_upgrade_run_debug: false -tripleo_overcloud_ffwd_upgrade_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_ffwd_upgrade_run_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_ffwd_upgrade_run_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_ffwd_upgrade_run_log: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}/overcloud_ffwd_upgrade_run.log" -tripleo_overcloud_ffwd_upgrade_run_log_combine: true -tripleo_overcloud_ffwd_upgrade_run_log_output: true -tripleo_overcloud_ffwd_upgrade_run_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_ffwd_upgrade_run_poll: 10 -tripleo_overcloud_ffwd_upgrade_run_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_ffwd_upgrade_run_ssh_user: -tripleo_overcloud_ffwd_upgrade_run_stack: -tripleo_overcloud_ffwd_upgrade_run_static_inventory: -tripleo_overcloud_ffwd_upgrade_run_timeout: 5700 -tripleo_overcloud_ffwd_upgrade_run_yes: true diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/meta/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/meta/main.yml deleted file mode 100644 index b69e9b0..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_ffwd_upgrade_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_ffwd_upgrade_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/converge.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/converge.yml deleted file mode 100644 index ef43377..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/converge.yml +++ /dev/null @@ -1,67 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_ffwd_upgrade_run_debug: true - tripleo_overcloud_ffwd_upgrade_run_yes: false - tripleo_overcloud_ffwd_upgrade_run_log_output: false - tripleo_overcloud_ffwd_upgrade_run_log_combine: false - tripleo_overcloud_ffwd_upgrade_run_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_ffwd_upgrade_run" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_run" - - - name: Check role - assert: - that: - - tripleo_overcloud_ffwd_upgrade_run_output == "overcloud ffwd-upgrade run" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_run_stack" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_run" - vars: - tripleo_overcloud_ffwd_upgrade_run_stack: test - - - name: Assert "tripleo_overcloud_ffwd_upgrade_run_stack" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_run_output == "overcloud ffwd-upgrade run --stack test" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_run_yes" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_run" - vars: - tripleo_overcloud_ffwd_upgrade_run_yes: true - - - name: Assert "tripleo_overcloud_ffwd_upgrade_run_yes" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_run_output == "overcloud ffwd-upgrade run --yes" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_run_ssh_user" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_run" - vars: - tripleo_overcloud_ffwd_upgrade_run_ssh_user: username - - - name: Assert "tripleo_overcloud_ffwd_upgrade_run_ssh_user" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_run_output == "overcloud ffwd-upgrade run --ssh-user username" - - - name: Check parameter "tripleo_overcloud_ffwd_upgrade_run_static_inventory" - include_role: - name: "tripleo_overcloud_ffwd_upgrade_run" - vars: - tripleo_overcloud_ffwd_upgrade_run_static_inventory: /home/foo/inventory.yml - - - name: Assert "tripleo_overcloud_ffwd_upgrade_run_static_inventory" - assert: - that: - - tripleo_overcloud_ffwd_upgrade_run_output == "overcloud ffwd-upgrade run --static-inventory /home/foo/inventory.yml" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/molecule.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/prepare.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/tasks/main.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/tasks/main.yml deleted file mode 100644 index d39cfa6..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/tasks/main.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -# tasks file for tripleo_overcloud_ffwd_upgrade_run -- name: Setup overcloud ffwd-upgrade run facts - set_fact: - _run_cmd: >- - {{ tripleo_overcloud_ffwd_upgrade_run_os_cloud | ternary('', "source " ~ tripleo_overcloud_ffwd_upgrade_run_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud ffwd-upgrade run - {{ tripleo_overcloud_ffwd_upgrade_run_ssh_user | ternary('--ssh-user $FFWD_SSH_USER', '') }} - {{ tripleo_overcloud_ffwd_upgrade_run_static_inventory | ternary('--static-inventory $FFWD_STATIC_INVENTORY', '') }} - {{ tripleo_overcloud_ffwd_upgrade_run_stack | ternary('--stack $FFWD_STACK', '') }} - {{ tripleo_overcloud_ffwd_upgrade_run_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_ffwd_upgrade_run_log_output | ternary((">" ~ tripleo_overcloud_ffwd_upgrade_run_log), '') }} - {{ tripleo_overcloud_ffwd_upgrade_run_log_combine | ternary("2>&1", '') }} - _run_env: - FFWD_SSH_USER: "{{ tripleo_overcloud_ffwd_upgrade_run_ssh_user }}" - FFWD_STATIC_INVENTORY: "{{ tripleo_overcloud_ffwd_upgrade_run_static_inventory }}" - FFWD_STACK: "{{ tripleo_overcloud_ffwd_upgrade_run_stack }}" - OS_CLOUD: "{{ tripleo_overcloud_ffwd_upgrade_run_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_ffwd_upgrade_run_log }}" - when: tripleo_overcloud_ffwd_upgrade_run_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_ffwd_upgrade_run_debug|bool - block: - - name: Show the overcloud ffwd-upgrade run command - debug: - var: _run_cmd - - - name: Show the overcloud ffwd-upgrade run environment - debug: - var: _run_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}/tripleo_overcloud_ffwd_upgrade_run.sh" - shell_command: "{{ _run_cmd }}" - shell_environment: "{{ _run_env }}" - when: tripleo_overcloud_ffwd_upgrade_run_generate_scripts|bool - -- name: overcloud ffwd-upgrade run - shell: "{{ _run_cmd }}" # noqa 305 - environment: "{{ _run_env }}" - args: - chdir: "{{ tripleo_overcloud_ffwd_upgrade_run_home_dir }}" - register: tripleo_overcloud_ffwd_upgrade_run_result - async: "{{ tripleo_overcloud_ffwd_upgrade_run_timeout }}" - poll: "{{ tripleo_overcloud_ffwd_upgrade_run_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_ffwd_upgrade_run_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_ffwd_upgrade_run_result.stdout is defined - set_fact: - tripleo_overcloud_ffwd_upgrade_run_output: "{{ tripleo_overcloud_ffwd_upgrade_run_result.stdout }}" diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/tests/inventory b/roles/tripleo_overcloud_ffwd_upgrade_run/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_ffwd_upgrade_run/tests/test.yml b/roles/tripleo_overcloud_ffwd_upgrade_run/tests/test.yml deleted file mode 100644 index c3406b0..0000000 --- a/roles/tripleo_overcloud_ffwd_upgrade_run/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_ffwd_upgrade_run diff --git a/roles/tripleo_overcloud_generate_fencing/README.md b/roles/tripleo_overcloud_generate_fencing/README.md deleted file mode 100644 index 52081e3..0000000 --- a/roles/tripleo_overcloud_generate_fencing/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_generate_fencing -================================== - -A role to generate overcloud fencing parameters. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_generate_fencing_action`: (String) The fencing action. Deprecated and ignored in later versions. -* `tripleo_overcloud_generate_fencing_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_generate_fencing_delay`: (Integer) Number of seconds to wait before fencing is started. -* `tripleo_overcloud_generate_fencing_environment_file`: (String) REQUIRED. Path to the environment file. -* `tripleo_overcloud_generate_fencing_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_generate_fencing_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_generate_fencing_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_generate_fencing_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_generate_fencing_ipmi_cipher`: (String) Cipher squit to use (same as ipmitool -C) -* `tripleo_overcloud_generate_fencing_ipmi_lanplus`: (Boolean) Use lanplus. Option deprecated because it's the default. Default: false -* `tripleo_overcloud_generate_fencing_ipmi_level`: (String) Privilege level on IPMI device. (callback, user, operator, administrator) -* `tripleo_overcloud_generate_fencing_ipmi_no_lanplus`: (Boolean) Do not use lanplus. Default: false -* `tripleo_overcloud_generate_fencing_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_generate_fencing_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_generate_fencing_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_generate_fencing_home_dir }}/overcloud_generate_fencing.log" -* `tripleo_overcloud_generate_fencing_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_generate_fencing_rc_file`. -* `tripleo_overcloud_generate_fencing_output_file`: (String) Destination for the output parameters. -* `tripleo_overcloud_generate_fencing_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_generate_fencing_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_generate_fencing_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_generate_fencing_output`: (String) The command standard output. -* `tripleo_overcloud_generate_fencing_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example generate fencing - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud generate fencing - import_role: - name: tripleo_overcloud_generate_fencing - var: - tripleo_overcloud_generate_fencing_debug: true - tripleo_overcloud_generate_fencing_environment_file: /home/stack/instackenv.json -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_generate_fencing/defaults/main.yml b/roles/tripleo_overcloud_generate_fencing/defaults/main.yml deleted file mode 100644 index a76074f..0000000 --- a/roles/tripleo_overcloud_generate_fencing/defaults/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -# defaults file for tripleo_overcloud_generate_fencing ---- -openstack_bin: openstack -tripleo_overcloud_generate_fencing_action: -tripleo_overcloud_generate_fencing_debug: false -tripleo_overcloud_generate_fencing_delay: -tripleo_overcloud_generate_fencing_environment_file: -tripleo_overcloud_generate_fencing_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_generate_fencing_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_generate_fencing_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_generate_fencing_ipmi_cipher: -tripleo_overcloud_generate_fencing_ipmi_lanplus: false -tripleo_overcloud_generate_fencing_ipmi_level: -tripleo_overcloud_generate_fencing_ipmi_no_lanplus: false -tripleo_overcloud_generate_fencing_log: "{{ tripleo_overcloud_generate_fencing_home_dir }}/overcloud_generate_fencing.log" -tripleo_overcloud_generate_fencing_log_combine: true -tripleo_overcloud_generate_fencing_log_output: true -tripleo_overcloud_generate_fencing_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_generate_fencing_output_file: -tripleo_overcloud_generate_fencing_poll: 10 -tripleo_overcloud_generate_fencing_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_generate_fencing_timeout: 3600 diff --git a/roles/tripleo_overcloud_generate_fencing/meta/main.yml b/roles/tripleo_overcloud_generate_fencing/meta/main.yml deleted file mode 100644 index d7da3e5..0000000 --- a/roles/tripleo_overcloud_generate_fencing/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_generate_fencing - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_generate_fencing - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_generate_fencing/molecule/default/converge.yml b/roles/tripleo_overcloud_generate_fencing/molecule/default/converge.yml deleted file mode 100644 index a71831f..0000000 --- a/roles/tripleo_overcloud_generate_fencing/molecule/default/converge.yml +++ /dev/null @@ -1,117 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_generate_fencing_log_output: false - tripleo_overcloud_generate_fencing_poll: 1 - tripleo_overcloud_generate_fencing_debug: true - tasks: - - - name: "Include tripleo_overcloud_generate_fencing" - include_role: - name: "tripleo_overcloud_generate_fencing" - - - name: Check role - assert: - that: - - tripleo_overcloud_generate_fencing_output == "overcloud generate fencing" - - - name: Assert "tripleo_overcloud_generate_fencing_action" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_action: foo - - - name: Validate tripleo_overcloud_generate_fencing_action - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --action foo" - - - name: Assert "tripleo_overcloud_generate_fencing_delay" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_delay: 10 - - - name: Validate tripleo_overcloud_generate_fencing_delay - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --delay 10" - - - name: Assert "tripleo_overcloud_generate_fencing_ipmi_lanplus" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_ipmi_lanplus: true - - - name: Validate tripleo_overcloud_generate_fencing_ipmi_lanplus - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --ipmi-lanplus" - - - name: Assert "tripleo_overcloud_generate_fencing_ipmi_no_lanplus" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_ipmi_no_lanplus: true - - - name: Validate tripleo_overcloud_generate_fencing_ipmi_no_lanplus - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --ipmi-no-lanplus" - - - name: Assert "tripleo_overcloud_generate_fencing_ipmi_cipher" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_ipmi_cipher: foo - - - name: Validate tripleo_overcloud_generate_fencing_ipmi_cipher - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --ipmi-cipher foo" - - - name: Assert "tripleo_overcloud_generate_fencing_ipmi_level" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_ipmi_level: foo - - - name: Validate tripleo_overcloud_generate_fencing_ipmi_level - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --ipmi-level foo" - - - name: Assert "tripleo_overcloud_generate_fencing_output_file" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_output_file: foo.yaml - - - name: Validate tripleo_overcloud_generate_fencing_output_file - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing --output foo.yaml" - - - name: Assert "tripleo_overcloud_generate_fencing_environment_file" - include_role: - name: "tripleo_overcloud_generate_fencing" - vars: - tripleo_overcloud_generate_fencing_environment_file: foo.yaml - - - name: Validate tripleo_overcloud_generate_fencing_environment_file - assert: - that: - - tripleo_overcloud_generate_fencing_output == - "overcloud generate fencing foo.yaml" diff --git a/roles/tripleo_overcloud_generate_fencing/molecule/default/molecule.yml b/roles/tripleo_overcloud_generate_fencing/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_generate_fencing/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_generate_fencing/molecule/default/prepare.yml b/roles/tripleo_overcloud_generate_fencing/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_generate_fencing/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_generate_fencing/tasks/main.yml b/roles/tripleo_overcloud_generate_fencing/tasks/main.yml deleted file mode 100644 index 2e0e93c..0000000 --- a/roles/tripleo_overcloud_generate_fencing/tasks/main.yml +++ /dev/null @@ -1,67 +0,0 @@ ---- -# tasks file for tripleo_overcloud_generate_fencing -- name: Set overcloud generate fencing facts - set_fact: - _fencing_cmd: >- - {{ tripleo_overcloud_generate_fencing_os_cloud | ternary('', "source " ~ tripleo_overcloud_generate_fencing_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud generate fencing - {{ tripleo_overcloud_generate_fencing_action | ternary('--action $FENCING_ACTION', '') }} - {{ tripleo_overcloud_generate_fencing_delay | ternary('--delay $FENCING_DELAY', '') }} - {{ tripleo_overcloud_generate_fencing_ipmi_lanplus | ternary('--ipmi-lanplus', '') }} - {{ tripleo_overcloud_generate_fencing_ipmi_no_lanplus | ternary('--ipmi-no-lanplus', '') }} - {{ tripleo_overcloud_generate_fencing_ipmi_cipher | ternary('--ipmi-cipher $FENCING_CIPHER', '') }} - {{ tripleo_overcloud_generate_fencing_ipmi_level | ternary('--ipmi-level $FENCING_LEVEL', '') }} - {{ tripleo_overcloud_generate_fencing_output_file | ternary('--output $FENCING_OUTPUT', '') }} - {{ tripleo_overcloud_generate_fencing_environment_file }} - {{ tripleo_overcloud_generate_fencing_log_output | ternary((">" ~ tripleo_overcloud_generate_fencing_log), '') }} - {{ tripleo_overcloud_generate_fencing_log_combine | ternary("2>&1", '') }} - _fencing_env: - OS_CLOUD: "{{ tripleo_overcloud_generate_fencing_os_cloud }}" - FENCING_ACTION: "{{ tripleo_overcloud_generate_fencing_action | quote }}" - FENCING_DELAY: "{{ tripleo_overcloud_generate_fencing_delay | quote }}" - FENCING_CIPHER: "{{ tripleo_overcloud_generate_fencing_ipmi_cipher | quote }}" - FENCING_LEVEL: "{{ tripleo_overcloud_generate_fencing_ipmi_level | quote }}" - FENCING_OUTPUT: "{{ tripleo_overcloud_generate_fencing_output_file | quote }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_generate_fencing_log }}" - when: tripleo_overcloud_generate_fencing_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_generate_fencing_debug|bool - block: - - name: Show the command - debug: - var: _fencing_cmd - - - name: Show the environment - debug: - var: _fencing_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_generate_fencing_home_dir }}/tripleo_overcloud_generate_fencing.sh" - shell_command: "{{ _fencing_cmd }}" - shell_environment: "{{ _fencing_env }}" - when: tripleo_overcloud_generate_fencing_generate_scripts|bool - -- name: overcloud generate fencing - shell: "{{ _fencing_cmd }}" # noqa 305 - environment: "{{ _fencing_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_generate_fencing_home_dir }}" - register: tripleo_overcloud_generate_fencing_result - async: "{{ tripleo_overcloud_generate_fencing_timeout }}" - poll: "{{ tripleo_overcloud_generate_fencing_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_generate_fencing_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_generate_fencing_result.stdout is defined - set_fact: - tripleo_overcloud_generate_fencing_output: "{{ tripleo_overcloud_generate_fencing_result.stdout }}" diff --git a/roles/tripleo_overcloud_generate_fencing/tests/inventory b/roles/tripleo_overcloud_generate_fencing/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_generate_fencing/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_generate_fencing/tests/test.yml b/roles/tripleo_overcloud_generate_fencing/tests/test.yml deleted file mode 100644 index 30620a8..0000000 --- a/roles/tripleo_overcloud_generate_fencing/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_generate_fencing diff --git a/roles/tripleo_overcloud_image_build/README.md b/roles/tripleo_overcloud_image_build/README.md deleted file mode 100644 index 3a03bc3..0000000 --- a/roles/tripleo_overcloud_image_build/README.md +++ /dev/null @@ -1,63 +0,0 @@ -tripleo_overcloud_image_build -============================ - -A role to perform an overcloud image build for provisioning. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_image_build_config_files`: (List) List of YAML config files specifying the image build. -* `tripleo_overcloud_image_build_debug`: (Boolean) Flag to print out the push command. Default: False -* `tripleo_overcloud_image_build_dib_local_image`: (String) String containing the path to a local image to use when building. -* `tripleo_overcloud_image_build_dib_yum_repo_conf`: (String) String containing the path to the yum files for the image building process. Default: "/etc/yum.repos.d/*" -* `tripleo_overcloud_image_build_extra_env_vars`: (Dictionary) Dictionary containing extra environment variables to be set for the build. Default: {} -* `tripleo_overcloud_image_build_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_image_build_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_image_build_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_image_build_home_dir`: (String) Path that the command should be executed in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_image_build_image_names`: (List) List of image names to build. -* `tripleo_overcloud_image_build_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_overcloud_image_build_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_overcloud_image_build_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log" -* `tripleo_overcloud_image_build_no_skip`: (Boolean) Flag to skip build if cached image exists. Default: False -* `tripleo_overcloud_image_build_output_directory`: (String) Path to the output directory for the images. -* `tripleo_overcloud_image_build_poll`: (Integer) Number of seconds to wait between checks to see if the build command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_overcloud_image_build_stable_release`: (String) String containing the name of the stable branch being built. -* `tripleo_overcloud_image_build_timeout`: (Integer) Amount of time to wait for the command to complete. Default: 1800 - -Output Variables ----------------- - -* `tripleo_overcloud_image_build_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container push execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Build overcloud image - import_role: - name: tripleo_overcloud_image_build - vars: - tripleo_overcloud_image_build_config_files: - - /usr/share/openstack-tripleo-common/image-yaml/overcloud-images.yaml - - /usr/share/openstack-tripleo-common/image-yaml/overcloud-images-centos7.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_image_build/defaults/main.yml b/roles/tripleo_overcloud_image_build/defaults/main.yml deleted file mode 100644 index 9748ed8..0000000 --- a/roles/tripleo_overcloud_image_build/defaults/main.yml +++ /dev/null @@ -1,20 +0,0 @@ -# defaults file for tripleo_overcloud_image_build ---- -openstack_bin: openstack -tripleo_overcloud_image_build_config_files: [] -tripleo_overcloud_image_build_debug: false -tripleo_overcloud_image_build_dib_local_image: -tripleo_overcloud_image_build_dib_yum_repo_conf: "/etc/yum.repos.d/*" -tripleo_overcloud_image_build_extra_env_vars: {} -tripleo_overcloud_image_build_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_image_build_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_image_build_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_image_build_image_names: [] -tripleo_overcloud_image_build_log: "{{ tripleo_overcloud_image_build_home_dir }}/overcloud_image_build.log" -tripleo_overcloud_image_build_log_combine: true -tripleo_overcloud_image_build_log_output: true -tripleo_overcloud_image_build_no_skip: false -tripleo_overcloud_image_build_output_directory: -tripleo_overcloud_image_build_poll: 10 -tripleo_overcloud_image_build_stable_branch: -tripleo_overcloud_image_build_timeout: 1800 diff --git a/roles/tripleo_overcloud_image_build/meta/main.yml b/roles/tripleo_overcloud_image_build/meta/main.yml deleted file mode 100644 index 6c5d7c7..0000000 --- a/roles/tripleo_overcloud_image_build/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_image_build - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_image_build - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_image_build/molecule/default/converge.yml b/roles/tripleo_overcloud_image_build/molecule/default/converge.yml deleted file mode 100644 index 6d917d2..0000000 --- a/roles/tripleo_overcloud_image_build/molecule/default/converge.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - tripleo_overcloud_image_build_log_output: false - tripleo_overcloud_image_build_log_combine: false - tasks: - - - name: "Include tripleo_overcloud_image_build" - include_role: - name: "tripleo_overcloud_image_build" - vars: - openstack_bin: echo - tripleo_overcloud_image_build_debug: true - - - name: Check role - assert: - that: - - tripleo_overcloud_image_build_result.stdout == "overcloud image build" - - - name: Check parameter "tripleo_overcloud_image_build_config_files" - include_role: - name: "tripleo_overcloud_image_build" - vars: - openstack_bin: echo - tripleo_overcloud_image_build_debug: true - tripleo_overcloud_image_build_config_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_image_build_config_files" - assert: - that: - - tripleo_overcloud_image_build_result.stdout == - "overcloud image build --config-file a.yaml --config-file b.yaml" - - - name: Check parameter "tripleo_overcloud_image_build_image_names" - include_role: - name: "tripleo_overcloud_image_build" - vars: - openstack_bin: echo - tripleo_overcloud_image_build_debug: true - tripleo_overcloud_image_build_image_names: - - os - - ipa - - - name: Assert "tripleo_overcloud_image_build_image_names" - assert: - that: - - tripleo_overcloud_image_build_result.stdout == - "overcloud image build --image-name os --image-name ipa" - - - name: Check parameter "tripleo_overcloud_image_build_no_skip" - include_role: - name: "tripleo_overcloud_image_build" - vars: - openstack_bin: echo - tripleo_overcloud_image_build_debug: true - tripleo_overcloud_image_build_no_skip: true - - - name: Assert "tripleo_overcloud_image_build_config_files" - assert: - that: - - tripleo_overcloud_image_build_result.stdout == - "overcloud image build --no-skip" - - - name: Check parameter "tripleo_overcloud_image_build_output_directory" - include_role: - name: "tripleo_overcloud_image_build" - vars: - openstack_bin: echo - tripleo_overcloud_image_build_debug: true - tripleo_overcloud_image_build_output_directory: /foo - - - name: Assert "tripleo_overcloud_image_build_output_directory" - assert: - that: - - tripleo_overcloud_image_build_result.stdout == - "overcloud image build --output-directory /foo" diff --git a/roles/tripleo_overcloud_image_build/molecule/default/molecule.yml b/roles/tripleo_overcloud_image_build/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_image_build/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_image_build/molecule/default/prepare.yml b/roles/tripleo_overcloud_image_build/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_image_build/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_image_build/tasks/main.yml b/roles/tripleo_overcloud_image_build/tasks/main.yml deleted file mode 100644 index 2361dd7..0000000 --- a/roles/tripleo_overcloud_image_build/tasks/main.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -# tasks file for tripleo_overcloud_image_build -- name: Setup overcloud image build facts - set_fact: - _build_cmd: >- - {{ openstack_bin }} overcloud image build - {{ tripleo_overcloud_image_build_config_files | tripleo.operator.shell_arg_list('--config-file') }} - {{ tripleo_overcloud_image_build_image_names | tripleo.operator.shell_arg_list('--image-name') }} - {{ tripleo_overcloud_image_build_no_skip | ternary('--no-skip', '') }} - {{ tripleo_overcloud_image_build_output_directory | ternary('--output-directory ' ~ tripleo_overcloud_image_build_output_directory, '') }} - {{ tripleo_overcloud_image_build_log_output | ternary((">" ~ tripleo_overcloud_image_build_log), '') }} - {{ tripleo_overcloud_image_build_log_combine | ternary("2>&1", '') }} - _build_env: | - {% set env_vars = {} %} - {% if tripleo_overcloud_image_build_dib_yum_repo_conf %} - {% set _ = env_vars.update({'DIB_YUM_REPO_CONF': tripleo_overcloud_image_build_dib_yum_repo_conf}) %} - {% endif %} - {% if tripleo_overcloud_image_build_dib_local_image %} - {% set _ = env_vars.update({'DIB_LOCAL_IMAGE': tripleo_overcloud_image_build_dib_local_image}) %} - {% endif %} - {% if tripleo_overcloud_image_build_stable_branch %} - {% set _ = env_vars.update({'STABLE_BRANCH': tripleo_overcloud_image_build_stable_branch}) %} - {% endif %} - {% set _ = env_vars.update(tripleo_overcloud_image_build_extra_env_vars) %} - {{ env_vars }} - -- name: Show debugging information - when: tripleo_overcloud_image_build_debug|bool - block: - - name: Show the overcloud image build command - debug: - var: _build_cmd - - - name: Show the overcloud image build environment - debug: - var: _build_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_image_build_home_dir }}/tripleo_overcloud_image_build.sh" - shell_command: "{{ _build_cmd }}" - shell_environment: "{{ _build_env }}" - when: tripleo_overcloud_image_build_generate_scripts|bool - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_image_build_log }}" - when: tripleo_overcloud_image_build_log_output|bool - -- name: Overcloud image build - shell: "{{ _build_cmd }}" # noqa 305 - environment: "{{ _build_env }}" - args: - chdir: "{{ tripleo_overcloud_image_build_home_dir }}" - async: "{{ tripleo_overcloud_image_build_timeout }}" - poll: "{{ tripleo_overcloud_image_build_poll }}" - register: tripleo_overcloud_image_build_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_image_build_generate_scripts_only|bool diff --git a/roles/tripleo_overcloud_image_build/tests/inventory b/roles/tripleo_overcloud_image_build/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_image_build/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_image_build/tests/test.yml b/roles/tripleo_overcloud_image_build/tests/test.yml deleted file mode 100644 index 41e8313..0000000 --- a/roles/tripleo_overcloud_image_build/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_image_build diff --git a/roles/tripleo_overcloud_image_upload/README.md b/roles/tripleo_overcloud_image_upload/README.md deleted file mode 100644 index ef406bf..0000000 --- a/roles/tripleo_overcloud_image_upload/README.md +++ /dev/null @@ -1,70 +0,0 @@ -tripleo_overcloud_image_upload -======================== - -A role to run an overcloud image upload. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_image_upload_architecture`: (String) Architecture type for the images being uploaded. -* `tripleo_overcloud_image_upload_debug`: (Boolean) Flag to print out the command that is run. Default: False -* `tripleo_overcloud_image_upload_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_image_upload_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_image_upload_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_image_upload_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_image_upload_http_boot`: (String) Root directory for the ironic-python-agent-image -* `tripleo_overcloud_image_upload_image_path`: (String) Path to directory overcloud images. By default the command will use the images in `tripleo_overcloud_image_upload_home_dir` if this is not specified. -* `tripleo_overcloud_image_upload_image_type`: (String) If specified, restrict the image type to upload. Should be one of {os,ironic-python-agent} -* `tripleo_overcloud_image_upload_ironic_python_agent_name`: (String) OpenStack ironic-python-agent image filename -* `tripleo_overcloud_image_upload_local`: (Boolean) Flag to combine to enable the --local flag. Default: false -* `tripleo_overcloud_image_upload_local_path`: (String) Path to local upload location. Default: '' -* `tripleo_overcloud_image_upload_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_overcloud_image_upload_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_overcloud_image_upload_log`: (String) Install log file path. Default: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log" -* `tripleo_overcloud_image_upload_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_image_upload_rc_file`. -* `tripleo_overcloud_image_upload_os_image_name`: (String) OpenStack disk image filename -* `tripleo_overcloud_image_upload_platform`: (String) Platform type for the images being uploaded. -* `tripleo_overcloud_image_upload_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_image_upload_update_existing`: (Boolean) Update the images if they already exist. Default: false -* `tripleo_overcloud_image_upload_whole_disk`: (Boolean) Overcloud image being uploaded is considered a whole disk image. Default: false - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_image_upload_output`: (String) The command standard output when `tripleo_overcloud_image_upload_log_output` is set to false. -* `tripleo_overcloud_image_upload_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example container list execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Get overcloud image_upload - import_role: - name: tripleo_overcloud_image_upload - vars: - tripleo_overcloud_image_upload_update_existing: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_image_upload/defaults/main.yml b/roles/tripleo_overcloud_image_upload/defaults/main.yml deleted file mode 100644 index 52fd5bc..0000000 --- a/roles/tripleo_overcloud_image_upload/defaults/main.yml +++ /dev/null @@ -1,25 +0,0 @@ -# defaults file for tripleo_overcloud_image_upload ---- -openstack_bin: openstack -tripleo_overcloud_image_upload_architecture: -tripleo_overcloud_image_upload_debug: false -tripleo_overcloud_image_upload_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_image_upload_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_image_upload_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_image_upload_http_boot: -tripleo_overcloud_image_upload_image_path: -tripleo_overcloud_image_upload_image_type: -tripleo_overcloud_image_upload_ironic_python_agent_name: -tripleo_overcloud_image_upload_local: false -tripleo_overcloud_image_upload_local_path: -tripleo_overcloud_image_upload_log: "{{ tripleo_overcloud_image_upload_home_dir }}/overcloud_image_upload.log" -tripleo_overcloud_image_upload_log_combine: false -tripleo_overcloud_image_upload_log_output: true -tripleo_overcloud_image_upload_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_image_upload_os_image_name: -tripleo_overcloud_image_upload_platform: -tripleo_overcloud_image_upload_poll: 10 -tripleo_overcloud_image_upload_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_image_upload_timeout: 600 -tripleo_overcloud_image_upload_update_existing: false -tripleo_overcloud_image_upload_whole_disk: false diff --git a/roles/tripleo_overcloud_image_upload/meta/main.yml b/roles/tripleo_overcloud_image_upload/meta/main.yml deleted file mode 100644 index cdc9b5e..0000000 --- a/roles/tripleo_overcloud_image_upload/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_image_upload - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_image_upload - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_image_upload/molecule/default/converge.yml b/roles/tripleo_overcloud_image_upload/molecule/default/converge.yml deleted file mode 100644 index 52faf9e..0000000 --- a/roles/tripleo_overcloud_image_upload/molecule/default/converge.yml +++ /dev/null @@ -1,143 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_image_upload_debug: true - tripleo_overcloud_image_upload_log_output: false - tripleo_overcloud_image_upload_log_combine: false - tripleo_overcloud_image_upload_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_image_upload" - include_role: - name: "tripleo_overcloud_image_upload" - - - name: Check role - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload" - - - name: Check parameter "tripleo_overcloud_image_upload_image_path" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_image_path: /foo - - - name: Assert "tripleo_overcloud_image_upload_image_path" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --image-path /foo" - - - name: Check parameter "tripleo_overcloud_image_upload_os_image_name" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_os_image_name: foo - - - name: Assert "tripleo_overcloud_image_upload_os_image_name" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --os-image-name foo" - - - name: Check parameter "tripleo_overcloud_image_upload_ironic_python_agent_name" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_ironic_python_agent_name: foo - - - name: Assert "tripleo_overcloud_image_upload_ironic_python_agent_name" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --ironic-python-agent-name foo" - - - name: Check parameter "tripleo_overcloud_image_upload_http_boot" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_http_boot: /foo - - - name: Assert "tripleo_overcloud_image_upload_http_boot" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --http-boot /foo" - - - name: Check parameter "tripleo_overcloud_image_upload_update_existing" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_update_existing: true - - - name: Assert "tripleo_overcloud_image_upload_update_existing" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --update-existing" - - - name: Check parameter "tripleo_overcloud_image_upload_whole_disk" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_whole_disk: true - - - name: Assert "tripleo_overcloud_image_upload_whole_disk" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --whole-disk" - - - name: Check parameter "tripleo_overcloud_image_upload_architecture" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_architecture: i386 - - - name: Assert "tripleo_overcloud_image_upload_architecture" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --architecture i386" - - - name: Check parameter "tripleo_overcloud_image_upload_platform" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_platform: abc - - - name: Assert "tripleo_overcloud_image_upload_platform" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --platform abc" - - - name: Check parameter "tripleo_overcloud_image_upload_image_type" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_image_type: os - - - name: Assert "tripleo_overcloud_image_upload_image_type" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --image-type os" - - - name: Check parameter "tripleo_overcloud_image_upload_local" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_local: true - - - name: Assert "tripleo_overcloud_image_upload_local" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --local" - - - name: Check parameter "tripleo_overcloud_image_upload_local_path" - include_role: - name: "tripleo_overcloud_image_upload" - vars: - tripleo_overcloud_image_upload_local_path: /var/lib/ironic/images/test - - - name: Assert "tripleo_overcloud_image_upload_local_path" - assert: - that: - - tripleo_overcloud_image_upload_result.stdout == "overcloud image upload --local-path /var/lib/ironic/images/test" diff --git a/roles/tripleo_overcloud_image_upload/molecule/default/molecule.yml b/roles/tripleo_overcloud_image_upload/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_image_upload/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_image_upload/molecule/default/prepare.yml b/roles/tripleo_overcloud_image_upload/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_image_upload/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_image_upload/tasks/main.yml b/roles/tripleo_overcloud_image_upload/tasks/main.yml deleted file mode 100644 index 1ce641d..0000000 --- a/roles/tripleo_overcloud_image_upload/tasks/main.yml +++ /dev/null @@ -1,73 +0,0 @@ ---- -# tasks file for tripleo_overcloud_image_upload -- name: Setup overcloud image upload facts - set_fact: - _image_upload_cmd: >- - {{ tripleo_overcloud_image_upload_os_cloud | ternary('', "source " ~ tripleo_overcloud_image_upload_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud image upload - {{ tripleo_overcloud_image_upload_image_path | ternary('--image-path $UPLOAD_IMAGE_PATH', '') }} - {{ tripleo_overcloud_image_upload_os_image_name | ternary('--os-image-name $UPLOAD_OS_IMAGE_NAME', '') }} - {{ tripleo_overcloud_image_upload_ironic_python_agent_name | ternary('--ironic-python-agent-name $UPLOAD_IPA_NAME', '') }} - {{ tripleo_overcloud_image_upload_http_boot | ternary('--http-boot $UPLOAD_HTTP_BOOT', '') }} - {{ tripleo_overcloud_image_upload_update_existing | ternary('--update-existing', '') }} - {{ tripleo_overcloud_image_upload_whole_disk | ternary('--whole-disk', '') }} - {{ tripleo_overcloud_image_upload_architecture | ternary('--architecture $UPLOAD_ARCHITECTURE', '') }} - {{ tripleo_overcloud_image_upload_platform | ternary('--platform $UPLOAD_PLATFORM', '') }} - {{ tripleo_overcloud_image_upload_image_type | ternary('--image-type $UPLOAD_IMAGE_TYPE', '') }} - {{ tripleo_overcloud_image_upload_local | ternary('--local', '') }} - {{ tripleo_overcloud_image_upload_local_path | ternary('--local-path $UPLOAD_LOCAL_PATH', '') }} - {{ tripleo_overcloud_image_upload_log_output | ternary((">$UPLOAD_LOG"), '') }} - {{ tripleo_overcloud_image_upload_log_combine | ternary("2>&1", '') }} - _image_upload_env: - OS_CLOUD: "{{ tripleo_overcloud_image_upload_os_cloud }}" - UPLOAD_IMAGE_PATH: "{{ tripleo_overcloud_image_upload_image_path }}" - UPLOAD_OS_IMAGE_NAME: "{{ tripleo_overcloud_image_upload_os_image_name }}" - UPLOAD_IPA_NAME: "{{ tripleo_overcloud_image_upload_ironic_python_agent_name }}" - UPLOAD_HTTP_BOOT: "{{ tripleo_overcloud_image_upload_http_boot }}" - UPLOAD_ARCHITECTURE: "{{ tripleo_overcloud_image_upload_architecture }}" - UPLOAD_PLATFORM: "{{ tripleo_overcloud_image_upload_platform }}" - UPLOAD_IMAGE_TYPE: "{{ tripleo_overcloud_image_upload_image_type }}" - UPLOAD_LOG: "{{ tripleo_overcloud_image_upload_log }}" - UPLOAD_LOCAL_PATH: "{{ tripleo_overcloud_image_upload_local_path }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_image_upload_log }}" - when: tripleo_overcloud_image_upload_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_image_upload_debug|bool - block: - - name: Show the overcloud image upload command - debug: - var: _image_upload_cmd - - - name: Show the overcloud image upload environment - debug: - var: _image_upload_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_image_upload_home_dir }}/tripleo_overcloud_image_upload.sh" - shell_command: "{{ _image_upload_cmd }}" - shell_environment: "{{ _image_upload_env }}" - when: tripleo_overcloud_image_upload_generate_scripts|bool - -- name: Overcloud image upload - shell: "{{ _image_upload_cmd }}" # noqa 305 - environment: "{{ _image_upload_env }}" - args: - chdir: "{{ tripleo_overcloud_image_upload_home_dir }}" - async: "{{ tripleo_overcloud_image_upload_timeout }}" - register: tripleo_overcloud_image_upload_result - poll: "{{ tripleo_overcloud_image_upload_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_image_upload_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_image_upload_result.stdout is defined - set_fact: - tripleo_overcloud_image_upload_output: "{{ tripleo_overcloud_image_upload_result.stdout }}" diff --git a/roles/tripleo_overcloud_image_upload/tests/inventory b/roles/tripleo_overcloud_image_upload/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_image_upload/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_image_upload/tests/test.yml b/roles/tripleo_overcloud_image_upload/tests/test.yml deleted file mode 100644 index 50abb93..0000000 --- a/roles/tripleo_overcloud_image_upload/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_image_upload diff --git a/roles/tripleo_overcloud_netenv_validate/README.md b/roles/tripleo_overcloud_netenv_validate/README.md deleted file mode 100644 index 6877bdb..0000000 --- a/roles/tripleo_overcloud_netenv_validate/README.md +++ /dev/null @@ -1,56 +0,0 @@ -tripleo_overcloud_netenv_validate -================================= - -A role to perform a netenv validation. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_netenv_validate_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_netenv_validate_file`: (String) REQUIRED. Path to the network environment file -* `tripleo_overcloud_netenv_validate_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_netenv_validate_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_netenv_validate_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_netenv_validate_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_netenv_validate_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_netenv_validate_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_netenv_validate_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_netenv_validate_home_dir }}/overcloud_netenv_validate.log" -* `tripleo_overcloud_netenv_validate_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_netenv_validate_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_netenv_validate_output`: (String) The command standard output. -* `tripleo_overcloud_netenv_validate_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example network environment validation - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: overcloud netenv validate - import_role: - name: tripleo_overcloud_netenv_validate - var: - tripleo_overcloud_netenv_validate_debug: true - tripleo_overcloud_netenv_validate_file: /home/stack/templates/network-environment.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_netenv_validate/defaults/main.yml b/roles/tripleo_overcloud_netenv_validate/defaults/main.yml deleted file mode 100644 index a245824..0000000 --- a/roles/tripleo_overcloud_netenv_validate/defaults/main.yml +++ /dev/null @@ -1,13 +0,0 @@ -# defaults file for tripleo_overcloud_netenv_validate ---- -openstack_bin: openstack -tripleo_overcloud_netenv_validate_debug: false -tripleo_overcloud_netenv_validate_file: -tripleo_overcloud_netenv_validate_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_netenv_validate_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_netenv_validate_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_netenv_validate_log: "{{ tripleo_overcloud_netenv_validate_home_dir }}/overcloud_netenv_validate.log" -tripleo_overcloud_netenv_validate_log_combine: true -tripleo_overcloud_netenv_validate_log_output: true -tripleo_overcloud_netenv_validate_poll: 10 -tripleo_overcloud_netenv_validate_timeout: 3600 diff --git a/roles/tripleo_overcloud_netenv_validate/meta/main.yml b/roles/tripleo_overcloud_netenv_validate/meta/main.yml deleted file mode 100644 index 59966e4..0000000 --- a/roles/tripleo_overcloud_netenv_validate/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_netenv_validate - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_netenv_validate - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_netenv_validate/molecule/default/converge.yml b/roles/tripleo_overcloud_netenv_validate/molecule/default/converge.yml deleted file mode 100644 index aa5a3d1..0000000 --- a/roles/tripleo_overcloud_netenv_validate/molecule/default/converge.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_netenv_validate_log_output: false - tripleo_overcloud_netenv_validate_poll: 1 - tripleo_overcloud_netenv_validate_debug: true - tasks: - - - name: "Include tripleo_overcloud_netenv_validate" - include_role: - name: "tripleo_overcloud_netenv_validate" - - - name: Check role - assert: - that: - - tripleo_overcloud_netenv_validate_output == "overcloud netenv validate" - - - name: Assert "tripleo_overcloud_netenv_validate_file" - include_role: - name: "tripleo_overcloud_netenv_validate" - vars: - tripleo_overcloud_netenv_validate_file: /tmp/foo.yaml - - - name: Validate tripleo_overcloud_netenv_validate_file - assert: - that: - - tripleo_overcloud_netenv_validate_output == - "overcloud netenv validate --file /tmp/foo.yaml" diff --git a/roles/tripleo_overcloud_netenv_validate/molecule/default/molecule.yml b/roles/tripleo_overcloud_netenv_validate/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_netenv_validate/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_netenv_validate/molecule/default/prepare.yml b/roles/tripleo_overcloud_netenv_validate/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_netenv_validate/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_netenv_validate/tasks/main.yml b/roles/tripleo_overcloud_netenv_validate/tasks/main.yml deleted file mode 100644 index de221b7..0000000 --- a/roles/tripleo_overcloud_netenv_validate/tasks/main.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -# tasks file for tripleo_overcloud_netenv_validate -- name: Set overcloud netenv validate facts - set_fact: - _validate_cmd: >- - {{ openstack_bin }} overcloud netenv validate - {{ tripleo_overcloud_netenv_validate_file | ternary('--file $NETENV_FILE', '') }} - {{ tripleo_overcloud_netenv_validate_log_output | ternary((">" ~ tripleo_overcloud_netenv_validate_log), '') }} - {{ tripleo_overcloud_netenv_validate_log_combine | ternary("2>&1", '') }} - _validate_env: - NETENV_FILE: "{{ tripleo_overcloud_netenv_validate_file | quote }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_netenv_validate_log }}" - when: tripleo_overcloud_netenv_validate_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_netenv_validate_debug|bool - block: - - name: Show the command - debug: - var: _validate_cmd - - - name: Show the environment - debug: - var: _validate_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_netenv_validate_home_dir }}/tripleo_overcloud_netenv_validate.sh" - shell_command: "{{ _validate_cmd }}" - shell_environment: "{{ _validate_env }}" - when: tripleo_overcloud_netenv_validate_generate_scripts|bool - -- name: Run overcloud netenv validate - shell: "{{ _validate_cmd }}" # noqa 305 - environment: "{{ _validate_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_netenv_validate_home_dir }}" - register: tripleo_overcloud_netenv_validate_result - async: "{{ tripleo_overcloud_netenv_validate_timeout }}" - poll: "{{ tripleo_overcloud_netenv_validate_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_netenv_validate_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_netenv_validate_result.stdout is defined - set_fact: - tripleo_overcloud_netenv_validate_output: "{{ tripleo_overcloud_netenv_validate_result.stdout }}" diff --git a/roles/tripleo_overcloud_netenv_validate/tests/inventory b/roles/tripleo_overcloud_netenv_validate/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_netenv_validate/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_netenv_validate/tests/test.yml b/roles/tripleo_overcloud_netenv_validate/tests/test.yml deleted file mode 100644 index 5f3fa1c..0000000 --- a/roles/tripleo_overcloud_netenv_validate/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_netenv_validate diff --git a/roles/tripleo_overcloud_network_provision/README.md b/roles/tripleo_overcloud_network_provision/README.md deleted file mode 100644 index 16aba30..0000000 --- a/roles/tripleo_overcloud_network_provision/README.md +++ /dev/null @@ -1,57 +0,0 @@ -tripleo_overcloud_network_provision -========= - -A role to perform overcloud network provisioning. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_network_provision_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_network_provision_deployment_file`: (String) REQUIRED. File path to the deployment file describing the networks. -* `tripleo_overcloud_network_provision_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_network_provision_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_network_provision_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_network_provision_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_network_provision_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_network_provision_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_network_provision_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_network_provision_home_dir }}/overcloud_network_provision.log" -* `tripleo_overcloud_network_provision_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_network_provision_rc_file`. -* `tripleo_overcloud_network_provision_output_file`: (String) Path to an output file. -* `tripleo_overcloud_network_provision_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -Output Variables ----------------- - -* `tripleo_overcloud_network_provision_output`: (String) The command standard output. -* `tripleo_overcloud_network_provision_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example network provisioning - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud network provision - import_role: - name: tripleo_overcloud_network_provision - var: - tripleo_overcloud_network_provision_debug: true - tripleo_overcloud_network_provision_deployment_file: /home/stack/network-data.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_network_provision/defaults/main.yml b/roles/tripleo_overcloud_network_provision/defaults/main.yml deleted file mode 100644 index 8dbdbe4..0000000 --- a/roles/tripleo_overcloud_network_provision/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_network_provision ---- -openstack_bin: openstack -tripleo_overcloud_network_provision_debug: false -tripleo_overcloud_network_provision_deployment_file: -tripleo_overcloud_network_provision_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_network_provision_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_network_provision_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_network_provision_log: "{{ tripleo_overcloud_network_provision_home_dir }}/overcloud_network_provision.log" -tripleo_overcloud_network_provision_log_combine: true -tripleo_overcloud_network_provision_log_output: true -tripleo_overcloud_network_provision_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_network_provision_output_file: -tripleo_overcloud_network_provision_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_network_provision/meta/main.yml b/roles/tripleo_overcloud_network_provision/meta/main.yml deleted file mode 100644 index 4ccb978..0000000 --- a/roles/tripleo_overcloud_network_provision/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_network_provision - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_network_provision - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_network_provision/molecule/default/converge.yml b/roles/tripleo_overcloud_network_provision/molecule/default/converge.yml deleted file mode 100644 index 4f22ec1..0000000 --- a/roles/tripleo_overcloud_network_provision/molecule/default/converge.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_network_provision_log_output: false - tripleo_overcloud_network_provision_debug: true - tasks: - - - name: "Include tripleo_overcloud_network_provision" - include_role: - name: "tripleo_overcloud_network_provision" - - - name: Check role - assert: - that: - - tripleo_overcloud_network_provision_output == "overcloud network provision -y" - - - name: Assert "tripleo_overcloud_network_provision_output_file" - include_role: - name: "tripleo_overcloud_network_provision" - vars: - tripleo_overcloud_network_provision_output_file: foo.yaml - - - name: Validate tripleo_overcloud_network_provision_output_file - assert: - that: - - tripleo_overcloud_network_provision_output == - "overcloud network provision -o foo.yaml" - - - name: Assert "tripleo_overcloud_network_provision_deployment_file" - include_role: - name: "tripleo_overcloud_network_provision" - vars: - tripleo_overcloud_network_provision_deployment_file: deploy.yaml - - - name: Validate tripleo_overcloud_network_provision_deployment_file - assert: - that: - - tripleo_overcloud_network_provision_output == - "overcloud network provision deploy.yaml" diff --git a/roles/tripleo_overcloud_network_provision/molecule/default/molecule.yml b/roles/tripleo_overcloud_network_provision/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_network_provision/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_network_provision/molecule/default/prepare.yml b/roles/tripleo_overcloud_network_provision/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_network_provision/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_network_provision/tasks/main.yml b/roles/tripleo_overcloud_network_provision/tasks/main.yml deleted file mode 100644 index 0edbc00..0000000 --- a/roles/tripleo_overcloud_network_provision/tasks/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# tasks file for tripleo_overcloud_network_provision -- name: Set overcloud network provision facts - set_fact: - _provision_cmd: >- - {{ tripleo_overcloud_network_provision_os_cloud | ternary('', "source " ~ tripleo_overcloud_network_provision_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud network provision -y - {{ tripleo_overcloud_network_provision_output_file | ternary('-o $PROVISION_OUTPUT', '') }} - {{ tripleo_overcloud_network_provision_deployment_file }} - {{ tripleo_overcloud_network_provision_log_output | ternary((">" ~ tripleo_overcloud_network_provision_log), '') }} - {{ tripleo_overcloud_network_provision_log_combine | ternary("2>&1", '') }} - _provision_env: - OS_CLOUD: "{{ tripleo_overcloud_network_provision_os_cloud }}" - PROVISION_OUTPUT: "{{ tripleo_overcloud_network_provision_output_file | quote }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_network_provision_log }}" - when: tripleo_overcloud_network_provision_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_network_provision_debug|bool - block: - - name: Show the command - debug: - var: _provision_cmd - - - name: Show the environment - debug: - var: _provision_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_network_provision_home_dir }}/tripleo_overcloud_network_provision.sh" - shell_command: "{{ _provision_cmd }}" - shell_environment: "{{ _provision_env }}" - when: tripleo_overcloud_network_provision_generate_scripts|bool - -- name: overcloud network provision - shell: "{{ _provision_cmd }}" # noqa 305 - environment: "{{ _provision_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_network_provision_home_dir }}" - register: tripleo_overcloud_network_provision_result - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_network_provision_generate_scripts_only|bool - - -- name: Set output fact - when: - - tripleo_overcloud_network_provision_result.stdout is defined - set_fact: - tripleo_overcloud_network_provision_output: "{{ tripleo_overcloud_network_provision_result.stdout }}" diff --git a/roles/tripleo_overcloud_network_provision/tests/inventory b/roles/tripleo_overcloud_network_provision/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_network_provision/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_network_provision/tests/test.yml b/roles/tripleo_overcloud_network_provision/tests/test.yml deleted file mode 100644 index 66b0333..0000000 --- a/roles/tripleo_overcloud_network_provision/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_network_provision diff --git a/roles/tripleo_overcloud_network_vip_provision/README.md b/roles/tripleo_overcloud_network_vip_provision/README.md deleted file mode 100644 index 7d9d2c6..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_overcloud_network_vip_provision -========= - -A role to perform overcloud network provisioning. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_network_vip_provision_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_network_vip_provision_deployment_file`: (String) REQUIRED. File path to the deployment file describing the networks. -* `tripleo_overcloud_network_vip_provision_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_network_vip_provision_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_network_vip_provision_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_network_vip_provision_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_network_vip_provision_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_network_vip_provision_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_network_vip_provision_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_network_vip_provision_home_dir }}/overcloud_network_vip_provision.log" -* `tripleo_overcloud_network_vip_provision_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_network_vip_provision_rc_file`. -* `tripleo_overcloud_network_vip_provision_output_file`: (String) Path to an output file. -* `tripleo_overcloud_network_vip_provision_stack`: (String) Stack name. Defaut: overcloud -* `tripleo_overcloud_network_vip_provision_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -Output Variables ----------------- - -* `tripleo_overcloud_network_vip_provision_output`: (String) The command standard output. -* `tripleo_overcloud_network_vip_provision_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example network provisioning - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud network provision - import_role: - name: tripleo_overcloud_network_vip_provision - var: - tripleo_overcloud_network_vip_provision_debug: true - tripleo_overcloud_network_vip_provision_deployment_file: /home/stack/network-data.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_network_vip_provision/defaults/main.yml b/roles/tripleo_overcloud_network_vip_provision/defaults/main.yml deleted file mode 100644 index d7419fe..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/defaults/main.yml +++ /dev/null @@ -1,15 +0,0 @@ -# defaults file for tripleo_overcloud_network_vip_provision ---- -openstack_bin: openstack -tripleo_overcloud_network_vip_provision_debug: false -tripleo_overcloud_network_vip_provision_deployment_file: -tripleo_overcloud_network_vip_provision_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_network_vip_provision_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_network_vip_provision_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_network_vip_provision_log: "{{ tripleo_overcloud_network_vip_provision_home_dir }}/overcloud_network_vip_provision.log" -tripleo_overcloud_network_vip_provision_log_combine: true -tripleo_overcloud_network_vip_provision_log_output: true -tripleo_overcloud_network_vip_provision_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_network_vip_provision_output_file: -tripleo_overcloud_network_vip_provision_stack: overcloud -tripleo_overcloud_network_vip_provision_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_network_vip_provision/meta/main.yml b/roles/tripleo_overcloud_network_vip_provision/meta/main.yml deleted file mode 100644 index dc2ef09..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_network_vip_provision - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_network_vip_provision - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_network_vip_provision/molecule/default/converge.yml b/roles/tripleo_overcloud_network_vip_provision/molecule/default/converge.yml deleted file mode 100644 index 7f8dcde..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/molecule/default/converge.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_network_vip_provision_log_output: false - tripleo_overcloud_network_vip_provision_debug: true - tasks: - - - name: "Include tripleo_overcloud_network_vip_provision" - include_role: - name: "tripleo_overcloud_network_vip_provision" - - - name: Check role - assert: - that: - - tripleo_overcloud_network_vip_provision_output == "overcloud network vip provision -y --stack overcloud" - - - name: Assert "tripleo_overcloud_network_vip_provision_output_file" - include_role: - name: "tripleo_overcloud_network_vip_provision" - vars: - tripleo_overcloud_network_vip_provision_output_file: foo.yaml - tripleo_overcloud_network_vip_provision_stack: - - - name: Validate tripleo_overcloud_network_vip_provision_output_file - assert: - that: - - tripleo_overcloud_network_vip_provision_output == - "overcloud network vip provision -y -o foo.yaml" - - - name: Assert "tripleo_overcloud_network_vip_provision_deployment_file" - include_role: - name: "tripleo_overcloud_network_vip_provision" - vars: - tripleo_overcloud_network_vip_provision_deployment_file: deploy.yaml - tripleo_overcloud_network_vip_provision_stack: - - - name: Validate tripleo_overcloud_network_vip_provision_deployment_file - assert: - that: - - tripleo_overcloud_network_vip_provision_output == - "overcloud network vip provision -y deploy.yaml" diff --git a/roles/tripleo_overcloud_network_vip_provision/molecule/default/molecule.yml b/roles/tripleo_overcloud_network_vip_provision/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_network_vip_provision/molecule/default/prepare.yml b/roles/tripleo_overcloud_network_vip_provision/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_network_vip_provision/tasks/main.yml b/roles/tripleo_overcloud_network_vip_provision/tasks/main.yml deleted file mode 100644 index a486696..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/tasks/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# tasks file for tripleo_overcloud_network_vip_provision -- name: Set overcloud network vip provision facts - set_fact: - _provision_cmd: >- - {{ tripleo_overcloud_network_vip_provision_os_cloud | ternary('', "source " ~ tripleo_overcloud_network_vip_provision_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud network vip provision -y - {{ tripleo_overcloud_network_vip_provision_output_file | ternary('-o $PROVISION_OUTPUT', '') }} - {{ tripleo_overcloud_network_vip_provision_stack | ternary ('--stack $STACK', '') }} - {{ tripleo_overcloud_network_vip_provision_deployment_file }} - {{ tripleo_overcloud_network_vip_provision_log_output | ternary((">" ~ tripleo_overcloud_network_vip_provision_log), '') }} - {{ tripleo_overcloud_network_vip_provision_log_combine | ternary("2>&1", '') }} - _provision_env: - OS_CLOUD: "{{ tripleo_overcloud_network_vip_provision_os_cloud }}" - PROVISION_OUTPUT: "{{ tripleo_overcloud_network_vip_provision_output_file | quote }}" - STACK: "{{ tripleo_overcloud_network_vip_provision_stack }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_network_vip_provision_log }}" - when: tripleo_overcloud_network_vip_provision_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_network_vip_provision_debug|bool - block: - - name: Show the command - debug: - var: _provision_cmd - - - name: Show the environment - debug: - var: _provision_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_network_vip_provision_home_dir }}/tripleo_overcloud_network_vip_provision.sh" - shell_command: "{{ _provision_cmd }}" - shell_environment: "{{ _provision_env }}" - when: tripleo_overcloud_network_vip_provision_generate_scripts|bool - -- name: overcloud network provision - shell: "{{ _provision_cmd }}" # noqa 305 - environment: "{{ _provision_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_network_vip_provision_home_dir }}" - register: tripleo_overcloud_network_vip_provision_result - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_network_vip_provision_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_network_vip_provision_result.stdout is defined - set_fact: - tripleo_overcloud_network_vip_provision_output: "{{ tripleo_overcloud_network_vip_provision_result.stdout }}" diff --git a/roles/tripleo_overcloud_network_vip_provision/tests/inventory b/roles/tripleo_overcloud_network_vip_provision/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_network_vip_provision/tests/test.yml b/roles/tripleo_overcloud_network_vip_provision/tests/test.yml deleted file mode 100644 index 8456d1e..0000000 --- a/roles/tripleo_overcloud_network_vip_provision/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_network_vip_provision diff --git a/roles/tripleo_overcloud_node_bios_configure/README.md b/roles/tripleo_overcloud_node_bios_configure/README.md deleted file mode 100644 index e417d8c..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/README.md +++ /dev/null @@ -1,54 +0,0 @@ -tripleo_overcloud_node_bios_configure -===================================== - -A role to run node BIOS configuration. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_bios_configure_all_manageable`: Configure BIOS for all nodes currently in 'manageable' state. -* `tripleo_overcloud_node_bios_configure_configuration`: BIOS configuration (YAML/JSON string or file name). -* `tripleo_overcloud_node_bios_configure_home_dir`: (String) Location to run the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_bios_configure_node_uuids`: Baremetal Node UUIDs for the node(s) to configure BIOS. -* `tripleo_overcloud_node_bios_configure_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_bios_configure_rc_file`. -* `tripleo_overcloud_node_bios_configure_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_bios_configure_output`: (String) The command standard output. -* `tripleo_overcloud_node_bios_configure_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node BIOS configuration playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Configure node BIOS - import_role: - name: tripleo_overcloud_node_bios_configure -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_bios_configure/defaults/main.yml b/roles/tripleo_overcloud_node_bios_configure/defaults/main.yml deleted file mode 100644 index 95ebc1e..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/defaults/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -# defaults file for tripleo_overcloud_node_bios_configure ---- -openstack_bin: openstack -tripleo_overcloud_node_bios_configure_all_manageable: false -tripleo_overcloud_node_bios_configure_configuration: -tripleo_overcloud_node_bios_configure_debug: false -tripleo_overcloud_node_bios_configure_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_bios_configure_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_bios_configure_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_bios_configure_node_uuids: [] -tripleo_overcloud_node_bios_configure_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_bios_configure_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_node_bios_configure/meta/main.yml b/roles/tripleo_overcloud_node_bios_configure/meta/main.yml deleted file mode 100644 index 1e5796c..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_bios_configure - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_bios_configure - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_bios_configure/molecule/default/converge.yml b/roles/tripleo_overcloud_node_bios_configure/molecule/default/converge.yml deleted file mode 100644 index 1ddd1af..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/molecule/default/converge.yml +++ /dev/null @@ -1,79 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_bios_configure" - include_role: - name: "tripleo_overcloud_node_bios_configure" - vars: - openstack_bin: echo - tripleo_overcloud_node_bios_configure_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_bios_configure_output == "overcloud node bios configure" - - - name: Check parameter "tripleo_overcloud_node_bios_configure_node_uuids" - include_role: - name: "tripleo_overcloud_node_bios_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_configure_debug: true - tripleo_overcloud_node_bios_configure_node_uuids: ['test1', 'test2'] - - - name: Assert "tripleo_overcloud_node_bios_configure_node_uuids" - assert: - that: - - tripleo_overcloud_node_bios_configure_output == "overcloud node bios configure test1 test2" - - - name: Check parameter "tripleo_overcloud_node_bios_configure_all_manageable" - include_role: - name: "tripleo_overcloud_node_bios_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_configure_debug: true - tripleo_overcloud_node_bios_configure_all_manageable: true - - - name: Assert "tripleo_overcloud_node_bios_configure_all_manageable" - assert: - that: - - tripleo_overcloud_node_bios_configure_output == "overcloud node bios configure --all-manageable" - - - name: Check parameter "tripleo_overcloud_node_bios_configure_configuration" - include_role: - name: "tripleo_overcloud_node_bios_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_configure_debug: true - tripleo_overcloud_node_bios_configure_configuration: value - - - name: Assert "tripleo_overcloud_node_bios_configure_configuration" - assert: - that: - - tripleo_overcloud_node_bios_configure_output == "overcloud node bios configure --configuration value" - - - - name: Check all parameters for role tripleo_overcloud_node_bios_configure - include_role: - name: "tripleo_overcloud_node_bios_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_configure_debug: true - tripleo_overcloud_node_bios_configure_node_uuids: ['value1', 'value2'] - tripleo_overcloud_node_bios_configure_all_manageable: true - tripleo_overcloud_node_bios_configure_configuration: value - - - name: Assert all parameters for role tripleo_overcloud_node_bios_configure - assert: - that: - - tripleo_overcloud_node_bios_configure_output == - "overcloud node bios configure value1 value2 --all-manageable --configuration value" diff --git a/roles/tripleo_overcloud_node_bios_configure/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_bios_configure/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_bios_configure/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_bios_configure/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_bios_configure/tasks/main.yml b/roles/tripleo_overcloud_node_bios_configure/tasks/main.yml deleted file mode 100644 index a9b8d5f..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/tasks/main.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_bios_configure -- name: Setup overcloud node bios configure command - set_fact: - _bios_cmd: >- - {{ tripleo_overcloud_node_bios_configure_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_bios_configure_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node bios configure - {{ tripleo_overcloud_node_bios_configure_node_uuids | join(' ') }} - {{ tripleo_overcloud_node_bios_configure_all_manageable | ternary('--all-manageable', '') }} - {{ tripleo_overcloud_node_bios_configure_configuration | ternary('--configuration ' ~ tripleo_overcloud_node_bios_configure_configuration, '') }} - - _bios_env: - OS_CLOUD: "{{ tripleo_overcloud_node_bios_configure_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_bios_configure_debug|bool - block: - - name: Show the node bios configuration command - debug: - var: _bios_cmd - - - name: Show the node bios configuration environment - debug: - var: _bios_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_bios_configure_home_dir }}/tripleo_overcloud_node_bios_configure.sh" - shell_command: "{{ _bios_cmd }}" - shell_environment: "{{ _bios_env }}" - when: tripleo_overcloud_node_bios_configure_generate_scripts|bool - -- name: Configure node bios - shell: "{{ _bios_cmd }}" # noqa 305 - environment: "{{ _bios_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_bios_configure_home_dir }}" - register: tripleo_overcloud_node_bios_configure_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_node_bios_configure_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_bios_configure_result.stdout is defined - set_fact: - tripleo_overcloud_node_bios_configure_output: "{{ tripleo_overcloud_node_bios_configure_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_bios_configure/tests/inventory b/roles/tripleo_overcloud_node_bios_configure/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_bios_configure/tests/test.yml b/roles/tripleo_overcloud_node_bios_configure/tests/test.yml deleted file mode 100644 index 4c40768..0000000 --- a/roles/tripleo_overcloud_node_bios_configure/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_bios_configure diff --git a/roles/tripleo_overcloud_node_bios_reset/README.md b/roles/tripleo_overcloud_node_bios_reset/README.md deleted file mode 100644 index 11a867e..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/README.md +++ /dev/null @@ -1,52 +0,0 @@ -tripleo_overcloud_node_bios_reset -================================= - -A role to run node BIOS reset. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_bios_reset_all_manageable`: Reset BIOS on all nodes currently in 'manageable' state. -* `tripleo_overcloud_node_bios_reset_node_uuids`: Baremetal Node UUIDs for the node(s) to reset BIOS. -* `tripleo_overcloud_node_bios_reset_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_bios_reset_rc_file`. -* `tripleo_overcloud_node_bios_reset_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_bios_reset_output`: (String) The command standard output. -* `tripleo_overcloud_node_bios_reset_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node BIOS reset playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Reset node BIOS - import_role: - name: tripleo_overcloud_node_bios_reset -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_bios_reset/defaults/main.yml b/roles/tripleo_overcloud_node_bios_reset/defaults/main.yml deleted file mode 100644 index 346388f..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/defaults/main.yml +++ /dev/null @@ -1,8 +0,0 @@ -# defaults file for tripleo_overcloud_node_bios_reset ---- -openstack_bin: openstack -tripleo_overcloud_node_bios_reset_all_manageable: false -tripleo_overcloud_node_bios_reset_debug: false -tripleo_overcloud_node_bios_reset_node_uuids: [] -tripleo_overcloud_node_bios_reset_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_bios_reset_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_node_bios_reset/meta/main.yml b/roles/tripleo_overcloud_node_bios_reset/meta/main.yml deleted file mode 100644 index f2425ab..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_bios_reset - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_bios_reset - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_bios_reset/molecule/default/converge.yml b/roles/tripleo_overcloud_node_bios_reset/molecule/default/converge.yml deleted file mode 100644 index 0505b6a..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/molecule/default/converge.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_bios_reset" - include_role: - name: "tripleo_overcloud_node_bios_reset" - vars: - openstack_bin: echo - tripleo_overcloud_node_bios_reset_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_bios_reset_output == "overcloud node bios reset" - - - name: Check parameter "tripleo_overcloud_node_bios_reset_node_uuids" - include_role: - name: "tripleo_overcloud_node_bios_reset" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_reset_debug: true - tripleo_overcloud_node_bios_reset_node_uuids: ['test1', 'test2'] - - - name: Assert "tripleo_overcloud_node_bios_reset_node_uuids" - assert: - that: - - tripleo_overcloud_node_bios_reset_output == "overcloud node bios reset test1 test2" - - - name: Check parameter "tripleo_overcloud_node_bios_reset_all_manageable" - include_role: - name: "tripleo_overcloud_node_bios_reset" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_reset_debug: true - tripleo_overcloud_node_bios_reset_all_manageable: true - - - name: Assert "tripleo_overcloud_node_bios_reset_all_manageable" - assert: - that: - - tripleo_overcloud_node_bios_reset_output == "overcloud node bios reset --all-manageable" - - - - name: Check all parameters for role tripleo_overcloud_node_bios_reset - include_role: - name: "tripleo_overcloud_node_bios_reset" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_bios_reset_debug: true - tripleo_overcloud_node_bios_reset_node_uuids: ['value1', 'value2'] - tripleo_overcloud_node_bios_reset_all_manageable: true - - - name: Assert all parameters for role tripleo_overcloud_node_bios_reset - assert: - that: - - tripleo_overcloud_node_bios_reset_output == - "overcloud node bios reset value1 value2 --all-manageable" diff --git a/roles/tripleo_overcloud_node_bios_reset/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_bios_reset/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_bios_reset/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_bios_reset/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_bios_reset/tasks/main.yml b/roles/tripleo_overcloud_node_bios_reset/tasks/main.yml deleted file mode 100644 index cf3f5fe..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/tasks/main.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_bios_reset -- name: Setup overcloud node bios reset command - set_fact: - _reset_cmd: >- - {{ tripleo_overcloud_node_bios_reset_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_bios_reset_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node bios reset - {{ tripleo_overcloud_node_bios_reset_node_uuids | join(' ') }} - {{ tripleo_overcloud_node_bios_reset_all_manageable | ternary('--all-manageable', '') }} - - _reset_env: - OS_CLOUD: "{{ tripleo_overcloud_node_bios_reset_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_bios_reset_debug|bool - block: - - name: Show the node bios reset command - debug: - var: _reset_cmd - - - name: Show the node bios reset environment - debug: - var: _reset_env - -- name: Reset node BIOS - shell: "{{ _reset_cmd }}" # noqa 305 - environment: "{{ _reset_env }}" - register: tripleo_overcloud_node_bios_reset_result - changed_when: true - -- name: Set output fact - when: - - tripleo_overcloud_node_bios_reset_result.stdout is defined - set_fact: - tripleo_overcloud_node_bios_reset_output: "{{ tripleo_overcloud_node_bios_reset_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_bios_reset/tests/inventory b/roles/tripleo_overcloud_node_bios_reset/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_bios_reset/tests/test.yml b/roles/tripleo_overcloud_node_bios_reset/tests/test.yml deleted file mode 100644 index 9ba1c95..0000000 --- a/roles/tripleo_overcloud_node_bios_reset/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_bios_reset diff --git a/roles/tripleo_overcloud_node_clean/README.md b/roles/tripleo_overcloud_node_clean/README.md deleted file mode 100644 index 988d5a8..0000000 --- a/roles/tripleo_overcloud_node_clean/README.md +++ /dev/null @@ -1,53 +0,0 @@ -tripleo_overcloud_node_clean -============================ - -A role to run node clean. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_clean_all_manageable`: Clean all nodes currently in 'manageable' state -* `tripleo_overcloud_node_clean_node_uuids`: Baremetal Node UUIDs for the node(s) to be cleaned -* `tripleo_overcloud_node_clean_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_clean_rc_file`. -* `tripleo_overcloud_node_clean_provide`: Provide (make available) the nodes once cleaned. -* `tripleo_overcloud_node_clean_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_clean_output`: (String) The command standard output. -* `tripleo_overcloud_node_clean_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node clean playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Clean node - import_role: - name: tripleo_overcloud_node_clean -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_clean/defaults/main.yml b/roles/tripleo_overcloud_node_clean/defaults/main.yml deleted file mode 100644 index 885380e..0000000 --- a/roles/tripleo_overcloud_node_clean/defaults/main.yml +++ /dev/null @@ -1,9 +0,0 @@ -# defaults file for tripleo_overcloud_node_clean ---- -openstack_bin: openstack -tripleo_overcloud_node_clean_all_manageable: false -tripleo_overcloud_node_clean_debug: false -tripleo_overcloud_node_clean_node_uuids: [] -tripleo_overcloud_node_clean_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_clean_provide: false -tripleo_overcloud_node_clean_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_node_clean/meta/main.yml b/roles/tripleo_overcloud_node_clean/meta/main.yml deleted file mode 100644 index eaf1153..0000000 --- a/roles/tripleo_overcloud_node_clean/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_clean - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_clean - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_clean/molecule/default/converge.yml b/roles/tripleo_overcloud_node_clean/molecule/default/converge.yml deleted file mode 100644 index 9620c60..0000000 --- a/roles/tripleo_overcloud_node_clean/molecule/default/converge.yml +++ /dev/null @@ -1,79 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_clean" - include_role: - name: "tripleo_overcloud_node_clean" - vars: - openstack_bin: echo - tripleo_overcloud_node_clean_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_clean_output == "overcloud node clean" - - - name: Check parameter "tripleo_overcloud_node_clean_node_uuids" - include_role: - name: "tripleo_overcloud_node_clean" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_clean_debug: true - tripleo_overcloud_node_clean_node_uuids: ['test1', 'test2'] - - - name: Assert "tripleo_overcloud_node_clean_node_uuids" - assert: - that: - - tripleo_overcloud_node_clean_output == "overcloud node clean test1 test2" - - - name: Check parameter "tripleo_overcloud_node_clean_all_manageable" - include_role: - name: "tripleo_overcloud_node_clean" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_clean_debug: true - tripleo_overcloud_node_clean_all_manageable: true - - - name: Assert "tripleo_overcloud_node_clean_all_manageable" - assert: - that: - - tripleo_overcloud_node_clean_output == "overcloud node clean --all-manageable" - - - name: Check parameter "tripleo_overcloud_node_clean_provide" - include_role: - name: "tripleo_overcloud_node_clean" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_clean_debug: true - tripleo_overcloud_node_clean_provide: true - - - name: Assert "tripleo_overcloud_node_clean_provide" - assert: - that: - - tripleo_overcloud_node_clean_output == "overcloud node clean --provide" - - - - name: Check all parameters for role tripleo_overcloud_node_clean - include_role: - name: "tripleo_overcloud_node_clean" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_clean_debug: true - tripleo_overcloud_node_clean_node_uuids: ['value1', 'value2'] - tripleo_overcloud_node_clean_all_manageable: true - tripleo_overcloud_node_clean_provide: true - - - name: Assert all parameters for role tripleo_overcloud_node_clean - assert: - that: - - tripleo_overcloud_node_clean_output == - "overcloud node clean value1 value2 --all-manageable --provide" diff --git a/roles/tripleo_overcloud_node_clean/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_clean/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_clean/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_clean/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_clean/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_clean/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_clean/tasks/main.yml b/roles/tripleo_overcloud_node_clean/tasks/main.yml deleted file mode 100644 index 367400f..0000000 --- a/roles/tripleo_overcloud_node_clean/tasks/main.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_clean -- name: Setup overcloud node clean command - set_fact: - _clean_cmd: >- - {{ tripleo_overcloud_node_clean_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_clean_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node clean - {{ tripleo_overcloud_node_clean_node_uuids | join(' ') }} - {{ tripleo_overcloud_node_clean_all_manageable | ternary('--all-manageable', '') }} - {{ tripleo_overcloud_node_clean_provide | ternary('--provide', '') }} - _clean_env: - OS_CLOUD: "{{ tripleo_overcloud_node_clean_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_clean_debug|bool - block: - - name: Show the node clean command - debug: - var: _clean_cmd - - - name: Show the node clean environment - debug: - var: _clean_env - -- name: Clean node - shell: "{{ _clean_cmd }}" # noqa 305 - environment: "{{ _clean_env }}" - register: tripleo_overcloud_node_clean_result - changed_when: true - -- name: Set output fact - when: - - tripleo_overcloud_node_clean_result.stdout is defined - set_fact: - tripleo_overcloud_node_clean_output: "{{ tripleo_overcloud_node_clean_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_clean/tests/inventory b/roles/tripleo_overcloud_node_clean/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_clean/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_clean/tests/test.yml b/roles/tripleo_overcloud_node_clean/tests/test.yml deleted file mode 100644 index dfd7212..0000000 --- a/roles/tripleo_overcloud_node_clean/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_clean diff --git a/roles/tripleo_overcloud_node_configure/README.md b/roles/tripleo_overcloud_node_configure/README.md deleted file mode 100644 index 1c452d1..0000000 --- a/roles/tripleo_overcloud_node_configure/README.md +++ /dev/null @@ -1,60 +0,0 @@ -tripleo_overcloud_node_configure -======================== - -A role to run a node configuration. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_configure_node_uuids`: Baremetal Node UUIDs for the node(s) to be configured -* `tripleo_overcloud_node_configure_all_manageable`: Configure all nodes currently in 'manageable' state -* `tripleo_overcloud_node_configure_deploy_kernel`: Image with deploy kernel. -* `tripleo_overcloud_node_configure_deploy_ramdisk`: Image with deploy ramdisk. -* `tripleo_overcloud_node_configure_instance_boot_option`: Whether to set instances for booting from local hard drive (local) or network (netboot). -* `tripleo_overcloud_node_configure_root_device`: Define the root device for nodes. - Can be either a list of device names (without /dev) to choose from or one of two strategies: largest or smallest. - For it to work this command should be run after the introspection. -* `tripleo_overcloud_node_configure_root_device_minimum_size`: Minimum size (in GiB) of the detected root device. Used with --root-device. -* `tripleo_overcloud_node_configure_overwrite_root_device_hints`: Whether to overwrite existing root device hints when --root-device is used. -* `tripleo_overcloud_node_configure_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_configure_rc_file`. -* `tripleo_overcloud_node_configure_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_configure_output`: (String) The command standard output. -* `tripleo_overcloud_node_configure_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node configuration playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Configure node - import_role: - name: tripleo_overcloud_node_configure -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_configure/defaults/main.yml b/roles/tripleo_overcloud_node_configure/defaults/main.yml deleted file mode 100644 index 1bee745..0000000 --- a/roles/tripleo_overcloud_node_configure/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_node_configure ---- -openstack_bin: openstack -tripleo_overcloud_node_configure_all_manageable: false -tripleo_overcloud_node_configure_debug: false -tripleo_overcloud_node_configure_deploy_kernel: -tripleo_overcloud_node_configure_deploy_ramdisk: -tripleo_overcloud_node_configure_instance_boot_option: -tripleo_overcloud_node_configure_node_uuids: [] -tripleo_overcloud_node_configure_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_configure_overwrite_root_device_hints: false -tripleo_overcloud_node_configure_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_configure_root_device: -tripleo_overcloud_node_configure_root_device_minimum_size: diff --git a/roles/tripleo_overcloud_node_configure/meta/main.yml b/roles/tripleo_overcloud_node_configure/meta/main.yml deleted file mode 100644 index 5b53e55..0000000 --- a/roles/tripleo_overcloud_node_configure/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_configure - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_configure - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_configure/molecule/default/converge.yml b/roles/tripleo_overcloud_node_configure/molecule/default/converge.yml deleted file mode 100644 index 04652fb..0000000 --- a/roles/tripleo_overcloud_node_configure/molecule/default/converge.yml +++ /dev/null @@ -1,155 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_configure" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_overcloud_node_configure_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure" - - - name: Check parameter "tripleo_overcloud_node_configure_node_uuids" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_node_uuids: ['test1', 'test2'] - - - name: Assert "tripleo_overcloud_node_configure_node_uuids" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure test1 test2" - - - name: Check parameter "tripleo_overcloud_node_configure_all_manageable" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_all_manageable: true - - - name: Assert "tripleo_overcloud_node_configure_all_manageable" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --all-manageable" - - - name: Check parameter "tripleo_overcloud_node_configure_deploy_kernel" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_deploy_kernel: value - - - name: Assert "tripleo_overcloud_node_configure_deploy_kernel" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --deploy-kernel value" - - - name: Check parameter "tripleo_overcloud_node_configure_deploy_ramdisk" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_deploy_ramdisk: value - - - name: Assert "tripleo_overcloud_node_configure_deploy_ramdisk" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --deploy-ramdisk value" - - - name: Check parameter "tripleo_overcloud_node_configure_instance_boot_option" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_instance_boot_option: value - - - name: Assert "tripleo_overcloud_node_configure_instance_boot_option" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --instance-boot-option value" - - - name: Check parameter "tripleo_overcloud_node_configure_root_device" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_root_device: value - - - name: Assert "tripleo_overcloud_node_configure_root_device" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --root-device value" - - - name: Check parameter "tripleo_overcloud_node_configure_root_device_minimum_size" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_root_device_minimum_size: value - - - name: Assert "tripleo_overcloud_node_configure_root_device_minimum_size" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --root-device-minimum-size value" - - - name: Check parameter "tripleo_overcloud_node_configure_overwrite_root_device_hints" - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_overwrite_root_device_hints: true - - - name: Assert "tripleo_overcloud_node_configure_overwrite_root_device_hints" - assert: - that: - - tripleo_overcloud_node_configure_output == "overcloud node configure --overwrite-root-device-hints" - - - - name: Check all parameters for role tripleo_overcloud_node_configure - include_role: - name: "tripleo_overcloud_node_configure" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_configure_debug: true - tripleo_overcloud_node_configure_node_uuids: ['value1', 'value2'] - tripleo_overcloud_node_configure_all_manageable: true - tripleo_overcloud_node_configure_deploy_kernel: value - tripleo_overcloud_node_configure_deploy_ramdisk: value - tripleo_overcloud_node_configure_instance_boot_option: value - tripleo_overcloud_node_configure_root_device: value - tripleo_overcloud_node_configure_root_device_minimum_size: value - tripleo_overcloud_node_configure_overwrite_root_device_hints: true - - - name: Assert all parameters for role tripleo_overcloud_node_configure - assert: - that: - - tripleo_overcloud_node_configure_output == - "overcloud node configure value1 value2 --all-manageable --deploy-kernel value --deploy-ramdisk value --instance-boot-option value - --root-device value --root-device-minimum-size value --overwrite-root-device-hints" diff --git a/roles/tripleo_overcloud_node_configure/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_configure/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_configure/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_configure/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_configure/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_configure/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_configure/tasks/main.yml b/roles/tripleo_overcloud_node_configure/tasks/main.yml deleted file mode 100644 index 12112f4..0000000 --- a/roles/tripleo_overcloud_node_configure/tasks/main.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_configure -- name: Setup overcloud node configure command - set_fact: - _configure_cmd: >- - {{ tripleo_overcloud_node_configure_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_configure_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node configure - {{ tripleo_overcloud_node_configure_node_uuids | join(' ') }} - {{ tripleo_overcloud_node_configure_all_manageable | ternary('--all-manageable', '') }} - {{ tripleo_overcloud_node_configure_deploy_kernel | ternary('--deploy-kernel ' ~ tripleo_overcloud_node_configure_deploy_kernel, '') }} - {{ tripleo_overcloud_node_configure_deploy_ramdisk | ternary('--deploy-ramdisk ' ~ tripleo_overcloud_node_configure_deploy_ramdisk, '') }} - {{ tripleo_overcloud_node_configure_instance_boot_option | ternary('--instance-boot-option ' - ~ tripleo_overcloud_node_configure_instance_boot_option, '') }} - {{ tripleo_overcloud_node_configure_root_device | ternary('--root-device ' ~ tripleo_overcloud_node_configure_root_device, '') }} - {{ tripleo_overcloud_node_configure_root_device_minimum_size | ternary('--root-device-minimum-size ' - ~ tripleo_overcloud_node_configure_root_device_minimum_size, '') }} - {{ tripleo_overcloud_node_configure_overwrite_root_device_hints | ternary('--overwrite-root-device-hints', '') }} - _configure_env: - OS_CLOUD: "{{ tripleo_overcloud_node_configure_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_configure_debug|bool - block: - - name: Show the node configure command - debug: - var: _configure_cmd - - - name: Show the node configure envrionment - debug: - var: _configure_env - -- name: Configure node - shell: "{{ _configure_cmd }}" # noqa 305 - environment: "{{ _configure_env }}" - register: tripleo_overcloud_node_configure_result - changed_when: true - -- name: Set output fact - when: - - tripleo_overcloud_node_configure_result.stdout is defined - set_fact: - tripleo_overcloud_node_configure_output: "{{ tripleo_overcloud_node_configure_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_configure/tests/inventory b/roles/tripleo_overcloud_node_configure/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_configure/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_configure/tests/test.yml b/roles/tripleo_overcloud_node_configure/tests/test.yml deleted file mode 100644 index 1ce58e7..0000000 --- a/roles/tripleo_overcloud_node_configure/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_configure diff --git a/roles/tripleo_overcloud_node_delete/README.md b/roles/tripleo_overcloud_node_delete/README.md deleted file mode 100644 index 45ea9df..0000000 --- a/roles/tripleo_overcloud_node_delete/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_node_delete -======================== - -A role to run node delete. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_delete_nodes`: (List) Node ID(s) to delete (otherwise specified in the --baremetal-deployment file) -* `tripleo_overcloud_node_delete_baremetal_deployment`: Configuration file describing the baremetal deployment -* `tripleo_overcloud_node_delete_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_node_delete_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_node_delete_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_node_delete_home_dir`: (String) Location to run the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_delete_stack`: Name or ID of heat stack to scale (default=Env: OVERCLOUD_STACK_NAME) -* `tripleo_overcloud_node_delete_templates`: The directory containing the Heat templates to deploy. - This argument is deprecated. The command now utilizes a deployment plan, which should be updated prior to running this - command, should that be required. Otherwise this argument will be silently ignored. -* `tripleo_overcloud_node_delete_environment_file`: Environment files to be passed to the heat stack-create or heat stack-update command. - (Can be specified more than once.) This argument is deprecated. The command now utilizes a deployment plan, - which should be updated prior to running this command, should that be required. Otherwise this argument will be silently ignored. -* `tripleo_overcloud_node_delete_timeout`: Timeout in minutes to wait for the nodes to be deleted. - Keep in mind that due to keystone session duration that timeout has an upper bound of 4 hours -* `tripleo_overcloud_node_delete_yes`: Skip yes/no prompt (assume yes) -* `tripleo_overcloud_node_delete_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_delete_rc_file`. -* `tripleo_overcloud_node_delete_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_delete_output`: (String) The command standard output. -* `tripleo_overcloud_node_delete_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node delete playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Delete node - import_role: - name: tripleo_overcloud_node_delete -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_delete/defaults/main.yml b/roles/tripleo_overcloud_node_delete/defaults/main.yml deleted file mode 100644 index 0de05c2..0000000 --- a/roles/tripleo_overcloud_node_delete/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -# defaults file for tripleo_overcloud_node_delete ---- -openstack_bin: openstack -tripleo_overcloud_node_delete_baremetal_deployment: -tripleo_overcloud_node_delete_debug: false -tripleo_overcloud_node_delete_environment_file: -tripleo_overcloud_node_delete_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_delete_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_delete_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_delete_nodes: [] -tripleo_overcloud_node_delete_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_delete_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_delete_stack: "{{ ansible_env.OVERCLOUD_STACK_NAME|default('') }}" -tripleo_overcloud_node_delete_templates: -tripleo_overcloud_node_delete_timeout: -tripleo_overcloud_node_delete_yes: true diff --git a/roles/tripleo_overcloud_node_delete/meta/main.yml b/roles/tripleo_overcloud_node_delete/meta/main.yml deleted file mode 100644 index 9e78679..0000000 --- a/roles/tripleo_overcloud_node_delete/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_delete - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_delete - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_delete/molecule/default/converge.yml b/roles/tripleo_overcloud_node_delete/molecule/default/converge.yml deleted file mode 100644 index c5a2c7b..0000000 --- a/roles/tripleo_overcloud_node_delete/molecule/default/converge.yml +++ /dev/null @@ -1,140 +0,0 @@ ---- -- name: Converge - hosts: all - gather_facts: true - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_delete" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_overcloud_node_delete_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_nodes" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_nodes: ['test1', 'test2'] - - - name: Assert "tripleo_overcloud_node_delete_nodes" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete test1 test2 --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_baremetal_deployment" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_baremetal_deployment: value - - - name: Assert "tripleo_overcloud_node_delete_baremetal_deployment" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --baremetal-deployment value --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_stack" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_stack: value - - - name: Assert "tripleo_overcloud_node_delete_stack" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --stack value --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_templates" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_templates: value - - - name: Assert "tripleo_overcloud_node_delete_templates" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --templates value --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_environment_file" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_environment_file: value - - - name: Assert "tripleo_overcloud_node_delete_environment_file" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --environment-file value --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_timeout" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_timeout: value - - - name: Assert "tripleo_overcloud_node_delete_timeout" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete --timeout value --yes" - - - name: Check parameter "tripleo_overcloud_node_delete_yes" - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_yes: false - - - name: Assert "tripleo_overcloud_node_delete_yes" - assert: - that: - - tripleo_overcloud_node_delete_output == "overcloud node delete" - - - - name: Check all parameters for role tripleo_overcloud_node_delete - include_role: - name: "tripleo_overcloud_node_delete" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_delete_debug: true - tripleo_overcloud_node_delete_nodes: ['value1', 'value2'] - tripleo_overcloud_node_delete_baremetal_deployment: value - tripleo_overcloud_node_delete_stack: value - tripleo_overcloud_node_delete_templates: value - tripleo_overcloud_node_delete_environment_file: value - tripleo_overcloud_node_delete_timeout: value - tripleo_overcloud_node_delete_yes: true - - - name: Assert all parameters for role tripleo_overcloud_node_delete - assert: - that: - - tripleo_overcloud_node_delete_output == - "overcloud node delete value1 value2 --baremetal-deployment value --stack value --templates value --environment-file value --timeout value --yes" diff --git a/roles/tripleo_overcloud_node_delete/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_delete/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_delete/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_delete/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_delete/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_delete/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_delete/tasks/main.yml b/roles/tripleo_overcloud_node_delete/tasks/main.yml deleted file mode 100644 index d5f7482..0000000 --- a/roles/tripleo_overcloud_node_delete/tasks/main.yml +++ /dev/null @@ -1,53 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_delete -- name: Setup overcloud node delete command - set_fact: - _delete_cmd: >- - {{ tripleo_overcloud_node_delete_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_delete_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node delete - {{ tripleo_overcloud_node_delete_nodes | join(' ') }} - {{ tripleo_overcloud_node_delete_baremetal_deployment | ternary('--baremetal-deployment ' ~ tripleo_overcloud_node_delete_baremetal_deployment, '') }} - {{ tripleo_overcloud_node_delete_stack | ternary('--stack ' ~ tripleo_overcloud_node_delete_stack, '') }} - {{ tripleo_overcloud_node_delete_templates | ternary('--templates ' ~ tripleo_overcloud_node_delete_templates, '') }} - {{ tripleo_overcloud_node_delete_environment_file | tripleo.operator.shell_arg_list('--environment-file') }} - {{ tripleo_overcloud_node_delete_timeout | ternary('--timeout ' ~ tripleo_overcloud_node_delete_timeout, '') }} - {{ tripleo_overcloud_node_delete_yes | ternary('--yes', '') }} - - _delete_env: - OS_CLOUD: "{{ tripleo_overcloud_node_delete_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_delete_debug|bool - block: - - name: Show the node delete command - debug: - var: _delete_cmd - - - name: Show the node delete environment - debug: - var: _delete_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_delete_home_dir }}/tripleo_overcloud_node_delete.sh" - shell_command: "{{ _delete_cmd }}" - shell_environment: "{{ _delete_env }}" - when: tripleo_overcloud_node_delete_generate_scripts|bool - -- name: Delete node - shell: "{{ _delete_cmd }}" # noqa 305 - environment: "{{ _delete_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_delete_home_dir }}" - register: tripleo_overcloud_node_delete_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_node_delete_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_delete_result.stdout is defined - set_fact: - tripleo_overcloud_node_delete_output: "{{ tripleo_overcloud_node_delete_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_delete/tests/inventory b/roles/tripleo_overcloud_node_delete/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_delete/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_delete/tests/test.yml b/roles/tripleo_overcloud_node_delete/tests/test.yml deleted file mode 100644 index dffc51c..0000000 --- a/roles/tripleo_overcloud_node_delete/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_delete diff --git a/roles/tripleo_overcloud_node_discover/README.md b/roles/tripleo_overcloud_node_discover/README.md deleted file mode 100644 index 0b02255..0000000 --- a/roles/tripleo_overcloud_node_discover/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_node_discover -======================== - -A role to run node discover. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_discover_ip`: IP address(es) to probe. -* `tripleo_overcloud_node_discover_range`: IP range to probe. -* `tripleo_overcloud_node_discover_credentials`: Key/value pairs of possible credentials. -* `tripleo_overcloud_node_discover_port`: BMC port(s) to probe. -* `tripleo_overcloud_node_discover_introspect`: (Bool) Introspect the imported nodes. -* `tripleo_overcloud_node_discover_run_validations`: (Bool) Run the pre-deployment validations. These external validations are - from the TripleO Validations project. -* `tripleo_overcloud_node_discover_provide`: (Bool) Provide (make available) the nodes. -* `tripleo_overcloud_node_discover_no_deploy_image`: (Bool) Skip setting the deploy kernel and ramdisk. -* `tripleo_overcloud_node_discover_instance_boot_option`: Whether to set instances for booting from local hard drive (local) - or network (netboot). -* `tripleo_overcloud_node_discover_concurrency`: Maximum number of nodes to introspect at once. -* `tripleo_overcloud_node_discover_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_discover_rc_file`. -* `tripleo_overcloud_node_discover_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_introspect_node_timeout`: (Integer) Maximum timeout for node introspection. -* `tripleo_overcloud_node_introspect_max_retries`: (Integer) Maximum introspection retries. -* `tripleo_overcloud_node_introspect_retry_timeout`: (Integer) Maximum timeout between introspection retries. - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_discover_output`: (String) The command standard output. -* `tripleo_overcloud_node_discover_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node discover playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Discover node - import_role: - name: tripleo_overcloud_node_discover -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_discover/defaults/main.yml b/roles/tripleo_overcloud_node_discover/defaults/main.yml deleted file mode 100644 index 54c1ade..0000000 --- a/roles/tripleo_overcloud_node_discover/defaults/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -# defaults file for tripleo_overcloud_node_discover ---- -openstack_bin: openstack -tripleo_overcloud_node_discover_concurrency: -tripleo_overcloud_node_discover_credentials: -tripleo_overcloud_node_discover_debug: false -tripleo_overcloud_node_discover_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_discover_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_discover_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_discover_instance_boot_option: -tripleo_overcloud_node_discover_introspect: false -tripleo_overcloud_node_discover_ip: -tripleo_overcloud_node_discover_no_deploy_image: false -tripleo_overcloud_node_discover_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_discover_port: -tripleo_overcloud_node_discover_provide: false -tripleo_overcloud_node_discover_range: -tripleo_overcloud_node_discover_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_discover_run_validations: false -tripleo_overcloud_node_introspect_node_timeout: -tripleo_overcloud_node_introspect_max_retries: -tripleo_overcloud_node_introspect_retry_timeout: diff --git a/roles/tripleo_overcloud_node_discover/meta/main.yml b/roles/tripleo_overcloud_node_discover/meta/main.yml deleted file mode 100644 index de78d7d..0000000 --- a/roles/tripleo_overcloud_node_discover/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_discover - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_discover - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_discover/molecule/default/converge.yml b/roles/tripleo_overcloud_node_discover/molecule/default/converge.yml deleted file mode 100644 index 0b85f1f..0000000 --- a/roles/tripleo_overcloud_node_discover/molecule/default/converge.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_discover" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_overcloud_node_discover_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover" - - - name: Check parameter "tripleo_overcloud_node_discover_ip" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_ip: value - - - name: Assert "tripleo_overcloud_node_discover_ip" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --ip value" - - - name: Check parameter "tripleo_overcloud_node_discover_range" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_range: value - - - name: Assert "tripleo_overcloud_node_discover_range" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --range value" - - - name: Check parameter "tripleo_overcloud_node_discover_credentials" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_credentials: value - - - name: Assert "tripleo_overcloud_node_discover_credentials" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --credentials value" - - - name: Check parameter "tripleo_overcloud_node_discover_port" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_port: value - - - name: Assert "tripleo_overcloud_node_discover_port" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --port value" - - - name: Check parameter "tripleo_overcloud_node_discover_introspect" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_introspect: true - - - name: Assert "tripleo_overcloud_node_discover_introspect" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --introspect" - - - name: Check parameter "tripleo_overcloud_node_discover_run_validations" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_run_validations: true - - - name: Assert "tripleo_overcloud_node_discover_run_validations" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --run-validations" - - - name: Check parameter "tripleo_overcloud_node_introspect_node_timeout" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_node_timeout: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_node_timeout" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --node-timeout value" - - - name: Check parameter "tripleo_overcloud_node_introspect_max_retries" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_max_retries: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_max_retries" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --max-retries value" - - - name: Check parameter "tripleo_overcloud_node_introspect_retry_timeout" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_retry_timeout: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_retry_timeout" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --retry-timeout value" - - - name: Check parameter "tripleo_overcloud_node_discover_provide" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_provide: true - - - name: Assert "tripleo_overcloud_node_discover_provide" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --provide" - - - name: Check parameter "tripleo_overcloud_node_discover_no_deploy_image" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_no_deploy_image: true - - - name: Assert "tripleo_overcloud_node_discover_no_deploy_image" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --no-deploy-image" - - - name: Check parameter "tripleo_overcloud_node_discover_instance_boot_option" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_instance_boot_option: value - - - name: Assert "tripleo_overcloud_node_discover_instance_boot_option" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --instance-boot-option value" - - - name: Check parameter "tripleo_overcloud_node_discover_concurrency" - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_concurrency: value - - - name: Assert "tripleo_overcloud_node_discover_concurrency" - assert: - that: - - tripleo_overcloud_node_discover_output == "overcloud node discover --concurrency value" - - - - name: Check all parameters for role tripleo_overcloud_node_discover - include_role: - name: "tripleo_overcloud_node_discover" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_discover_debug: true - tripleo_overcloud_node_discover_ip: value - tripleo_overcloud_node_discover_range: value - tripleo_overcloud_node_discover_credentials: value - tripleo_overcloud_node_discover_port: value - tripleo_overcloud_node_discover_introspect: true - tripleo_overcloud_node_discover_run_validations: true - tripleo_overcloud_node_discover_provide: true - tripleo_overcloud_node_discover_no_deploy_image: true - tripleo_overcloud_node_discover_instance_boot_option: value - tripleo_overcloud_node_discover_concurrency: value - tripleo_overcloud_node_introspect_node_timeout: 60 - tripleo_overcloud_node_introspect_max_retries: 2 - tripleo_overcloud_node_introspect_retry_timeout: 120 - - - name: Assert all parameters for role tripleo_overcloud_node_discover - assert: - that: - - tripleo_overcloud_node_discover_output == - "overcloud node discover --ip value --range value --credentials value --port value --introspect - --run-validations --node-timeout 60 --max-retries 2 --retry-timeout 120 --provide --no-deploy-image - --instance-boot-option value --concurrency value" diff --git a/roles/tripleo_overcloud_node_discover/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_discover/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_discover/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_discover/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_discover/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_discover/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_discover/tasks/main.yml b/roles/tripleo_overcloud_node_discover/tasks/main.yml deleted file mode 100644 index 9006e57..0000000 --- a/roles/tripleo_overcloud_node_discover/tasks/main.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_discover -- name: Setup overcloud node discover command - set_fact: - _discover_cmd: >- - {{ tripleo_overcloud_node_discover_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_discover_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node discover - {{ tripleo_overcloud_node_discover_ip | tripleo.operator.shell_arg_list('--ip') }} - {{ tripleo_overcloud_node_discover_range | ternary('--range ' ~ tripleo_overcloud_node_discover_range, '') }} - {{ tripleo_overcloud_node_discover_credentials | tripleo.operator.shell_arg_list('--credentials') }} - {{ tripleo_overcloud_node_discover_port | tripleo.operator.shell_arg_list('--port') }} - {{ tripleo_overcloud_node_discover_introspect | ternary('--introspect', '') }} - {{ tripleo_overcloud_node_discover_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_node_introspect_node_timeout | ternary('--node-timeout ' ~ tripleo_overcloud_node_introspect_node_timeout, '') }} - {{ tripleo_overcloud_node_introspect_max_retries | ternary('--max-retries ' ~ tripleo_overcloud_node_introspect_max_retries, '') }} - {{ tripleo_overcloud_node_introspect_retry_timeout | ternary('--retry-timeout ' ~ tripleo_overcloud_node_introspect_retry_timeout, '') }} - {{ tripleo_overcloud_node_discover_provide | ternary('--provide', '') }} - {{ tripleo_overcloud_node_discover_no_deploy_image | ternary('--no-deploy-image', '') }} - {{ tripleo_overcloud_node_discover_instance_boot_option | ternary('--instance-boot-option ' - ~ tripleo_overcloud_node_discover_instance_boot_option, '') }} - {{ tripleo_overcloud_node_discover_concurrency | ternary('--concurrency ' ~ tripleo_overcloud_node_discover_concurrency, '') }} - - _discover_env: - OS_CLOUD: "{{ tripleo_overcloud_node_discover_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_discover_debug|bool - block: - - name: Show the node discover command - debug: - var: _discover_cmd - - - name: Show the node discover environment - debug: - var: _discover_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_discover_home_dir }}/tripleo_overcloud_node_discover.sh" - shell_command: "{{ _discover_cmd }}" - shell_environment: "{{ _discover_env }}" - when: tripleo_overcloud_node_discover_generate_scripts|bool - -- name: Discover node - shell: "{{ _discover_cmd }}" # noqa 305 - environment: "{{ _discover_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_discover_home_dir }}" - register: tripleo_overcloud_node_discover_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_node_discover_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_discover_result.stdout is defined - set_fact: - tripleo_overcloud_node_discover_output: "{{ tripleo_overcloud_node_discover_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_discover/tests/inventory b/roles/tripleo_overcloud_node_discover/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_discover/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_discover/tests/test.yml b/roles/tripleo_overcloud_node_discover/tests/test.yml deleted file mode 100644 index 7942787..0000000 --- a/roles/tripleo_overcloud_node_discover/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_discover diff --git a/roles/tripleo_overcloud_node_extract_provisioned/README.md b/roles/tripleo_overcloud_node_extract_provisioned/README.md deleted file mode 100644 index 13a9ed9..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_overcloud_node_extract_provisioned -========= - -A role to extract the currently provisioned nodes in a format compatible with the -tripleo_overcloud_node_provision role. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_extract_provisioned_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_node_extract_provisioned_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_extract_provisioned_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_node_extract_provisioned_log_combine`: (Boolean) Flag to enable captching stderr with stdout. Default: true -* `tripleo_overcloud_node_extract_provisioned_log_output`: (Boolean) Flag to enable logging to a file. Default: true -* `tripleo_overcloud_node_extract_provisioned_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_extract_provisioned_home_dir }}/overcloud_node_extract_provisioned.log" -* `tripleo_overcloud_node_extract_provisioned_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_extract_provisioned_rc_file`. -* `tripleo_overcloud_node_extract_provisioned_output_file`: (String) Path to an output file. -* `tripleo_overcloud_node_extract_provisioned_overwrite_action`: (String) What action to take if `tripleo_overcloud_node_extract_provisioned_output_file` already exists. Can be one of `skip`, `error`, or `overwrite`. -* `tripleo_overcloud_node_extract_provisioned_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_extract_provisioned_stack`: (String) Name or ID of the heat stack. - -Output Variables ----------------- - -* `tripleo_overcloud_node_extract_provisioned_output`: (String) The command standard output. -* `tripleo_overcloud_node_extract_provisioned_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example node provisioning - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud node extract provisioned - import_role: - name: tripleo_overcloud_node_extract_provisioned - var: - tripleo_overcloud_node_extract_provisioned_debug: true - tripleo_overcloud_node_extract_provisioned_output_file: /home/stack/deployment.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_extract_provisioned/defaults/main.yml b/roles/tripleo_overcloud_node_extract_provisioned/defaults/main.yml deleted file mode 100644 index 6fb03a1..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_node_extract_provisioned ---- -openstack_bin: openstack -tripleo_overcloud_node_extract_provisioned_debug: false -tripleo_overcloud_node_extract_provisioned_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_extract_provisioned_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_extract_provisioned_log: "{{ tripleo_overcloud_node_extract_provisioned_home_dir }}/overcloud_node_extract_provisioned.log" -tripleo_overcloud_node_extract_provisioned_log_combine: true -tripleo_overcloud_node_extract_provisioned_log_output: true -tripleo_overcloud_node_extract_provisioned_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_extract_provisioned_output_file: -tripleo_overcloud_node_extract_provisioned_overwrite_action: error -tripleo_overcloud_node_extract_provisioned_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_extract_provisioned_stack: overcloud diff --git a/roles/tripleo_overcloud_node_extract_provisioned/meta/main.yml b/roles/tripleo_overcloud_node_extract_provisioned/meta/main.yml deleted file mode 100644 index 8f24f74..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_extract_provisioned - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_extract_provisioned - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/converge.yml b/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/converge.yml deleted file mode 100644 index fbcc003..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/converge.yml +++ /dev/null @@ -1,93 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_extract_provisioned_log_output: false - tripleo_overcloud_node_extract_provisioned_debug: true - tasks: - - - name: Call with defaults - include_role: - name: "tripleo_overcloud_node_extract_provisioned" - - - name: Check command for defaults - assert: - that: - - tripleo_overcloud_node_extract_provisioned_output == "overcloud node extract provisioned --yes" - - - name: Call with output file - include_role: - name: "tripleo_overcloud_node_extract_provisioned" - vars: - tripleo_overcloud_node_extract_provisioned_output_file: foo.yaml - - - name: Check command with output file - assert: - that: - - tripleo_overcloud_node_extract_provisioned_output == - "overcloud node extract provisioned -o foo.yaml --yes" - - - name: Call with stack name - include_role: - name: "tripleo_overcloud_node_extract_provisioned" - vars: - tripleo_overcloud_node_extract_provisioned_stack: foo - - - name: Check command with stack name - assert: - that: - - tripleo_overcloud_node_extract_provisioned_output == - "overcloud node extract provisioned --stack foo --yes" - - - name: Reset output fact - set_fact: - tripleo_overcloud_node_extract_provisioned_output: "reset" - - - name: Create tempfile name for overwrite action tests - tempfile: - state: file - suffix: temp - register: tempfile - - - name: Create tempfile for overwrite action tests - file: - state: touch - path: "{{ tempfile.path }}" - mode: '0644' - - - name: Call with skip for existing output file - include_role: - name: "tripleo_overcloud_node_extract_provisioned" - vars: - tripleo_overcloud_node_extract_provisioned_output_file: "{{ tempfile.path }}" - tripleo_overcloud_node_extract_provisioned_overwrite_action: skip - - - debug: - msg: "output {{ tripleo_overcloud_node_extract_provisioned_output }}" - - name: Check command call skipped - assert: - that: - - tripleo_overcloud_node_extract_provisioned_output == "reset" - - - name: Call with error for existing output file - block: - - include_role: - name: "tripleo_overcloud_node_extract_provisioned" - vars: - tripleo_overcloud_node_extract_provisioned_output_file: "{{ tempfile.path }}" - tripleo_overcloud_node_extract_provisioned_overwrite_action: error - rescue: - - name: Flag expected error raised - set_fact: - overwrite_error_raised: true - - debug: - msg: Expected error raised due to existing output file - - - name: Check command call skipped - assert: - that: - - tripleo_overcloud_node_extract_provisioned_output == "reset" diff --git a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_extract_provisioned/tasks/main.yml b/roles/tripleo_overcloud_node_extract_provisioned/tasks/main.yml deleted file mode 100644 index 7096c44..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/tasks/main.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_extract_provisioned -- name: Check if output file exists - stat: - path: "{{ tripleo_overcloud_node_extract_provisioned_output_file }}" - register: output_file_stat - -- name: Raise error for existing output file - fail: - msg: "output file already exists: {{ tripleo_overcloud_node_extract_provisioned_output_file }}" - when: - - tripleo_overcloud_node_extract_provisioned_overwrite_action == 'error' - - output_file_stat.stat.exists - -- name: Output file needs to be written - when: not (tripleo_overcloud_node_extract_provisioned_overwrite_action == 'skip' and - output_file_stat.stat.exists) - block: - - - name: Set overcloud node provision facts - set_fact: - _provision_cmd: >- - {{ tripleo_overcloud_node_extract_provisioned_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_extract_provisioned_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node extract provisioned - {{ tripleo_overcloud_node_extract_provisioned_output_file | ternary('-o $EXTRACT_OUTPUT', '') }} - {{ tripleo_overcloud_node_extract_provisioned_stack | ternary('--stack $EXTRACT_STACK', '') }} - {{ tripleo_overcloud_node_extract_provisioned_log_output | ternary((">" ~ tripleo_overcloud_node_extract_provisioned_log), '') }} - {{ tripleo_overcloud_node_extract_provisioned_log_combine | ternary("2>&1", '') }} - --yes - _provision_env: - OS_CLOUD: "{{ tripleo_overcloud_node_extract_provisioned_os_cloud }}" - EXTRACT_OUTPUT: "{{ tripleo_overcloud_node_extract_provisioned_output_file | quote }}" - EXTRACT_STACK: "{{ tripleo_overcloud_node_extract_provisioned_stack | quote }}" - - - name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_node_extract_provisioned_log }}" - when: tripleo_overcloud_node_extract_provisioned_log_output|bool - - - name: Show debug information - when: tripleo_overcloud_node_extract_provisioned_debug|bool - block: - - name: Show the command - debug: - var: _provision_cmd - - - name: Show the environment - debug: - var: _provision_env - - - name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_extract_provisioned_home_dir }}/tripleo_overcloud_node_extract_provisioned.sh" - shell_command: "{{ _build_cmd }}" - shell_environment: "{{ _build_env }}" - when: tripleo_overcloud_node_extract_provisioned_generate_scripts|bool - - - name: overcloud node extract provisioned - shell: "{{ _provision_cmd }}" # noqa 305 - environment: "{{ _provision_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_extract_provisioned_home_dir }}" - register: tripleo_overcloud_node_extract_provisioned_result - changed_when: false - when: not ansible_check_mode|bool - - - name: Set output fact - when: - - tripleo_overcloud_node_extract_provisioned_result.stdout is defined - set_fact: - tripleo_overcloud_node_extract_provisioned_output: "{{ tripleo_overcloud_node_extract_provisioned_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_extract_provisioned/tests/inventory b/roles/tripleo_overcloud_node_extract_provisioned/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_extract_provisioned/tests/test.yml b/roles/tripleo_overcloud_node_extract_provisioned/tests/test.yml deleted file mode 100644 index 339a9df..0000000 --- a/roles/tripleo_overcloud_node_extract_provisioned/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_node_extract_provisioned diff --git a/roles/tripleo_overcloud_node_import/README.md b/roles/tripleo_overcloud_node_import/README.md deleted file mode 100644 index 774adff..0000000 --- a/roles/tripleo_overcloud_node_import/README.md +++ /dev/null @@ -1,68 +0,0 @@ -tripleo_overcloud_node_import -================================= - -A role to run node import. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_import_concurrency`: (Integer) Max number of nodes to introspect at once. -* `tripleo_overcloud_node_import_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_node_import_environment_file`: (String) Path to the file that contains the baremetal node information. Can be a JSON, YAML or CSV file. Default: environment.json -* `tripleo_overcloud_node_import_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_node_import_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_node_import_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_node_import_home_dir`: (String) Path to the directory to execute the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_import_http_boot`: (String) Root directory for the ironic-python-agent image. -* `tripleo_overcloud_node_import_instance_boot_option`: (String) Whether to set instances for booting from local hard drive (local) or network (netboot). -* `tripleo_overcloud_node_import_introspect`: (Boolean) Flag to enable introspection of the nodes when importing. Default: false -* `tripleo_overcloud_node_import_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_node_import_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_node_import_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_import_home_dir }}/overcloud_node_import.log" -* `tripleo_overcloud_node_import_no_deploy_image`: (Boolean) Flag to skip setting the deploy kernel and ramdisk. Default: false -* `tripleo_overcloud_node_import_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_import_rc_file`. -* `tripleo_overcloud_node_import_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_node_import_provide`: (Boolean) Flag to provide the nodes. Default: false -* `tripleo_overcloud_node_import_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_import_run_validations`: (Boolean) Flag to runt he pre-deployment validations. false -* `tripleo_overcloud_node_import_timeout`: (Integer) Time in seconds to wait for the command to complete. Default: 900 -* `tripleo_overcloud_node_import_validate_only`: (Boolean) Flag to validate the environment file and exit without running the import. Default: false - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_import_output`: (String) The command standard output. -* `tripleo_overcloud_node_import_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node import playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Introspect node - import_role: - name: tripleo_overcloud_node_import -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_import/defaults/main.yml b/roles/tripleo_overcloud_node_import/defaults/main.yml deleted file mode 100644 index 71b9e0f..0000000 --- a/roles/tripleo_overcloud_node_import/defaults/main.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# defaults file for tripleo_overcloud_node_import -openstack_bin: openstack -tripleo_overcloud_node_import_concurrency: -tripleo_overcloud_node_import_debug: false -tripleo_overcloud_node_import_environment_file: environment.json -tripleo_overcloud_node_import_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_import_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_import_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_import_http_boot: -tripleo_overcloud_node_import_instance_boot_option: -tripleo_overcloud_node_import_introspect: false -tripleo_overcloud_node_import_log: "{{ tripleo_overcloud_node_import_home_dir }}/overcloud_node_import.log" -tripleo_overcloud_node_import_log_combine: true -tripleo_overcloud_node_import_log_output: true -tripleo_overcloud_node_import_no_deploy_image: false -tripleo_overcloud_node_import_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_import_poll: 10 -tripleo_overcloud_node_import_provide: false -tripleo_overcloud_node_import_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_import_run_validations: false -tripleo_overcloud_node_import_timeout: 900 -tripleo_overcloud_node_import_validate_only: false diff --git a/roles/tripleo_overcloud_node_import/meta/main.yml b/roles/tripleo_overcloud_node_import/meta/main.yml deleted file mode 100644 index e0769e9..0000000 --- a/roles/tripleo_overcloud_node_import/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_import - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_import - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_import/molecule/default/converge.yml b/roles/tripleo_overcloud_node_import/molecule/default/converge.yml deleted file mode 100644 index 443b98d..0000000 --- a/roles/tripleo_overcloud_node_import/molecule/default/converge.yml +++ /dev/null @@ -1,121 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_import_debug: true - tripleo_overcloud_node_import_log_combine: false - tripleo_overcloud_node_import_log_output: false - tripleo_overcloud_node_import_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_node_import" - include_role: - name: "tripleo_overcloud_node_import" - - - name: Check role - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_concurrency" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_concurrency: 10 - - - name: Assert "tripleo_overcloud_node_import_concurrency" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --concurrency 10 environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_environment_file" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_environment_file: /tmp/foo.json - - - name: Assert "tripleo_overcloud_node_import_environment_file" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import /tmp/foo.json" - - - name: Check parameter "tripleo_overcloud_node_import_http_boot" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_http_boot: /foo - - - name: Assert "tripleo_overcloud_node_import_http_boot" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --http-boot /foo environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_instance_boot_option" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_instance_boot_option: local - - - name: Assert "tripleo_overcloud_node_import_instance_boot_option" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --instance-boot-option local environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_introspect" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_introspect: true - - - name: Assert "tripleo_overcloud_node_import_introspect" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --introspect environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_no_deploy_image" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_no_deploy_image: true - - - name: Assert "tripleo_overcloud_node_import_no_deploy_image" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --no-deploy-image environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_provide" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_provide: true - - - name: Assert "tripleo_overcloud_node_import_provide" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --provide environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_run_validations" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_run_validations: true - - - name: Assert "tripleo_overcloud_node_import_run_validations" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --run-validations environment.json" - - - name: Check parameter "tripleo_overcloud_node_import_validate_only" - include_role: - name: "tripleo_overcloud_node_import" - vars: - tripleo_overcloud_node_import_validate_only: true - - - name: Assert "tripleo_overcloud_node_import_validate_only" - assert: - that: - - tripleo_overcloud_node_import_output == "overcloud node import --validate-only environment.json" diff --git a/roles/tripleo_overcloud_node_import/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_import/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_import/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_import/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_import/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_import/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_import/tasks/main.yml b/roles/tripleo_overcloud_node_import/tasks/main.yml deleted file mode 100644 index da10b54..0000000 --- a/roles/tripleo_overcloud_node_import/tasks/main.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_import -- name: Setup overcloud node import command - set_fact: - _import_cmd: >- - {{ tripleo_overcloud_node_import_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_import_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node import - {{ tripleo_overcloud_node_import_introspect | ternary('--introspect', '') }} - {{ tripleo_overcloud_node_import_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_node_import_validate_only | ternary('--validate-only', '') }} - {{ tripleo_overcloud_node_import_provide | ternary('--provide', '') }} - {{ tripleo_overcloud_node_import_no_deploy_image | ternary('--no-deploy-image', '') }} - {{ tripleo_overcloud_node_import_instance_boot_option | ternary('--instance-boot-option $IMPORT_INSTANCE_BOOT_OPTION', '') }} - {{ tripleo_overcloud_node_import_http_boot | ternary('--http-boot $IMPORT_HTTP_BOOT', '') }} - {{ tripleo_overcloud_node_import_concurrency | ternary('--concurrency ' ~ tripleo_overcloud_node_import_concurrency, '') }} - {{ tripleo_overcloud_node_import_environment_file }} - {{ tripleo_overcloud_node_import_log_output | ternary((">" ~ tripleo_overcloud_node_import_log), '') }} - {{ tripleo_overcloud_node_import_log_combine | ternary("2>&1", '') }} - _import_env: - IMPORT_INSTANCE_BOOT_OPTION: "{{ tripleo_overcloud_node_import_instance_boot_option }}" - IMPORT_HTTP_BOOT: "{{ tripleo_overcloud_node_import_http_boot }}" - OS_CLOUD: "{{ tripleo_overcloud_node_import_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_import_debug|bool - block: - - name: Show the node import command - debug: - var: _import_cmd - - - name: Show the node import environment - debug: - var: _import_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_import_home_dir }}/tripleo_overcloud_node_import.sh" - shell_command: "{{ _import_cmd }}" - shell_environment: "{{ _import_env }}" - when: tripleo_overcloud_node_import_generate_scripts|bool - -- name: Import node(s) - shell: "{{ _import_cmd }}" # noqa 305 - environment: "{{ _import_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_import_home_dir }}" - async: "{{ tripleo_overcloud_node_import_timeout }}" - poll: "{{ tripleo_overcloud_node_import_poll }}" - register: tripleo_overcloud_node_import_result - changed_when: true - when: not tripleo_overcloud_node_import_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_import_result.stdout is defined - set_fact: - tripleo_overcloud_node_import_output: "{{ tripleo_overcloud_node_import_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_import/tests/inventory b/roles/tripleo_overcloud_node_import/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_import/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_import/tests/test.yml b/roles/tripleo_overcloud_node_import/tests/test.yml deleted file mode 100644 index c5d2459..0000000 --- a/roles/tripleo_overcloud_node_import/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_import diff --git a/roles/tripleo_overcloud_node_introspect/README.md b/roles/tripleo_overcloud_node_introspect/README.md deleted file mode 100644 index 4d4aabb..0000000 --- a/roles/tripleo_overcloud_node_introspect/README.md +++ /dev/null @@ -1,66 +0,0 @@ -tripleo_overcloud_node_introspect -================================= - -A role to run node introspect. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_introspect_debug`: : (Boolean) Flag to print out the introspection command. Default: False -* `tripleo_overcloud_node_introspect_node_uuids`: Baremetal Node UUIDs for the node(s) to be introspected. -* `tripleo_overcloud_node_introspect_all_manageable`: Introspect all nodes currently in 'manageable' state. -* `tripleo_overcloud_node_introspect_provide`: Provide (make available) the nodes once introspected. -* `tripleo_overcloud_node_introspect_run_validations`: Run the pre-deployment validations. - These external validations are from the TripleO Validations project. -* `tripleo_overcloud_node_introspect_concurrency`: Maximum number of nodes to introspect at once. -* `tripleo_overcloud_node_introspect_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_introspect_rc_file`. -* `tripleo_overcloud_node_introspect_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_introspect_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_node_introspect_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_node_introspect_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_node_introspect_home_dir`: (String) Path to the directory to execute the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_introspect_node_timeout`: (Integer) Maximum timeout for node introspection. -* `tripleo_overcloud_node_introspect_max_retries`: (Integer) Maximum introspection retries. -* `tripleo_overcloud_node_introspect_retry_timeout`: (Integer) Maximum timeout between introspection retries. -* `tripleo_overcloud_node_introspect_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_node_introspect_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_node_introspect_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_introspect_home_dir }}/overcloud_node_introspect.log" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_node_introspect_output`: (String) The command standard output. -* `tripleo_overcloud_node_introspect_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node introspect playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Introspect node - import_role: - name: tripleo_overcloud_node_introspect -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_introspect/defaults/main.yml b/roles/tripleo_overcloud_node_introspect/defaults/main.yml deleted file mode 100644 index 0c4d4f0..0000000 --- a/roles/tripleo_overcloud_node_introspect/defaults/main.yml +++ /dev/null @@ -1,20 +0,0 @@ -# defaults file for tripleo_overcloud_node_introspect ---- -openstack_bin: openstack -tripleo_overcloud_node_introspect_all_manageable: false -tripleo_overcloud_node_introspect_concurrency: -tripleo_overcloud_node_introspect_debug: false -tripleo_overcloud_node_introspect_node_uuids: [] -tripleo_overcloud_node_introspect_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_introspect_provide: false -tripleo_overcloud_node_introspect_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_introspect_run_validations: false -tripleo_overcloud_node_introspect_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_introspect_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_introspect_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_introspect_node_timeout: -tripleo_overcloud_node_introspect_max_retries: -tripleo_overcloud_node_introspect_retry_timeout: -tripleo_overcloud_node_introspect_log: "{{ tripleo_overcloud_node_introspect_home_dir }}/overcloud_node_introspect.log" -tripleo_overcloud_node_introspect_log_combine: true -tripleo_overcloud_node_introspect_log_output: true diff --git a/roles/tripleo_overcloud_node_introspect/meta/main.yml b/roles/tripleo_overcloud_node_introspect/meta/main.yml deleted file mode 100644 index 4dad0df..0000000 --- a/roles/tripleo_overcloud_node_introspect/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_introspect - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_introspect - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_introspect/molecule/default/converge.yml b/roles/tripleo_overcloud_node_introspect/molecule/default/converge.yml deleted file mode 100644 index c8e73cf..0000000 --- a/roles/tripleo_overcloud_node_introspect/molecule/default/converge.yml +++ /dev/null @@ -1,175 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_node_introspect" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Check role - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect" - - - name: Check parameter "tripleo_overcloud_node_introspect_node_uuids" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_node_uuids: ['test1', 'test2'] - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_node_uuids" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect test1 test2" - - - name: Check parameter "tripleo_overcloud_node_introspect_all_manageable" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_all_manageable: true - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_all_manageable" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --all-manageable" - - - name: Check parameter "tripleo_overcloud_node_introspect_provide" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_provide: true - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_provide" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --provide" - - - name: Check parameter "tripleo_overcloud_node_introspect_run_validations" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_run_validations: true - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_run_validations" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --run-validations" - - - name: Check parameter "tripleo_overcloud_node_introspect_concurrency" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_concurrency: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_concurrency" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --concurrency value" - - - name: Check parameter "tripleo_overcloud_node_introspect_node_timeout" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_node_timeout: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_node_timeout" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --node-timeout value" - - - name: Check parameter "tripleo_overcloud_node_introspect_max_retries" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_max_retries: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_max_retries" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --max-retries value" - - - name: Check parameter "tripleo_overcloud_node_introspect_retry_timeout" - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_retry_timeout: value - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert "tripleo_overcloud_node_introspect_retry_timeout" - assert: - that: - - tripleo_overcloud_node_introspect_output == "overcloud node introspect --retry-timeout value" - - - name: Check all parameters for role tripleo_overcloud_node_introspect - include_role: - name: "tripleo_overcloud_node_introspect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_introspect_debug: true - tripleo_overcloud_node_introspect_node_uuids: ['value1', 'value2'] - tripleo_overcloud_node_introspect_all_manageable: true - tripleo_overcloud_node_introspect_provide: true - tripleo_overcloud_node_introspect_run_validations: true - tripleo_overcloud_node_introspect_concurrency: value - tripleo_overcloud_node_introspect_node_timeout: 60 - tripleo_overcloud_node_introspect_max_retries: 2 - tripleo_overcloud_node_introspect_retry_timeout: 120 - tripleo_overcloud_node_introspect_log_combine: false - tripleo_overcloud_node_introspect_log_output: false - - - name: Assert all parameters for role tripleo_overcloud_node_introspect - assert: - that: - - tripleo_overcloud_node_introspect_output == - "overcloud node introspect value1 value2 - --all-manageable --provide --run-validations --node-timeout 60 - --max-retries 2 --retry-timeout 120 --concurrency value" diff --git a/roles/tripleo_overcloud_node_introspect/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_introspect/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_introspect/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_introspect/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_introspect/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_introspect/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_introspect/tasks/main.yml b/roles/tripleo_overcloud_node_introspect/tasks/main.yml deleted file mode 100644 index 7a7df9a..0000000 --- a/roles/tripleo_overcloud_node_introspect/tasks/main.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_introspect -- name: Setup overcloud node introspect command - set_fact: - _introspect_cmd: >- - {{ tripleo_overcloud_node_introspect_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_introspect_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node introspect - {{ tripleo_overcloud_node_introspect_node_uuids | join(' ') }} - {{ tripleo_overcloud_node_introspect_all_manageable | ternary('--all-manageable', '') }} - {{ tripleo_overcloud_node_introspect_provide | ternary('--provide', '') }} - {{ tripleo_overcloud_node_introspect_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_node_introspect_node_timeout | ternary('--node-timeout ' ~ tripleo_overcloud_node_introspect_node_timeout, '') }} - {{ tripleo_overcloud_node_introspect_max_retries | ternary('--max-retries ' ~ tripleo_overcloud_node_introspect_max_retries, '') }} - {{ tripleo_overcloud_node_introspect_retry_timeout | ternary('--retry-timeout ' ~ tripleo_overcloud_node_introspect_retry_timeout, '') }} - {{ tripleo_overcloud_node_introspect_concurrency | ternary('--concurrency ' ~ tripleo_overcloud_node_introspect_concurrency, '') }} - {{ tripleo_overcloud_node_introspect_log_output | ternary((">" ~ tripleo_overcloud_node_introspect_log), '') }} - {{ tripleo_overcloud_node_introspect_log_combine | ternary("2>&1", '') }} - _introspect_env: - OS_CLOUD: "{{ tripleo_overcloud_node_introspect_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_introspect_debug|bool - block: - - name: Show the node introspect command - debug: - var: _introspect_cmd - - - name: Show the node introspect environment - debug: - var: _introspect_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_introspect_home_dir }}/tripleo_overcloud_node_introspect.sh" - shell_command: "{{ _introspect_cmd }}" - shell_environment: "{{ _introspect_env }}" - when: tripleo_overcloud_node_introspect_generate_scripts|bool - -- name: Introspect node - shell: "{{ _introspect_cmd }}" # noqa 305 - environment: "{{ _introspect_env }}" - register: tripleo_overcloud_node_introspect_result - changed_when: true - when: not tripleo_overcloud_node_introspect_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_introspect_result.stdout is defined - set_fact: - tripleo_overcloud_node_introspect_output: "{{ tripleo_overcloud_node_introspect_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_introspect/tests/inventory b/roles/tripleo_overcloud_node_introspect/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_introspect/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_introspect/tests/test.yml b/roles/tripleo_overcloud_node_introspect/tests/test.yml deleted file mode 100644 index 554dd07..0000000 --- a/roles/tripleo_overcloud_node_introspect/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_node_introspect diff --git a/roles/tripleo_overcloud_node_provide/README.md b/roles/tripleo_overcloud_node_provide/README.md deleted file mode 100644 index 279cbdc..0000000 --- a/roles/tripleo_overcloud_node_provide/README.md +++ /dev/null @@ -1,57 +0,0 @@ -tripleo_overcloud_node_provide -============================== - -A role to set nodes in a manageable state to available. - -Requirements ------------- - -Requires the username and password found in the ~/stackrc file on the undercloud. - -Role Variables --------------- - -* `tripleo_overcloud_node_provide_all_manageable`: (Boolean) Provide all nodes in manageable state. REQUIRED if UUIDs are not passed. Default: False -* `tripleo_overcloud_node_provide_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_node_provide_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_provide_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_node_provide_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_node_provide_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_provide_home_dir }}/overcloud_node_provide.log" -* `tripleo_overcloud_node_provide_node_uuids`: (List) List of UUIDs to provide. REQUIRED if '--all-manageable' is not passed. Default [] -* `tripleo_overcloud_node_provide_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_provide_rc_file`. -* `tripleo_overcloud_node_provide_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_node_provide_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_provide_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_node_provide_output`: (String) The command standard output. -* `tripleo_overcloud_node_provide_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node provide playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Set overcloud nodes to available (provide nodes) - import_role: - name: tripleo_overcloud_node_provide - vars: - tripleo_overcloud_node_provide_node_uuids: - - 4ca0448a-3892-4fc8-aea1-1834ac3c0caa -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_provide/defaults/main.yml b/roles/tripleo_overcloud_node_provide/defaults/main.yml deleted file mode 100644 index 757fa9d..0000000 --- a/roles/tripleo_overcloud_node_provide/defaults/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -# defaults file for tripleo_overcloud_node_provide ---- -openstack_bin: openstack -tripleo_overcloud_node_provide_all_manageable: false -tripleo_overcloud_node_provide_debug: false -tripleo_overcloud_node_provide_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_provide_log: "{{ tripleo_overcloud_node_provide_home_dir }}/overcloud_node_provide.log" -tripleo_overcloud_node_provide_log_combine: true -tripleo_overcloud_node_provide_log_output: true -tripleo_overcloud_node_provide_node_uuids: [] -tripleo_overcloud_node_provide_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_provide_poll: 1 -tripleo_overcloud_node_provide_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_provide_timeout: 600 diff --git a/roles/tripleo_overcloud_node_provide/meta/main.yml b/roles/tripleo_overcloud_node_provide/meta/main.yml deleted file mode 100644 index 2adc350..0000000 --- a/roles/tripleo_overcloud_node_provide/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_provide - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_provide - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_provide/molecule/default/converge.yml b/roles/tripleo_overcloud_node_provide/molecule/default/converge.yml deleted file mode 100644 index d078280..0000000 --- a/roles/tripleo_overcloud_node_provide/molecule/default/converge.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_provide_log_output: false - tripleo_overcloud_node_provide_poll: 1 - tripleo_overcloud_node_provide_debug: true - tasks: - - - name: "Include tripleo_overcloud_node_provide" - include_role: - name: "tripleo_overcloud_node_provide" - vars: - tripleo_overcloud_node_provide_all_manageable: true - - - name: Check role - assert: - that: - - tripleo_overcloud_node_provide_output == "overcloud node provide --all-manageable" - - - name: Assert "tripleo_overcloud_node_provide_node_uuids" - include_role: - name: "tripleo_overcloud_node_provide" - vars: - tripleo_overcloud_node_provide_node_uuids: - - a - - b - - - name: Validate tripleo_overcloud_node_provide_node_uuids - assert: - that: - - tripleo_overcloud_node_provide_output == "overcloud node provide a b" - - - name: Check validation - block: - - name: Include tripleo_overcloud_node_provide with no options - include_role: - name: "tripleo_overcloud_node_provide" - - name: Fail if it worked - fail: - msg: No provided vars succeeded (validation failed) - rescue: - - name: Validate tripleo_overcloud_node_provide validation worked - assert: - that: - - true diff --git a/roles/tripleo_overcloud_node_provide/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_provide/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_provide/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_provide/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_provide/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_provide/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_provide/tasks/main.yml b/roles/tripleo_overcloud_node_provide/tasks/main.yml deleted file mode 100644 index df3bfc7..0000000 --- a/roles/tripleo_overcloud_node_provide/tasks/main.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_provide -- name: Check that at least one input variable is not empty - fail: - msg: "At least one non-empty variable must be passed." - when: > - (not tripleo_overcloud_node_provide_all_manageable|bool and - tripleo_overcloud_node_provide_node_uuids|length < 1) - -- name: Check that both input variables are not passed together - fail: - msg: "Do not pass both '--all-manageable' and a node UUID list." - when: - - tripleo_overcloud_node_provide_all_manageable|bool - - tripleo_overcloud_node_provide_node_uuids|length > 0 - -- name: Setup overcloud node provide facts - set_fact: - _provide_cmd: >- - {{ tripleo_overcloud_node_provide_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_provide_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node provide - {{ tripleo_overcloud_node_provide_all_manageable | ternary('--all-manageable', '') }} - {{ tripleo_overcloud_node_provide_node_uuids | tripleo.operator.shell_arg_list() }} - {{ tripleo_overcloud_node_provide_log_output | ternary((">" ~ tripleo_overcloud_node_provide_log), '') }} - {{ tripleo_overcloud_node_provide_log_combine | ternary("2>&1", '') }} - _provide_env: - OS_CLOUD: "{{ tripleo_overcloud_node_provide_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_node_provide_debug|bool - block: - - name: Show the command - debug: - var: _provide_cmd - - - name: Show the environment - debug: - var: _provide_env - -- name: Run overcloud node provide - shell: "{{ _provide_cmd }}" # noqa 305 - environment: "{{ _provide_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_provide_home_dir }}" - register: tripleo_overcloud_node_provide_result - async: "{{ tripleo_overcloud_node_provide_timeout }}" - poll: "{{ tripleo_overcloud_node_provide_poll }}" - changed_when: false - when: not ansible_check_mode|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_provide_result.stdout is defined - set_fact: - tripleo_overcloud_node_provide_output: "{{ tripleo_overcloud_node_provide_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_provide/tests/inventory b/roles/tripleo_overcloud_node_provide/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_provide/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_provide/tests/test.yml b/roles/tripleo_overcloud_node_provide/tests/test.yml deleted file mode 100644 index b2b5c51..0000000 --- a/roles/tripleo_overcloud_node_provide/tests/test.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_node_provide - vars: - - tripleo_overcloud_node_provide_all_manageable: --all-manageable diff --git a/roles/tripleo_overcloud_node_provision/README.md b/roles/tripleo_overcloud_node_provision/README.md deleted file mode 100644 index 63b7645..0000000 --- a/roles/tripleo_overcloud_node_provision/README.md +++ /dev/null @@ -1,64 +0,0 @@ -tripleo_overcloud_node_provision -========= - -A role to perform overcloud node provisioning with Ironic. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_provision_concurrency`: (Integer) Number of nodes to provision at once -* `tripleo_overcloud_node_provision_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_node_provision_deployment_file`: (String) REQUIRED. File path to the deployment file describing the nodes. -* `tripleo_overcloud_node_provision_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_node_provision_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_node_provision_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_node_provision_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_provision_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_node_provision_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_node_provision_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_provision_home_dir }}/overcloud_node_provision.log" -* `tripleo_overcloud_node_provision_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_provision_rc_file`. -* `tripleo_overcloud_node_provision_output_file`: (String) Path to an output file. -* `tripleo_overcloud_node_provision_overcloud_ssh_key`: (String) Key path for ssh access to overcloud nodes. When not defined, the key will attempt to be auto-detected. -* `tripleo_overcloud_node_provision_overcloud_ssh_user`: (String) User for ssh access to the newly deployed nodes. -* `tripleo_overcloud_node_provision_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_node_provision_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_provision_stack`: (String) Name or ID of the heat stack. Default: stack -* `tripleo_overcloud_node_provision_timeout_arg`: (Integer) Number of seconds to wait for node to complete. Should be smaller than the `overcloud_node_provision_timeout` variable. -* `tripleo_overcloud_node_provision_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3700 - -Output Variables ----------------- - -* `tripleo_overcloud_node_provision_output`: (String) The command standard output. -* `tripleo_overcloud_node_provision_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example node provisioning - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud node provision - import_role: - name: tripleo_overcloud_node_provision - var: - tripleo_overcloud_node_provision_debug: true - tripleo_overcloud_node_provision_deployment_file: /home/stack/deployment.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_provision/defaults/main.yml b/roles/tripleo_overcloud_node_provision/defaults/main.yml deleted file mode 100644 index 10c75f6..0000000 --- a/roles/tripleo_overcloud_node_provision/defaults/main.yml +++ /dev/null @@ -1,23 +0,0 @@ -# defaults file for tripleo_overcloud_node_provision ---- -openstack_bin: openstack -tripleo_overcloud_node_provision_concurrency: -tripleo_overcloud_node_provision_debug: false -tripleo_overcloud_node_provision_deployment_file: -tripleo_overcloud_node_provision_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_node_provision_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_node_provision_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_provision_log: "{{ tripleo_overcloud_node_provision_home_dir }}/overcloud_node_provision.log" -tripleo_overcloud_node_provision_log_combine: true -tripleo_overcloud_node_provision_log_output: true -tripleo_overcloud_node_provision_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_provision_output_file: -tripleo_overcloud_node_provision_overcloud_ssh_key: -tripleo_overcloud_node_provision_overcloud_ssh_user: -tripleo_overcloud_node_provision_poll: 10 -tripleo_overcloud_node_provision_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_provision_stack: overcloud -tripleo_overcloud_node_provision_timeout: 3700 -tripleo_overcloud_node_provision_timeout_arg: -tripleo_overcloud_node_provision_network_ports: -tripleo_overcloud_node_provision_network_config: diff --git a/roles/tripleo_overcloud_node_provision/meta/main.yml b/roles/tripleo_overcloud_node_provision/meta/main.yml deleted file mode 100644 index f275e71..0000000 --- a/roles/tripleo_overcloud_node_provision/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_provision - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_provision - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_provision/molecule/default/converge.yml b/roles/tripleo_overcloud_node_provision/molecule/default/converge.yml deleted file mode 100644 index 6b5fe2e..0000000 --- a/roles/tripleo_overcloud_node_provision/molecule/default/converge.yml +++ /dev/null @@ -1,137 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_provision_log_output: false - tripleo_overcloud_node_provision_poll: 1 - tripleo_overcloud_node_provision_debug: true - tasks: - - - name: "Include tripleo_overcloud_node_provision" - include_role: - name: "tripleo_overcloud_node_provision" - - - name: Check role - assert: - that: - - tripleo_overcloud_node_provision_output == "overcloud node provision --stack overcloud" - - - name: Assert "tripleo_overcloud_node_provision_output_file" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_output_file: foo.yaml - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_output_file - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision -o foo.yaml" - - - name: Assert "tripleo_overcloud_node_provision_stack" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_stack: foo - - - name: Validate tripleo_overcloud_node_provision_stack - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --stack foo" - - - name: Assert "tripleo_overcloud_node_provision_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_overcloud_ssh_user: foo - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_overcloud_ssh_user - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --overcloud-ssh-user foo" - - - name: Assert "tripleo_overcloud_node_provision_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_overcloud_ssh_key: foo.pub - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_overcloud_ssh_key - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --overcloud-ssh-key foo.pub" - - - name: Assert "tripleo_overcloud_node_provision_concurrency" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_concurrency: 5 - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_concurrency - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --concurrency 5" - - - name: Assert "tripleo_overcloud_node_provision_timeout_arg" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_timeout_arg: 12 - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_timeout_arg - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --timeout 12" - - - name: Assert "tripleo_overcloud_node_provision_deployment_file" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_deployment_file: deploy.yaml - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_deployment_file - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision deploy.yaml" - - - name: Assert "tripleo_overcloud_node_provision_network_ports" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_network_ports: true - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_network_ports - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --network-ports" - - - name: Assert "tripleo_overcloud_node_provision_network_config" - include_role: - name: "tripleo_overcloud_node_provision" - vars: - tripleo_overcloud_node_provision_network_config: true - tripleo_overcloud_node_provision_stack: - - - name: Validate tripleo_overcloud_node_provision_network_config - assert: - that: - - tripleo_overcloud_node_provision_output == - "overcloud node provision --network-config" diff --git a/roles/tripleo_overcloud_node_provision/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_provision/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_provision/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_provision/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_provision/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_provision/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_provision/tasks/main.yml b/roles/tripleo_overcloud_node_provision/tasks/main.yml deleted file mode 100644 index 9bff579..0000000 --- a/roles/tripleo_overcloud_node_provision/tasks/main.yml +++ /dev/null @@ -1,71 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_provision -- name: Set overcloud node provision facts - set_fact: - _provision_cmd: >- - {{ tripleo_overcloud_node_provision_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_provision_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node provision - {{ tripleo_overcloud_node_provision_output_file | ternary('-o $PROVISION_OUTPUT', '') }} - {{ tripleo_overcloud_node_provision_stack | ternary('--stack $PROVISION_STACK', '') }} - {{ tripleo_overcloud_node_provision_network_ports | ternary('--network-ports', '') }} - {{ tripleo_overcloud_node_provision_network_config | ternary('--network-config', '') }} - {{ tripleo_overcloud_node_provision_overcloud_ssh_user | ternary('--overcloud-ssh-user $PROVISION_USER', '') }} - {{ tripleo_overcloud_node_provision_overcloud_ssh_key | ternary('--overcloud-ssh-key $PROVISION_KEY', '') }} - {{ tripleo_overcloud_node_provision_concurrency | ternary('--concurrency $PROVISION_CONCURRENCY', '') }} - {{ tripleo_overcloud_node_provision_timeout_arg | ternary('--timeout $PROVISION_TIMEOUT', '') }} - {{ tripleo_overcloud_node_provision_deployment_file }} - {{ tripleo_overcloud_node_provision_log_output | ternary((">" ~ tripleo_overcloud_node_provision_log), '') }} - {{ tripleo_overcloud_node_provision_log_combine | ternary("2>&1", '') }} - _provision_env: - OS_CLOUD: "{{ tripleo_overcloud_node_provision_os_cloud }}" - PROVISION_OUTPUT: "{{ tripleo_overcloud_node_provision_output_file | quote }}" - PROVISION_STACK: "{{ tripleo_overcloud_node_provision_stack | quote }}" - PROVISION_USER: "{{ tripleo_overcloud_node_provision_overcloud_ssh_user | quote }}" - PROVISION_KEY: "{{ tripleo_overcloud_node_provision_overcloud_ssh_key | quote }}" - PROVISION_CONCURRENCY: "{{ tripleo_overcloud_node_provision_concurrency | quote }}" - PROVISION_TIMEOUT: "{{ tripleo_overcloud_node_provision_timeout_arg | quote }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_node_provision_log }}" - when: tripleo_overcloud_node_provision_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_node_provision_debug|bool - block: - - name: Show the command - debug: - var: _provision_cmd - - - name: Show the environment - debug: - var: _provision_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_node_provision_home_dir }}/tripleo_overcloud_node_provision.sh" - shell_command: "{{ _provision_cmd }}" - shell_environment: "{{ _provision_env }}" - when: tripleo_overcloud_node_provision_generate_scripts|bool - -- name: overcloud node provision - shell: "{{ _provision_cmd }}" # noqa 305 - environment: "{{ _provision_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_provision_home_dir }}" - register: tripleo_overcloud_node_provision_result - async: "{{ tripleo_overcloud_node_provision_timeout }}" - poll: "{{ tripleo_overcloud_node_provision_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_node_provision_generate_scripts_only|bool - - -- name: Set output fact - when: - - tripleo_overcloud_node_provision_result.stdout is defined - set_fact: - tripleo_overcloud_node_provision_output: "{{ tripleo_overcloud_node_provision_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_provision/tests/inventory b/roles/tripleo_overcloud_node_provision/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_provision/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_provision/tests/test.yml b/roles/tripleo_overcloud_node_provision/tests/test.yml deleted file mode 100644 index 491f94d..0000000 --- a/roles/tripleo_overcloud_node_provision/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_node_provision diff --git a/roles/tripleo_overcloud_node_unprovision/README.md b/roles/tripleo_overcloud_node_unprovision/README.md deleted file mode 100644 index be27d01..0000000 --- a/roles/tripleo_overcloud_node_unprovision/README.md +++ /dev/null @@ -1,62 +0,0 @@ -tripleo_overcloud_node_unprovision -========= - -A role to perform unprovisioning of nodes using Ironic. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_node_unprovision_all`: (Boolean) Unprovision every instance in the deployment. Defaults: false -* `tripleo_overcloud_node_unprovision_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_node_unprovision_deployment_file`: (String) REQUIRED. Configuration file describing the baremetal deployment. -* `tripleo_overcloud_node_unprovision_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if tripleo_generate_scripts is not defined. -* `tripleo_overcloud_node_unprovision_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_node_unprovision_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_node_unprovision_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_node_unprovision_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_node_unprovision_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_node_unprovision_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_node_unprovision_home_dir }}/overcloud_node_unprovision.log" -* `tripleo_overcloud_node_unprovision_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_node_unprovision_rc_file`. -* `tripleo_overcloud_node_unprovision_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_node_unprovision_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_node_unprovision_stack`: (String) Name or ID of the heat stack Default: overcloud -* `tripleo_overcloud_node_unprovision_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 -* `tripleo_overcloud_node_unprovision_yes`: (Boolean) Skip yes/no prompt. Default: true - -Output Variables ----------------- - -* `tripleo_overcloud_node_unprovision_output`: (String) The command standard output. -* `tripleo_overcloud_node_unprovision_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example unprovision - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud node unprovision - import_role: - name: tripleo_overcloud_node_unprovision - var: - tripleo_overcloud_node_unprovision_debug: true - tripleo_overcloud_node_unprovision_deployment_file: /home/stack/deployment.yaml - tripleo_overcloud_node_unprovision_all: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_node_unprovision/defaults/main.yml b/roles/tripleo_overcloud_node_unprovision/defaults/main.yml deleted file mode 100644 index 1cd260f..0000000 --- a/roles/tripleo_overcloud_node_unprovision/defaults/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -# defaults file for tripleo_overcloud_node_unprovision ---- -openstack_bin: openstack -tripleo_overcloud_node_unprovision_all: false -tripleo_overcloud_node_unprovision_debug: false -tripleo_overcloud_node_unprovision_deployment_file: -tripleo_overcloud_node_unprovision_generate_scripts: "{{ tripleo_generate_scripts|default(False) }}" -tripleo_overcloud_node_unprovision_generate_scripts_only: "{{ tripleo_generate_scripts_only|default(False) }}" -tripleo_overcloud_node_unprovision_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_node_unprovision_log: "{{ tripleo_overcloud_node_unprovision_home_dir }}/CHANGEME.log" -tripleo_overcloud_node_unprovision_log_combine: true -tripleo_overcloud_node_unprovision_log_output: true -tripleo_overcloud_node_unprovision_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_node_unprovision_poll: 10 -tripleo_overcloud_node_unprovision_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_node_unprovision_stack: overcloud -tripleo_overcloud_node_unprovision_timeout: 3600 -tripleo_overcloud_node_unprovision_yes: true -tripleo_overcloud_node_unprovision_network_ports: diff --git a/roles/tripleo_overcloud_node_unprovision/meta/main.yml b/roles/tripleo_overcloud_node_unprovision/meta/main.yml deleted file mode 100644 index 8476f56..0000000 --- a/roles/tripleo_overcloud_node_unprovision/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_node_unprovision - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_node_unprovision - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_node_unprovision/molecule/default/converge.yml b/roles/tripleo_overcloud_node_unprovision/molecule/default/converge.yml deleted file mode 100644 index 0e2bb70..0000000 --- a/roles/tripleo_overcloud_node_unprovision/molecule/default/converge.yml +++ /dev/null @@ -1,72 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_node_unprovision_log_output: false - tripleo_overcloud_node_unprovision_poll: 1 - tripleo_overcloud_node_unprovision_debug: true - tasks: - - - name: "Include tripleo_overcloud_node_unprovision" - include_role: - name: "tripleo_overcloud_node_unprovision" - - - name: Check role - assert: - that: - - tripleo_overcloud_node_unprovision_output == "overcloud node unprovision --stack overcloud --yes" - - - name: Assert "tripleo_overcloud_node_unprovision_stack" - include_role: - name: "tripleo_overcloud_node_unprovision" - vars: - tripleo_overcloud_node_unprovision_stack: foo - - - name: Validate tripleo_overcloud_node_unprovision_stack - assert: - that: - - tripleo_overcloud_node_unprovision_output == - "overcloud node unprovision --stack foo --yes" - - - name: Assert "tripleo_overcloud_node_unprovision_all" - include_role: - name: "tripleo_overcloud_node_unprovision" - vars: - tripleo_overcloud_node_unprovision_all: true - tripleo_overcloud_node_unprovision_stack: - - - name: Validate tripleo_overcloud_node_unprovision_all - assert: - that: - - tripleo_overcloud_node_unprovision_output == - "overcloud node unprovision --all --yes" - - - name: Assert "tripleo_overcloud_node_unprovision_deployment_file" - include_role: - name: "tripleo_overcloud_node_unprovision" - vars: - tripleo_overcloud_node_unprovision_deployment_file: foo.yaml - tripleo_overcloud_node_unprovision_stack: - - - name: Validate tripleo_overcloud_node_unprovision_deployment_file - assert: - that: - - tripleo_overcloud_node_unprovision_output == - "overcloud node unprovision --yes foo.yaml" - - - name: Assert "tripleo_overcloud_node_unprovision_network_ports" - include_role: - name: "tripleo_overcloud_node_unprovision" - vars: - tripleo_overcloud_node_unprovision_network_ports: true - tripleo_overcloud_node_unprovision_stack: - - - name: Validate tripleo_overcloud_node_unprovision_network_ports - assert: - that: - - tripleo_overcloud_node_unprovision_output == - "overcloud node unprovision --network-ports --yes" diff --git a/roles/tripleo_overcloud_node_unprovision/molecule/default/molecule.yml b/roles/tripleo_overcloud_node_unprovision/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_node_unprovision/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_node_unprovision/molecule/default/prepare.yml b/roles/tripleo_overcloud_node_unprovision/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_node_unprovision/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_node_unprovision/tasks/main.yml b/roles/tripleo_overcloud_node_unprovision/tasks/main.yml deleted file mode 100644 index 20b8ccb..0000000 --- a/roles/tripleo_overcloud_node_unprovision/tasks/main.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -# tasks file for tripleo_overcloud_node_unprovision -- name: Set overcloud node unprovision facts - set_fact: - _unprovision_cmd: >- - {{ tripleo_overcloud_node_unprovision_os_cloud | ternary('', "source " ~ tripleo_overcloud_node_unprovision_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud node unprovision - {{ tripleo_overcloud_node_unprovision_stack | ternary('--stack $UNPROVISION_STACK', '') }} - {{ tripleo_overcloud_node_unprovision_network_ports | ternary('--network-ports', '') }} - {{ tripleo_overcloud_node_unprovision_all | ternary('--all', '') }} - {{ tripleo_overcloud_node_unprovision_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_node_unprovision_deployment_file }} - {{ tripleo_overcloud_node_unprovision_log_output | ternary((">" ~ tripleo_overcloud_node_unprovision_log), '') }} - {{ tripleo_overcloud_node_unprovision_log_combine | ternary("2>&1", '') }} - _unprovision_env: - OS_CLOUD: "{{ tripleo_overcloud_node_unprovision_os_cloud }}" - UNPROVISION_STACK: "{{ tripleo_overcloud_node_unprovision_stack | quote }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_node_unprovision_log }}" - when: tripleo_overcloud_node_unprovision_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_node_unprovision_debug|bool - block: - - name: Show the command - debug: - var: _unprovision_cmd - - - name: Show the environment - debug: - var: _unprovision_env - -- name: write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_config_generate_home_dir }}/tripleo_overcloud_node_unprovision.sh" - shell_command: "{{ _unprovision_cmd }}" - shell_environment: "{{ _unprovision_env }}" - when: - - tripleo_overcloud_node_unprovision_generate_scripts|bool - -- name: overcloud node unprovision - shell: "{{ _unprovision_cmd }}" # noqa 305 - environment: "{{ _unprovision_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_node_unprovision_home_dir }}" - register: tripleo_overcloud_node_unprovision_result - async: "{{ tripleo_overcloud_node_unprovision_timeout }}" - poll: "{{ tripleo_overcloud_node_unprovision_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_node_unprovision_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_node_unprovision_result.stdout is defined - set_fact: - tripleo_overcloud_node_unprovision_output: "{{ tripleo_overcloud_node_unprovision_result.stdout }}" diff --git a/roles/tripleo_overcloud_node_unprovision/tests/inventory b/roles/tripleo_overcloud_node_unprovision/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_node_unprovision/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_node_unprovision/tests/test.yml b/roles/tripleo_overcloud_node_unprovision/tests/test.yml deleted file mode 100644 index 6845213..0000000 --- a/roles/tripleo_overcloud_node_unprovision/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_node_unprovision diff --git a/roles/tripleo_overcloud_profiles_list/README.md b/roles/tripleo_overcloud_profiles_list/README.md deleted file mode 100644 index 1d3e74e..0000000 --- a/roles/tripleo_overcloud_profiles_list/README.md +++ /dev/null @@ -1,60 +0,0 @@ -tripleo_overcloud_profiles_list -=============================== - -A role to run profiles list. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_profiles_list_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_profiles_list_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_profiles_list_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_profiles_list_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_profiles_list_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_profiles_list_all`: List all nodes, even those not available to Nova. -* `tripleo_overcloud_profiles_list_control_flavor`: (Deprecated in U) Nova flavor to use for control nodes. -* `tripleo_overcloud_profiles_list_compute_flavor`: (Deprecated in U) Nova flavor to use for compute nodes. -* `tripleo_overcloud_profiles_list_ceph_storage_flavor`: (Deprecated in U) Nova flavor to use for ceph storage nodes. -* `tripleo_overcloud_profiles_list_block_storage_flavor`: (Deprecated in U) Nova flavor to use for cinder storage nodes. -* `tripleo_overcloud_profiles_list_swift_storage_flavor`: (Deprecated in U) Nova flavor to use for swift storage nodes. -* `tripleo_overcloud_profiles_list_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_profiles_list_rc_file`. -* `tripleo_overcloud_profiles_list_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_profiles_list_output`: (String) The command standard output. -* `tripleo_overcloud_profiles_list_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud profiles list playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: List profiles - import_role: - name: tripleo_overcloud_profiles_list -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_profiles_list/defaults/main.yml b/roles/tripleo_overcloud_profiles_list/defaults/main.yml deleted file mode 100644 index 0316d94..0000000 --- a/roles/tripleo_overcloud_profiles_list/defaults/main.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -# defaults file for tripleo_overcloud_profiles_list -openstack_bin: openstack -tripleo_overcloud_profiles_list_all: false -tripleo_overcloud_profiles_list_block_storage_flavor: -tripleo_overcloud_profiles_list_ceph_storage_flavor: -tripleo_overcloud_profiles_list_compute_flavor: -tripleo_overcloud_profiles_list_control_flavor: -tripleo_overcloud_profiles_list_debug: false -tripleo_overcloud_profiles_list_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_profiles_list_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_profiles_list_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_profiles_list_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_profiles_list_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_profiles_list_swift_storage_flavor: diff --git a/roles/tripleo_overcloud_profiles_list/meta/main.yml b/roles/tripleo_overcloud_profiles_list/meta/main.yml deleted file mode 100644 index a464b46..0000000 --- a/roles/tripleo_overcloud_profiles_list/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_profiles_list - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_profiles_list - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_profiles_list/molecule/default/converge.yml b/roles/tripleo_overcloud_profiles_list/molecule/default/converge.yml deleted file mode 100644 index 79f0d4b..0000000 --- a/roles/tripleo_overcloud_profiles_list/molecule/default/converge.yml +++ /dev/null @@ -1,104 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_profiles_list_debug: true - tripleo_os_cloud: undercloud - tasks: - - - name: "Include tripleo_overcloud_profiles_list" - include_role: - name: "tripleo_overcloud_profiles_list" - - - name: Check role - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list" - - - name: Check parameter "tripleo_overcloud_profiles_list_all" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_all: true - - - name: Assert "tripleo_overcloud_profiles_list_all" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --all" - - - name: Check parameter "tripleo_overcloud_profiles_list_control_flavor" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_control_flavor: value - - - name: Assert "tripleo_overcloud_profiles_list_control_flavor" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --control-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_list_compute_flavor" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_compute_flavor: value - - - name: Assert "tripleo_overcloud_profiles_list_compute_flavor" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --compute-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_list_ceph_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_ceph_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_list_ceph_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --ceph-storage-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_list_block_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_block_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_list_block_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --block-storage-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_list_swift_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_swift_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_list_swift_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_list_output == "overcloud profiles list --swift-storage-flavor value" - - - - name: Check all parameters for role tripleo_overcloud_profiles_list - include_role: - name: "tripleo_overcloud_profiles_list" - vars: - tripleo_overcloud_profiles_list_all: true - tripleo_overcloud_profiles_list_control_flavor: value - tripleo_overcloud_profiles_list_compute_flavor: value - tripleo_overcloud_profiles_list_ceph_storage_flavor: value - tripleo_overcloud_profiles_list_block_storage_flavor: value - tripleo_overcloud_profiles_list_swift_storage_flavor: value - - - name: Assert all parameters for role tripleo_overcloud_profiles_list - assert: - that: - - tripleo_overcloud_profiles_list_output == - "overcloud profiles list --all --control-flavor value --compute-flavor value --ceph-storage-flavor value - --block-storage-flavor value --swift-storage-flavor value" diff --git a/roles/tripleo_overcloud_profiles_list/molecule/default/molecule.yml b/roles/tripleo_overcloud_profiles_list/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_profiles_list/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_profiles_list/molecule/default/prepare.yml b/roles/tripleo_overcloud_profiles_list/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_profiles_list/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_profiles_list/tasks/main.yml b/roles/tripleo_overcloud_profiles_list/tasks/main.yml deleted file mode 100644 index 10b19ff..0000000 --- a/roles/tripleo_overcloud_profiles_list/tasks/main.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -# tasks file for tripleo_overcloud_profiles_list -- name: Setup overcloud profiles list command - set_fact: - _list_cmd: >- - {{ tripleo_overcloud_profiles_list_os_cloud | ternary('', "source " ~ tripleo_overcloud_profiles_list_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud profiles list - {{ tripleo_overcloud_profiles_list_all | ternary('--all', '') }} - {{ tripleo_overcloud_profiles_list_control_flavor | ternary('--control-flavor ' ~ tripleo_overcloud_profiles_list_control_flavor, '') }} - {{ tripleo_overcloud_profiles_list_compute_flavor | ternary('--compute-flavor ' ~ tripleo_overcloud_profiles_list_compute_flavor, '') }} - {{ tripleo_overcloud_profiles_list_ceph_storage_flavor | ternary('--ceph-storage-flavor ' ~ tripleo_overcloud_profiles_list_ceph_storage_flavor, '') }} - {{ tripleo_overcloud_profiles_list_block_storage_flavor | ternary('--block-storage-flavor ' ~ tripleo_overcloud_profiles_list_block_storage_flavor, '') }} - {{ tripleo_overcloud_profiles_list_swift_storage_flavor | ternary('--swift-storage-flavor ' ~ tripleo_overcloud_profiles_list_swift_storage_flavor, '') }} - _list_env: - OS_CLOUD: "{{ tripleo_overcloud_profiles_list_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_profiles_list_debug|bool - block: - - name: Show the profiles list command - debug: - var: _list_cmd - - - name: Show the profiles list environment - debug: - var: _list_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_profiles_list_home_dir }}/tripleo_overcloud_profiles_list.sh" - shell_command: "{{ _list_cmd }}" - shell_environment: "{{ _list_env }}" - when: tripleo_overcloud_profiles_list_generate_scripts|bool - -- name: List profiles - shell: "{{ _list_cmd }}" # noqa 305 - environment: "{{ _list_env }}" - register: tripleo_overcloud_profiles_list_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_profiles_list_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_profiles_list_result.stdout is defined - set_fact: - tripleo_overcloud_profiles_list_output: "{{ tripleo_overcloud_profiles_list_result.stdout }}" diff --git a/roles/tripleo_overcloud_profiles_list/tests/inventory b/roles/tripleo_overcloud_profiles_list/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_profiles_list/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_profiles_list/tests/test.yml b/roles/tripleo_overcloud_profiles_list/tests/test.yml deleted file mode 100644 index 82256c9..0000000 --- a/roles/tripleo_overcloud_profiles_list/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_profiles_list diff --git a/roles/tripleo_overcloud_profiles_match/README.md b/roles/tripleo_overcloud_profiles_match/README.md deleted file mode 100644 index 18cc8be..0000000 --- a/roles/tripleo_overcloud_profiles_match/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_profiles_match -================================ - -A role to run profiles match. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_profiles_match_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_profiles_match_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_profiles_match_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_profiles_match_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_profiles_match_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_profiles_match_all`: List all nodes, even those not available to Nova. -* `tripleo_overcloud_profiles_list_control_flavor`: (Deprecated in U) Nova flavor to use for control nodes. -* `tripleo_overcloud_profiles_list_compute_flavor`: (Deprecated in U) Nova flavor to use for compute nodes. -* `tripleo_overcloud_profiles_list_ceph_storage_flavor`: (Deprecated in U) Nova flavor to use for ceph storage nodes. -* `tripleo_overcloud_profiles_list_block_storage_flavor`: (Deprecated in U) Nova flavor to use for cinder storage nodes. -* `tripleo_overcloud_profiles_list_swift_storage_flavor`: (Deprecated in U) Nova flavor to use for swift storage nodes. -* `tripleo_overcloud_profiles_match_control_scale`: (Deprecated in U) New number of control nodes. -* `tripleo_overcloud_profiles_match_compute_scale`: (Deprecated in U) New number of compute nodes. -* `tripleo_overcloud_profiles_match_ceph_storage_scale`: (Deprecated in U) New number of ceph storage nodes. -* `tripleo_overcloud_profiles_match_block_storage_scale`: (Deprecated in U) New number of cinder storage nodes. -* `tripleo_overcloud_profiles_match_swift_storage_scale`: (Deprecated in U) New number of swift storage nodes. -* `tripleo_overcloud_profiles_match_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_profiles_match_rc_file`. -* `tripleo_overcloud_profiles_match_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_profiles_match_output`: (String) The command standard output. -* `tripleo_overcloud_profiles_match_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud profiles match playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Match profiles - import_role: - name: tripleo_overcloud_profiles_match -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_profiles_match/defaults/main.yml b/roles/tripleo_overcloud_profiles_match/defaults/main.yml deleted file mode 100644 index 0c84562..0000000 --- a/roles/tripleo_overcloud_profiles_match/defaults/main.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# defaults file for tripleo_overcloud_profiles_match -openstack_bin: openstack -tripleo_overcloud_profiles_match_all: false -tripleo_overcloud_profiles_match_block_storage_flavor: -tripleo_overcloud_profiles_match_block_storage_scale: -tripleo_overcloud_profiles_match_ceph_storage_flavor: -tripleo_overcloud_profiles_match_ceph_storage_scale: -tripleo_overcloud_profiles_match_compute_flavor: -tripleo_overcloud_profiles_match_compute_scale: -tripleo_overcloud_profiles_match_control_flavor: -tripleo_overcloud_profiles_match_control_scale: -tripleo_overcloud_profiles_match_debug: false -tripleo_overcloud_profiles_match_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_profiles_match_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_profiles_match_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_profiles_match_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_profiles_match_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_profiles_match_swift_storage_flavor: -tripleo_overcloud_profiles_match_swift_storage_scale: diff --git a/roles/tripleo_overcloud_profiles_match/meta/main.yml b/roles/tripleo_overcloud_profiles_match/meta/main.yml deleted file mode 100644 index 5f63589..0000000 --- a/roles/tripleo_overcloud_profiles_match/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_profiles_match - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_profiles_match - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_profiles_match/molecule/default/converge.yml b/roles/tripleo_overcloud_profiles_match/molecule/default/converge.yml deleted file mode 100644 index 4fb39f2..0000000 --- a/roles/tripleo_overcloud_profiles_match/molecule/default/converge.yml +++ /dev/null @@ -1,166 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_overcloud_profiles_match_debug: true - tripleo_os_cloud: undercloud - tasks: - - - name: "Include tripleo_overcloud_profiles_match" - include_role: - name: "tripleo_overcloud_profiles_match" - - - name: Check role - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match" - - - name: Check parameter "tripleo_overcloud_profiles_match_all" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_all: true - - - name: Assert "tripleo_overcloud_profiles_match_all" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --all" - - - name: Check parameter "tripleo_overcloud_profiles_match_control_flavor" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_control_flavor: value - - - name: Assert "tripleo_overcloud_profiles_match_control_flavor" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --control-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_match_compute_flavor" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_compute_flavor: value - - - name: Assert "tripleo_overcloud_profiles_match_compute_flavor" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --compute-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_match_ceph_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_ceph_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_match_ceph_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --ceph-storage-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_match_block_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_block_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_match_block_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --block-storage-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_match_swift_storage_flavor" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_swift_storage_flavor: value - - - name: Assert "tripleo_overcloud_profiles_match_swift_storage_flavor" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --swift-storage-flavor value" - - - name: Check parameter "tripleo_overcloud_profiles_match_control_scale" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_control_scale: value - - - name: Assert "tripleo_overcloud_profiles_match_control_scale" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --control-scale value" - - - name: Check parameter "tripleo_overcloud_profiles_match_compute_scale" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_compute_scale: value - - - name: Assert "tripleo_overcloud_profiles_match_compute_scale" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --compute-scale value" - - - name: Check parameter "tripleo_overcloud_profiles_match_ceph_storage_scale" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_ceph_storage_scale: value - - - name: Assert "tripleo_overcloud_profiles_match_ceph_storage_scale" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --ceph-storage-scale value" - - - name: Check parameter "tripleo_overcloud_profiles_match_block_storage_scale" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_block_storage_scale: value - - - name: Assert "tripleo_overcloud_profiles_match_block_storage_scale" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --block-storage-scale value" - - - name: Check parameter "tripleo_overcloud_profiles_match_swift_storage_scale" - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_swift_storage_scale: value - - - name: Assert "tripleo_overcloud_profiles_match_swift_storage_scale" - assert: - that: - - tripleo_overcloud_profiles_match_output == "overcloud profiles match --swift-storage-scale value" - - - - name: Check all parameters for role tripleo_overcloud_profiles_match - include_role: - name: "tripleo_overcloud_profiles_match" - vars: - tripleo_overcloud_profiles_match_all: true - tripleo_overcloud_profiles_match_control_flavor: value - tripleo_overcloud_profiles_match_compute_flavor: value - tripleo_overcloud_profiles_match_ceph_storage_flavor: value - tripleo_overcloud_profiles_match_block_storage_flavor: value - tripleo_overcloud_profiles_match_swift_storage_flavor: value - tripleo_overcloud_profiles_match_control_scale: value - tripleo_overcloud_profiles_match_compute_scale: value - tripleo_overcloud_profiles_match_ceph_storage_scale: value - tripleo_overcloud_profiles_match_block_storage_scale: value - tripleo_overcloud_profiles_match_swift_storage_scale: value - - - name: Assert all parameters for role tripleo_overcloud_profiles_match - assert: - that: - - tripleo_overcloud_profiles_match_output == - "overcloud profiles match --all --control-flavor value --compute-flavor value - --ceph-storage-flavor value --block-storage-flavor value --swift-storage-flavor value - --control-scale value --compute-scale value --ceph-storage-scale value --block-storage-scale value - --swift-storage-scale value" diff --git a/roles/tripleo_overcloud_profiles_match/molecule/default/molecule.yml b/roles/tripleo_overcloud_profiles_match/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_profiles_match/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_profiles_match/molecule/default/prepare.yml b/roles/tripleo_overcloud_profiles_match/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_profiles_match/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_profiles_match/tasks/main.yml b/roles/tripleo_overcloud_profiles_match/tasks/main.yml deleted file mode 100644 index f841c38..0000000 --- a/roles/tripleo_overcloud_profiles_match/tasks/main.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -# tasks file for tripleo_overcloud_profiles_match -- name: Setup overcloud profiles match command - set_fact: - _match_cmd: >- - {{ tripleo_overcloud_profiles_match_os_cloud | ternary('', "source " ~ tripleo_overcloud_profiles_match_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud profiles match - {{ tripleo_overcloud_profiles_match_all | ternary('--all', '') }} - {{ tripleo_overcloud_profiles_match_control_flavor | ternary('--control-flavor ' - ~ tripleo_overcloud_profiles_match_control_flavor, '') }} - {{ tripleo_overcloud_profiles_match_compute_flavor | ternary('--compute-flavor ' - ~ tripleo_overcloud_profiles_match_compute_flavor, '') }} - {{ tripleo_overcloud_profiles_match_ceph_storage_flavor | ternary('--ceph-storage-flavor ' - ~ tripleo_overcloud_profiles_match_ceph_storage_flavor, '') }} - {{ tripleo_overcloud_profiles_match_block_storage_flavor | ternary('--block-storage-flavor ' - ~ tripleo_overcloud_profiles_match_block_storage_flavor, '') }} - {{ tripleo_overcloud_profiles_match_swift_storage_flavor | ternary('--swift-storage-flavor ' - ~ tripleo_overcloud_profiles_match_swift_storage_flavor, '') }} - {{ tripleo_overcloud_profiles_match_control_scale | ternary('--control-scale ' - ~ tripleo_overcloud_profiles_match_control_scale, '') }} - {{ tripleo_overcloud_profiles_match_compute_scale | ternary('--compute-scale ' - ~ tripleo_overcloud_profiles_match_compute_scale, '') }} - {{ tripleo_overcloud_profiles_match_ceph_storage_scale | ternary('--ceph-storage-scale ' - ~ tripleo_overcloud_profiles_match_ceph_storage_scale, '') }} - {{ tripleo_overcloud_profiles_match_block_storage_scale | ternary('--block-storage-scale ' - ~ tripleo_overcloud_profiles_match_block_storage_scale, '') }} - {{ tripleo_overcloud_profiles_match_swift_storage_scale | ternary('--swift-storage-scale ' - ~ tripleo_overcloud_profiles_match_swift_storage_scale, '') }} - - _match_env: - OS_CLOUD: "{{ tripleo_overcloud_profiles_match_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_profiles_match_debug|bool - block: - - name: Show the profiles match command - debug: - var: _match_cmd - - - name: Show the profiles match environment - debug: - var: _match_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_profiles_match_home_dir }}/tripleo_overcloud_profiles_match.sh" - shell_command: "{{ _match_cmd }}" - shell_environment: "{{ _match_env }}" - when: tripleo_overcloud_profiles_match_generate_scripts|bool - -- name: Match profiles - shell: "{{ _match_cmd }}" # noqa 305 - environment: "{{ _match_env }}" - register: tripleo_overcloud_profiles_match_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_profiles_match_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_profiles_match_result.stdout is defined - set_fact: - tripleo_overcloud_profiles_match_output: "{{ tripleo_overcloud_profiles_match_result.stdout }}" diff --git a/roles/tripleo_overcloud_profiles_match/tests/inventory b/roles/tripleo_overcloud_profiles_match/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_profiles_match/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_profiles_match/tests/test.yml b/roles/tripleo_overcloud_profiles_match/tests/test.yml deleted file mode 100644 index 6e02cf0..0000000 --- a/roles/tripleo_overcloud_profiles_match/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_profiles_match diff --git a/roles/tripleo_overcloud_raid_create/README.md b/roles/tripleo_overcloud_raid_create/README.md deleted file mode 100644 index 7367f2e..0000000 --- a/roles/tripleo_overcloud_raid_create/README.md +++ /dev/null @@ -1,62 +0,0 @@ -tripleo_overcloud_raid_create -============================= - -A role to perform raid on given nodes. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_raid_create_configuration`: (String) REQUIRED. Path to file containing raid configuration. -* `tripleo_overcloud_raid_create_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_overcloud_raid_create_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_raid_create_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_raid_create_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_raid_create_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_raid_create_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_raid_create_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_raid_create_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_raid_create_home_dir }}/overcloud_raid_create.log" -* `tripleo_overcloud_raid_create_nodes`: (List) REQUIRED. Nodes to create RAID on. Default: [] -* `tripleo_overcloud_raid_create_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_raid_create_rc_file`. -* `tripleo_overcloud_raid_create_poll`: (Integer) Number of seconds to wait between each checks to see if the command has completed. Default: 10 -* `tripleo_overcloud_raid_create_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_raid_create_timeout`: (Integer) Number in seconds to wait for the ansible execution of the command to finish. Default: 3600 - -Output Variables ----------------- - -* `tripleo_overcloud_raid_create_output`: (String) The command standard output. -* `tripleo_overcloud_raid_create_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example raid create - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud raid create - import_role: - name: tripleo_overcloud_raid_create - var: - tripleo_overcloud_raid_create_debug: true - tripleo_overcloud_raid_create_configuration: /home/stack/raid.yaml - tripleo_overcloud_raid_create_nodes: - - node1 - - node2 -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_raid_create/defaults/main.yml b/roles/tripleo_overcloud_raid_create/defaults/main.yml deleted file mode 100644 index 31272bd..0000000 --- a/roles/tripleo_overcloud_raid_create/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -# defaults file for tripleo_overcloud_raid_create ---- -openstack_bin: openstack -tripleo_overcloud_raid_create_configuration: -tripleo_overcloud_raid_create_debug: false -tripleo_overcloud_raid_create_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_raid_create_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_raid_create_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_raid_create_log: "{{ tripleo_overcloud_raid_create_home_dir }}/CHANGEME.log" -tripleo_overcloud_raid_create_log_combine: true -tripleo_overcloud_raid_create_log_output: true -tripleo_overcloud_raid_create_nodes: [] -tripleo_overcloud_raid_create_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_raid_create_poll: 10 -tripleo_overcloud_raid_create_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_raid_create_timeout: 3600 diff --git a/roles/tripleo_overcloud_raid_create/meta/main.yml b/roles/tripleo_overcloud_raid_create/meta/main.yml deleted file mode 100644 index 7e7d9e8..0000000 --- a/roles/tripleo_overcloud_raid_create/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_raid_create - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_raid_create - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_raid_create/molecule/default/converge.yml b/roles/tripleo_overcloud_raid_create/molecule/default/converge.yml deleted file mode 100644 index 4149aa4..0000000 --- a/roles/tripleo_overcloud_raid_create/molecule/default/converge.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_raid_create_log_output: false - tripleo_overcloud_raid_create_poll: 1 - tripleo_overcloud_raid_create_debug: true - tasks: - - - name: "Include tripleo_overcloud_raid_create" - include_role: - name: "tripleo_overcloud_raid_create" - - - name: Check role - assert: - that: - - tripleo_overcloud_raid_create_output == "overcloud raid create" - - - name: Assert "tripleo_overcloud_raid_create_nodes" - include_role: - name: "tripleo_overcloud_raid_create" - vars: - tripleo_overcloud_raid_create_nodes: - - node1 - - node2 - - - name: Validate tripleo_overcloud_raid_create_nodes - assert: - that: - - tripleo_overcloud_raid_create_output == - "overcloud raid create --node node1 --node node2" - - - name: Assert "tripleo_overcloud_raid_create_configuration" - include_role: - name: "tripleo_overcloud_raid_create" - vars: - tripleo_overcloud_raid_create_configuration: foo.yaml - - - name: Validate tripleo_overcloud_raid_create_configuration - assert: - that: - - tripleo_overcloud_raid_create_output == - "overcloud raid create foo.yaml" diff --git a/roles/tripleo_overcloud_raid_create/molecule/default/molecule.yml b/roles/tripleo_overcloud_raid_create/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_raid_create/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_raid_create/molecule/default/prepare.yml b/roles/tripleo_overcloud_raid_create/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_raid_create/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_raid_create/tasks/main.yml b/roles/tripleo_overcloud_raid_create/tasks/main.yml deleted file mode 100644 index 8eea1a1..0000000 --- a/roles/tripleo_overcloud_raid_create/tasks/main.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- -# tasks file for tripleo_overcloud_raid_create -- name: Set overcloud raid create facts - set_fact: - _raid_cmd: >- - {{ tripleo_overcloud_raid_create_os_cloud | ternary('', "source " ~ tripleo_overcloud_raid_create_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud raid create - {{ tripleo_overcloud_raid_create_nodes | tripleo.operator.shell_arg_list('--node') }} - {{ tripleo_overcloud_raid_create_configuration }} - {{ tripleo_overcloud_raid_create_log_output | ternary((">" ~ tripleo_overcloud_raid_create_log), '') }} - {{ tripleo_overcloud_raid_create_log_combine | ternary("2>&1", '') }} - _raid_env: - OS_CLOUD: "{{ tripleo_overcloud_raid_create_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_raid_create_log }}" - when: tripleo_overcloud_raid_create_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_raid_create_debug|bool - block: - - name: Show the command - debug: - var: _raid_cmd - - - name: Show the environment - debug: - var: _raid_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_raid_create_home_dir }}/tripleo_overcloud_raid_create.sh" - shell_command: "{{ _raid_cmd }}" - shell_environment: "{{ _raid_env }}" - when: tripleo_overcloud_raid_create_generate_scripts|bool - -- name: overcloud raid create - shell: "{{ _raid_cmd }}" # noqa 305 - environment: "{{ _raid_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_overcloud_raid_create_home_dir }}" - register: tripleo_overcloud_raid_create_result - async: "{{ tripleo_overcloud_raid_create_timeout }}" - poll: "{{ tripleo_overcloud_raid_create_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_raid_create_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_raid_create_result.stdout is defined - set_fact: - tripleo_overcloud_raid_create_output: "{{ tripleo_overcloud_raid_create_result.stdout }}" diff --git a/roles/tripleo_overcloud_raid_create/tests/inventory b/roles/tripleo_overcloud_raid_create/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_raid_create/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_raid_create/tests/test.yml b/roles/tripleo_overcloud_raid_create/tests/test.yml deleted file mode 100644 index 811c0d6..0000000 --- a/roles/tripleo_overcloud_raid_create/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_overcloud_raid_create diff --git a/roles/tripleo_overcloud_roles_generate/README.md b/roles/tripleo_overcloud_roles_generate/README.md deleted file mode 100644 index e2856d2..0000000 --- a/roles/tripleo_overcloud_roles_generate/README.md +++ /dev/null @@ -1,59 +0,0 @@ -tripleo_overcloud_roles_generate -======================== - -A role to run 'openstack overcloud roles generate' for generation of the -roles_data.yaml, from the TripleO Roles defined in the tripleo-heat-templates -roles/ directory. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_roles_generate_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_roles_generate_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_roles_generate_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_roles_generate_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_roles_generate_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_roles_generate_roles_path`: File system path containing the role yaml files. By default this is in tripleo-heat-templates/roles. -* `tripleo_overcloud_roles_generate_output_file`: File to capture all output to. For example, roles_data.yaml -* `tripleo_overcloud_roles_generate_skip_validate`: Skip role metadata type validation when generating the roles_data.yaml -* `tripleo_overcloud_roles_generate_roles`: REQUIRED - list of roles to use to generate the roles_data.yaml file for the deployment. NOTE: Ordering is important if no role has the "primary" and "controller" tags. If no role is tagged then the first role listed will be considered the primary role. This usually is the controller role. -* `tripleo_overcloud_roles_generate_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. - Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_roles_generate_rc_file`. -* `tripleo_overcloud_roles_generate_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - - - - -Output Variables ----------------- - -* `tripleo_overcloud_roles_generate_output`: (String) The command standard output. -* `tripleo_overcloud_roles_generate_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud node delete playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Generate overcloud roles_data.yaml - import_role: - name: tripleo_overcloud_roles_generate -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_roles_generate/defaults/main.yml b/roles/tripleo_overcloud_roles_generate/defaults/main.yml deleted file mode 100644 index 8111977..0000000 --- a/roles/tripleo_overcloud_roles_generate/defaults/main.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# defaults file for tripleo_overcloud_roles_generate -openstack_bin: openstack -tripleo_overcloud_roles_generate_debug: false -tripleo_overcloud_roles_generate_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_roles_generate_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_roles_generate_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_roles_generate_roles_path: /usr/share/openstack-tripleo-heat-templates/roles -tripleo_overcloud_roles_generate_output_file: "{{ tripleo_overcloud_roles_generate_home_dir }}/roles_data.yaml" -tripleo_overcloud_roles_generate_skip_validate: false -tripleo_overcloud_roles_generate_roles: [] -tripleo_overcloud_roles_generate_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_roles_generate_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_roles_generate/meta/main.yml b/roles/tripleo_overcloud_roles_generate/meta/main.yml deleted file mode 100644 index 39144f5..0000000 --- a/roles/tripleo_overcloud_roles_generate/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_roles_generate - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_roles_generate - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_roles_generate/molecule/default/converge.yml b/roles/tripleo_overcloud_roles_generate/molecule/default/converge.yml deleted file mode 100644 index 7c7dba2..0000000 --- a/roles/tripleo_overcloud_roles_generate/molecule/default/converge.yml +++ /dev/null @@ -1,60 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_roles_generate_debug: true - tasks: - - - name: Test --output-file - vars: - tripleo_overcloud_roles_generate_roles: ['Compute'] - tripleo_overcloud_roles_generate_output_file: "molecule_roles_test1.yml" - test_name: "--output-file" - block: - - name: 'Run test {{ test_name }}' - include_role: - name: "tripleo_overcloud_roles_generate" - - name: 'Check output {{ test_name }}' - assert: - that: - - tripleo_overcloud_roles_generate_output == - "overcloud roles generate --roles-path /usr/share/openstack-tripleo-heat-templates/roles - --output-file molecule_roles_test1.yml Compute" - - - name: Test --roles-path --output-file - vars: - tripleo_overcloud_roles_generate_roles_path: /foo - tripleo_overcloud_roles_generate_roles: ['Controller'] - tripleo_overcloud_roles_generate_output_file: "molecule_roles_test2.yml" - test_name: "--roles-path --output-file" - block: - - name: 'Run test {{ test_name }}' - include_role: - name: "tripleo_overcloud_roles_generate" - - name: 'Check output {{ test_name }}' - assert: - that: - - tripleo_overcloud_roles_generate_output == - "overcloud roles generate --roles-path /foo --output-file molecule_roles_test2.yml Controller" - - - name: Test all --roles-path --output-file --skip-validate - vars: - tripleo_overcloud_roles_generate_roles_path: /bar - tripleo_overcloud_roles_generate_skip_validate: true - tripleo_overcloud_roles_generate_output_file: "molecule_roles_test3.yml" - tripleo_overcloud_roles_generate_roles: ['Controller', 'Compute'] - test_name: "--roles-path --output-file --skip-validate" - block: - - name: 'Run test {{ test_name }}' - include_role: - name: "tripleo_overcloud_roles_generate" - - name: 'Check output {{ test_name }}' - assert: - that: - - tripleo_overcloud_roles_generate_output == - "overcloud roles generate --roles-path /bar --output-file molecule_roles_test3.yml - --skip-validate Controller Compute" diff --git a/roles/tripleo_overcloud_roles_generate/molecule/default/molecule.yml b/roles/tripleo_overcloud_roles_generate/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_roles_generate/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_roles_generate/molecule/default/prepare.yml b/roles/tripleo_overcloud_roles_generate/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_roles_generate/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_roles_generate/tasks/main.yml b/roles/tripleo_overcloud_roles_generate/tasks/main.yml deleted file mode 100644 index 6b33168..0000000 --- a/roles/tripleo_overcloud_roles_generate/tasks/main.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# tasks file for tripleo_overcloud_roles_generate -- name: setup overcloud roles generate - set_fact: - _generate_roles_cmd: >- - {{ tripleo_overcloud_roles_generate_os_cloud | ternary('', "source " ~ tripleo_overcloud_roles_generate_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud roles generate - {{ tripleo_overcloud_roles_generate_roles_path | ternary('--roles-path ' ~ tripleo_overcloud_roles_generate_roles_path, '') }} - {{ tripleo_overcloud_roles_generate_output_file | ternary('--output-file ' ~ tripleo_overcloud_roles_generate_output_file, '') }} - {{ tripleo_overcloud_roles_generate_skip_validate | ternary('--skip-validate', '') }} - {{ tripleo_overcloud_roles_generate_roles | tripleo.operator.shell_arg_list() }} - _generate_roles_env: - OS_CLOUD: "{{ tripleo_overcloud_roles_generate_os_cloud }}" - -- name: Debug the _generate_roles_cmd - when: tripleo_overcloud_roles_generate_debug|bool - block: - - name: Show the roles generate command - debug: - var: _generate_roles_cmd - - - name: Show the roles generate environment - debug: - var: _generate_roles_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_roles_generate_home_dir }}/tripleo_overcloud_roles_generate.sh" - shell_command: "{{ _generate_roles_cmd }}" - shell_environment: "{{ _generate_roles_env }}" - when: tripleo_overcloud_roles_generate_generate_scripts|bool - -- name: run roles generate - shell: "{{ _generate_roles_cmd }}" # noqa 305 - environment: "{{ _generate_roles_env }}" - register: tripleo_overcloud_roles_generate_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_roles_generate_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_roles_generate_result.stdout is defined - set_fact: - tripleo_overcloud_roles_generate_output: "{{ tripleo_overcloud_roles_generate_result.stdout }}" diff --git a/roles/tripleo_overcloud_roles_list/README.md b/roles/tripleo_overcloud_roles_list/README.md deleted file mode 100644 index 1a90edf..0000000 --- a/roles/tripleo_overcloud_roles_list/README.md +++ /dev/null @@ -1,57 +0,0 @@ -tripleo_overcloud_roles_list -============================ - -A role to run roles list. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_roles_list_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_roles_list_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_roles_list_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_roles_list_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_roles_list_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_roles_list_name`: The name of the plan, which is used for the object storage container, workflow environment and orchestration stack names. -* `tripleo_overcloud_roles_list_detail`: Include details about each role. -* `tripleo_overcloud_roles_list_current`: Only show the information for the roles currently enabled for the plan. -* `tripleo_overcloud_roles_list_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_roles_list_rc_file`. -* `tripleo_overcloud_roles_list_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_roles_list_output`: (String) The command standard output. -* `tripleo_overcloud_roles_list_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud roles list playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: List roles - import_role: - name: tripleo_overcloud_roles_list -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_roles_list/defaults/main.yml b/roles/tripleo_overcloud_roles_list/defaults/main.yml deleted file mode 100644 index 31f8c03..0000000 --- a/roles/tripleo_overcloud_roles_list/defaults/main.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -# defaults file for tripleo_overcloud_roles_list -openstack_bin: openstack -tripleo_overcloud_roles_list_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_roles_list_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_roles_list_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_roles_list_debug: false -tripleo_overcloud_roles_list_name: -tripleo_overcloud_roles_list_detail: false -tripleo_overcloud_roles_list_current: false -tripleo_overcloud_roles_list_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_roles_list_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_roles_list/meta/main.yml b/roles/tripleo_overcloud_roles_list/meta/main.yml deleted file mode 100644 index dd45fc6..0000000 --- a/roles/tripleo_overcloud_roles_list/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_roles_list - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_roles_list - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_roles_list/molecule/default/converge.yml b/roles/tripleo_overcloud_roles_list/molecule/default/converge.yml deleted file mode 100644 index 40b3d51..0000000 --- a/roles/tripleo_overcloud_roles_list/molecule/default/converge.yml +++ /dev/null @@ -1,71 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_roles_list_debug: true - tasks: - - - name: "Include tripleo_overcloud_roles_list" - include_role: - name: "tripleo_overcloud_roles_list" - vars: - openstack_bin: echo - tripleo_overcloud_roles_list_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_roles_list_output == "overcloud roles list" - - - name: Check parameter "tripleo_overcloud_roles_list_name" - include_role: - name: "tripleo_overcloud_roles_list" - vars: - tripleo_overcloud_roles_list_name: value - - - name: Assert "tripleo_overcloud_roles_list_name" - assert: - that: - - tripleo_overcloud_roles_list_output == "overcloud roles list --name value" - - - name: Check parameter "tripleo_overcloud_roles_list_detail" - include_role: - name: "tripleo_overcloud_roles_list" - vars: - tripleo_overcloud_roles_list_detail: true - - - name: Assert "tripleo_overcloud_roles_list_detail" - assert: - that: - - tripleo_overcloud_roles_list_output == "overcloud roles list --detail" - - - name: Check parameter "tripleo_overcloud_roles_list_current" - include_role: - name: "tripleo_overcloud_roles_list" - vars: - tripleo_overcloud_roles_list_current: true - - - name: Assert "tripleo_overcloud_roles_list_current" - assert: - that: - - tripleo_overcloud_roles_list_output == "overcloud roles list --current" - - - - name: Check all parameters for role tripleo_overcloud_roles_list - include_role: - name: "tripleo_overcloud_roles_list" - vars: - tripleo_overcloud_roles_list_name: value - tripleo_overcloud_roles_list_detail: true - tripleo_overcloud_roles_list_current: true - - - name: Assert all parameters for role tripleo_overcloud_roles_list - assert: - that: - - tripleo_overcloud_roles_list_output == - "overcloud roles list --name value --detail --current" diff --git a/roles/tripleo_overcloud_roles_list/molecule/default/molecule.yml b/roles/tripleo_overcloud_roles_list/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_roles_list/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_roles_list/molecule/default/prepare.yml b/roles/tripleo_overcloud_roles_list/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_roles_list/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_roles_list/tasks/main.yml b/roles/tripleo_overcloud_roles_list/tasks/main.yml deleted file mode 100644 index 90ea147..0000000 --- a/roles/tripleo_overcloud_roles_list/tasks/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -# tasks file for tripleo_overcloud_roles_list -- name: Setup overcloud roles list command - set_fact: - _list_cmd: >- - {{ tripleo_overcloud_roles_list_os_cloud | ternary('', "source " ~ tripleo_overcloud_roles_list_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud roles list - {{ tripleo_overcloud_roles_list_name | ternary('--name ' ~ tripleo_overcloud_roles_list_name, '') }} - {{ tripleo_overcloud_roles_list_detail | ternary('--detail', '') }} - {{ tripleo_overcloud_roles_list_current | ternary('--current', '') }} - _list_env: - OS_CLOUD: "{{ tripleo_overcloud_roles_list_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_roles_list_debug|bool - block: - - name: Show the roles list command - debug: - var: _list_cmd - - - name: Show the roles list environment - debug: - var: _list_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_roles_list_home_dir }}/tripleo_overcloud_roles_list.sh" - shell_command: "{{ _list_cmd }}" - shell_environment: "{{ _list_env }}" - when: tripleo_overcloud_roles_list_generate_scripts|bool - -- name: List roles - shell: "{{ _list_cmd }}" # noqa 305 - environment: "{{ _list_env }}" - register: tripleo_overcloud_roles_list_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_roles_list_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_roles_list_result.stdout is defined - set_fact: - tripleo_overcloud_roles_list_output: "{{ tripleo_overcloud_roles_list_result.stdout }}" diff --git a/roles/tripleo_overcloud_roles_list/tests/inventory b/roles/tripleo_overcloud_roles_list/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_roles_list/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_roles_list/tests/test.yml b/roles/tripleo_overcloud_roles_list/tests/test.yml deleted file mode 100644 index c4e766a..0000000 --- a/roles/tripleo_overcloud_roles_list/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_roles_list diff --git a/roles/tripleo_overcloud_roles_show/README.md b/roles/tripleo_overcloud_roles_show/README.md deleted file mode 100644 index 3dcbc42..0000000 --- a/roles/tripleo_overcloud_roles_show/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_overcloud_roles_show -============================ - -A role to run roles show. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_roles_show_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_roles_show_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_roles_show_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_roles_show_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_roles_show_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_roles_show_role`: Role to display more information about. -* `tripleo_overcloud_roles_show_name`: The name of the plan, which is used for the object storage container, - workflow environment and orchestration stack names. -* `tripleo_overcloud_roles_show_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. - Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_roles_show_rc_file`. -* `tripleo_overcloud_roles_show_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_roles_show_output`: (String) The command standard output. -* `tripleo_overcloud_roles_show_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud roles show playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Show roles - import_role: - name: tripleo_overcloud_roles_show -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_roles_show/defaults/main.yml b/roles/tripleo_overcloud_roles_show/defaults/main.yml deleted file mode 100644 index dbb1262..0000000 --- a/roles/tripleo_overcloud_roles_show/defaults/main.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# defaults file for tripleo_overcloud_roles_show -openstack_bin: openstack -tripleo_overcloud_roles_show_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_roles_show_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_roles_show_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_roles_show_debug: false -tripleo_overcloud_roles_show_role: -tripleo_overcloud_roles_show_name: overcloud -tripleo_overcloud_roles_show_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_roles_show_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_roles_show/meta/main.yml b/roles/tripleo_overcloud_roles_show/meta/main.yml deleted file mode 100644 index 8615f6c..0000000 --- a/roles/tripleo_overcloud_roles_show/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_roles_show - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_roles_show - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_roles_show/molecule/default/converge.yml b/roles/tripleo_overcloud_roles_show/molecule/default/converge.yml deleted file mode 100644 index 1bbad09..0000000 --- a/roles/tripleo_overcloud_roles_show/molecule/default/converge.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_roles_show" - include_role: - name: "tripleo_overcloud_roles_show" - vars: - openstack_bin: echo - tripleo_overcloud_roles_show_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_roles_show_output == "overcloud roles show --name overcloud" - - - name: Check parameter "tripleo_overcloud_roles_show_role" - include_role: - name: "tripleo_overcloud_roles_show" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_roles_show_debug: true - tripleo_overcloud_roles_show_role: value - - - name: Assert "tripleo_overcloud_roles_show_role" - assert: - that: - - tripleo_overcloud_roles_show_output == "overcloud roles show --role value --name overcloud" - - - name: Check parameter "tripleo_overcloud_roles_show_name" - include_role: - name: "tripleo_overcloud_roles_show" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_roles_show_debug: true - tripleo_overcloud_roles_show_name: value - - - name: Assert "tripleo_overcloud_roles_show_name" - assert: - that: - - tripleo_overcloud_roles_show_output == "overcloud roles show --name value" - - - - name: Check all parameters for role tripleo_overcloud_roles_show - include_role: - name: "tripleo_overcloud_roles_show" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_roles_show_debug: true - tripleo_overcloud_roles_show_role: value - tripleo_overcloud_roles_show_name: value - - - name: Assert all parameters for role tripleo_overcloud_roles_show - assert: - that: - - tripleo_overcloud_roles_show_output == - "overcloud roles show --role value --name value" diff --git a/roles/tripleo_overcloud_roles_show/molecule/default/molecule.yml b/roles/tripleo_overcloud_roles_show/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_roles_show/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_roles_show/molecule/default/prepare.yml b/roles/tripleo_overcloud_roles_show/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_roles_show/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_roles_show/tasks/main.yml b/roles/tripleo_overcloud_roles_show/tasks/main.yml deleted file mode 100644 index 6e0bc14..0000000 --- a/roles/tripleo_overcloud_roles_show/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# tasks file for tripleo_overcloud_roles_show -- name: Setup overcloud roles show command - set_fact: - _show_cmd: >- - {{ tripleo_overcloud_roles_show_os_cloud | ternary('', "source " ~ tripleo_overcloud_roles_show_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud roles show - {{ tripleo_overcloud_roles_show_role | ternary('--role ' ~ tripleo_overcloud_roles_show_role, '') }} - {{ tripleo_overcloud_roles_show_name | ternary('--name ' ~ tripleo_overcloud_roles_show_name, '') }} - _show_env: - OS_CLOUD: "{{ tripleo_overcloud_roles_show_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_roles_show_debug|bool - block: - - name: Show the roles show command - debug: - var: _show_cmd - - - name: Show the roles show environment - debug: - var: _show_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_roles_show_home_dir }}/tripleo_overcloud_roles_show.sh" - shell_command: "{{ _show_cmd }}" - shell_environment: "{{ _show_env }}" - when: tripleo_overcloud_roles_show_generate_scripts|bool - -- name: Show roles - shell: "{{ _show_cmd }}" # noqa 305 - environment: "{{ _show_env }}" - register: tripleo_overcloud_roles_show_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_roles_show_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_roles_show_result.stdout is defined - set_fact: - tripleo_overcloud_roles_show_output: "{{ tripleo_overcloud_roles_show_result.stdout }}" diff --git a/roles/tripleo_overcloud_roles_show/tests/inventory b/roles/tripleo_overcloud_roles_show/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_roles_show/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_roles_show/tests/test.yml b/roles/tripleo_overcloud_roles_show/tests/test.yml deleted file mode 100644 index 436246d..0000000 --- a/roles/tripleo_overcloud_roles_show/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_roles_show diff --git a/roles/tripleo_overcloud_status/README.md b/roles/tripleo_overcloud_status/README.md deleted file mode 100644 index 6cf793c..0000000 --- a/roles/tripleo_overcloud_status/README.md +++ /dev/null @@ -1,52 +0,0 @@ -tripleo_overcloud_status -========================== - -A role to get the deployment status output. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_status_debug`: (Boolean) Flag to print out the command that is run. Default: False -* `tripleo_overcloud_status_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_status_rc_file`. -* `tripleo_overcloud_status_plan`: (String) The name of the stack/plan. Default: overcloud -* `tripleo_overcloud_status_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_status_output`: (String) The command standard output. -* `tripleo_overcloud_status_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud status execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Get overcloud status - import_role: - name: tripleo_overcloud_status -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_status/defaults/main.yml b/roles/tripleo_overcloud_status/defaults/main.yml deleted file mode 100644 index af07ff7..0000000 --- a/roles/tripleo_overcloud_status/defaults/main.yml +++ /dev/null @@ -1,6 +0,0 @@ -# defaults file for tripleo_overcloud_status ---- -tripleo_overcloud_status_debug: false -tripleo_overcloud_status_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_status_plan: overcloud -tripleo_overcloud_status_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_status/meta/main.yml b/roles/tripleo_overcloud_status/meta/main.yml deleted file mode 100644 index 713635e..0000000 --- a/roles/tripleo_overcloud_status/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_status - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_status - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_status/tasks/main.yml b/roles/tripleo_overcloud_status/tasks/main.yml deleted file mode 100644 index e1d89b3..0000000 --- a/roles/tripleo_overcloud_status/tasks/main.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -# tasks file for tripleo_overcloud_status -- name: Setup overcloud status facts - set_fact: - _status_cmd: >- - {{ tripleo_overcloud_status_os_cloud | ternary('', "source " ~ tripleo_overcloud_status_rc_file ~ "; ") }} - openstack overcloud status - {{ tripleo_overcloud_status_plan | ternary('--plan ' ~ tripleo_overcloud_status_plan, '') }} - _status_env: - OS_CLOUD: "{{ tripleo_overcloud_status_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_status_debug|bool - block: - - name: Show the overcloud status command - debug: - var: _status_cmd - - - name: Show the overcloud status environment - debug: - var: _status_env - -- name: Overcloud status - shell: "{{ _status_cmd }}" # noqa 305 - environment: "{{ _status_env }}" - register: tripleo_overcloud_status_result - changed_when: false - -- name: Set output fact - when: - - tripleo_overcloud_status_result.stdout is defined - set_fact: - tripleo_overcloud_status_output: "{{ tripleo_overcloud_status_result.stdout }}" diff --git a/roles/tripleo_overcloud_status/tests/inventory b/roles/tripleo_overcloud_status/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_status/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_status/tests/test.yml b/roles/tripleo_overcloud_status/tests/test.yml deleted file mode 100644 index 657fb21..0000000 --- a/roles/tripleo_overcloud_status/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_status diff --git a/roles/tripleo_overcloud_support_report_collect/README.md b/roles/tripleo_overcloud_support_report_collect/README.md deleted file mode 100644 index 936f968..0000000 --- a/roles/tripleo_overcloud_support_report_collect/README.md +++ /dev/null @@ -1,56 +0,0 @@ -tripleo_overcloud_support_report_collect -======================================== - -A role to run support report collection. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_support_report_collect_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_overcloud_support_report_collect_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_support_report_collect_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_support_report_collect_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_support_report_collect_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_support_report_collect_server_name`: Server name, group name, or partial name to match. For example "Controller" will match all controllers for an environment. -* `tripleo_overcloud_support_report_collect_output_dir`: Output directory for the report. -* `tripleo_overcloud_support_report_collect_os_cloud`: (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_support_report_collect_rc_file`. -* `tripleo_overcloud_support_report_collect_rc_file`: (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_support_report_collect_output`: (String) The command standard output. -* `tripleo_overcloud_support_report_collect_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud support report collecting playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Report support - import_role: - name: tripleo_overcloud_support_report_collect -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_support_report_collect/defaults/main.yml b/roles/tripleo_overcloud_support_report_collect/defaults/main.yml deleted file mode 100644 index df8a4fe..0000000 --- a/roles/tripleo_overcloud_support_report_collect/defaults/main.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# defaults file for tripleo_overcloud_support_report_collect -openstack_bin: openstack -tripleo_overcloud_support_report_collect_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_support_report_collect_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_support_report_collect_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_support_report_collect_debug: false -tripleo_overcloud_support_report_collect_server_name: -tripleo_overcloud_support_report_collect_output_dir: /var/lib/tripleo/support -tripleo_overcloud_support_report_collect_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_support_report_collect_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" diff --git a/roles/tripleo_overcloud_support_report_collect/meta/main.yml b/roles/tripleo_overcloud_support_report_collect/meta/main.yml deleted file mode 100644 index c1e2f0f..0000000 --- a/roles/tripleo_overcloud_support_report_collect/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_support_report_collect - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_support_report_collect - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_support_report_collect/molecule/default/converge.yml b/roles/tripleo_overcloud_support_report_collect/molecule/default/converge.yml deleted file mode 100644 index 2653b33..0000000 --- a/roles/tripleo_overcloud_support_report_collect/molecule/default/converge.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - tasks: - - - name: "Include tripleo_overcloud_support_report_collect" - include_role: - name: "tripleo_overcloud_support_report_collect" - vars: - openstack_bin: echo - tripleo_overcloud_support_report_collect_debug: true - tripleo_os_cloud: undercloud - - - name: Check role - assert: - that: - - tripleo_overcloud_support_report_collect_output == "overcloud support report collect --output /var/lib/tripleo/support" - - - name: Check parameter "tripleo_overcloud_support_report_collect_server_name" - include_role: - name: "tripleo_overcloud_support_report_collect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_support_report_collect_debug: true - tripleo_overcloud_support_report_collect_server_name: value - - - name: Assert "tripleo_overcloud_support_report_collect_server_name" - assert: - that: - - tripleo_overcloud_support_report_collect_output == "overcloud support report collect value --output /var/lib/tripleo/support" - - - name: Check parameter "tripleo_overcloud_support_report_collect_output_dir" - include_role: - name: "tripleo_overcloud_support_report_collect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_support_report_collect_debug: true - tripleo_overcloud_support_report_collect_output_dir: value - - - name: Assert "tripleo_overcloud_support_report_collect_output_dir" - assert: - that: - - tripleo_overcloud_support_report_collect_output == "overcloud support report collect --output value" - - - - name: Check all parameters for role tripleo_overcloud_support_report_collect - include_role: - name: "tripleo_overcloud_support_report_collect" - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_support_report_collect_debug: true - tripleo_overcloud_support_report_collect_server_name: value - tripleo_overcloud_support_report_collect_output_dir: value - - - name: Assert all parameters for role tripleo_overcloud_support_report_collect - assert: - that: - - tripleo_overcloud_support_report_collect_output == - "overcloud support report collect value --output value" diff --git a/roles/tripleo_overcloud_support_report_collect/molecule/default/molecule.yml b/roles/tripleo_overcloud_support_report_collect/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_support_report_collect/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_support_report_collect/molecule/default/prepare.yml b/roles/tripleo_overcloud_support_report_collect/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_support_report_collect/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_support_report_collect/tasks/main.yml b/roles/tripleo_overcloud_support_report_collect/tasks/main.yml deleted file mode 100644 index 1975967..0000000 --- a/roles/tripleo_overcloud_support_report_collect/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# tasks file for tripleo_overcloud_support_report_collect -- name: Setup overcloud support report command - set_fact: - _report_cmd: >- - {{ tripleo_overcloud_support_report_collect_os_cloud | ternary('', "source " ~ tripleo_overcloud_support_report_collect_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud support report collect - {{ tripleo_overcloud_support_report_collect_server_name | ternary(tripleo_overcloud_support_report_collect_server_name, '') }} - {{ tripleo_overcloud_support_report_collect_output_dir | ternary('--output ' ~ tripleo_overcloud_support_report_collect_output_dir, '') }} - _report_env: - OS_CLOUD: "{{ tripleo_overcloud_support_report_collect_os_cloud }}" - -- name: Show debug information - when: tripleo_overcloud_support_report_collect_debug|bool - block: - - name: Show the support report command - debug: - var: _report_cmd - - - name: Show the support report environment - debug: - var: _report_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_support_report_collect_home_dir }}/tripleo_overcloud_support_report_collect.sh" - shell_command: "{{ _report_cmd }}" - shell_environment: "{{ _report_env }}" - when: tripleo_overcloud_support_report_collect_generate_scripts|bool - -- name: Report support - shell: "{{ _report_cmd }}" # noqa 305 - environment: "{{ _report_env }}" - register: tripleo_overcloud_support_report_collect_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_support_report_collect_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_support_report_collect_result.stdout is defined - set_fact: - tripleo_overcloud_support_report_collect_output: "{{ tripleo_overcloud_support_report_collect_result.stdout }}" diff --git a/roles/tripleo_overcloud_support_report_collect/tests/inventory b/roles/tripleo_overcloud_support_report_collect/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_support_report_collect/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_support_report_collect/tests/test.yml b/roles/tripleo_overcloud_support_report_collect/tests/test.yml deleted file mode 100644 index ab8006f..0000000 --- a/roles/tripleo_overcloud_support_report_collect/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_support_report_collect diff --git a/roles/tripleo_overcloud_update_converge/README.md b/roles/tripleo_overcloud_update_converge/README.md deleted file mode 100644 index 13b7351..0000000 --- a/roles/tripleo_overcloud_update_converge/README.md +++ /dev/null @@ -1,98 +0,0 @@ -tripleo_overcloud_update_converge -================================= - -A role to execute an overcloud update converge. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_update_converge_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_update_converge_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_update_converge_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_update_converge_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_update_converge_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_update_converge_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_update_converge_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_update_converge_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_update_converge_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_update_converge_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_update_converge_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_update_converge_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_update_converge_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_update_converge_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_update_converge_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_update_converge_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_update_converge_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_update_converge_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_update_converge_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_update_converge_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_update_converge_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_update_converge_home_dir }}/overcloud_update_converge.log" -* `tripleo_overcloud_update_converge_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_update_converge_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_update_converge_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_update_converge_no_proxy`: (String) String containing a comma separated list of hosts to skip proxying when http_proxy and https_proxy are used. -* `tripleo_overcloud_update_converge_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_update_converge_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_update_converge_rc_file`. -* `tripleo_overcloud_update_converge_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_update_converge_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_update_converge_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_update_converge_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_update_converge_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_update_converge_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_update_converge_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_update_converge_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_update_converge_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_update_converge_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_update_converge_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_update_converge_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_update_converge_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_update_converge_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_update_converge_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_overcloud_update_converge_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_update_converge_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_update_converge_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_update_converge_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_update_converge_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false -* 'tripleo_overcloud_update_converge_yes': (Boolean) Flag to skip the confirmation required before any update converge operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_update_converge_output`: (String) The command standard output. -* `tripleo_overcloud_update_converge_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud update converge execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud update converge - import_role: - name: tripleo_overcloud_update_converge - vars: - tripleo_overcloud_update_converge_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_update_converge/defaults/main.yml b/roles/tripleo_overcloud_update_converge/defaults/main.yml deleted file mode 100644 index 77d2a23..0000000 --- a/roles/tripleo_overcloud_update_converge/defaults/main.yml +++ /dev/null @@ -1,50 +0,0 @@ -# defaults file for tripleo_overcloud_update_converge ---- -openstack_bin: openstack -tripleo_overcloud_update_converge_answers_file: -tripleo_overcloud_update_converge_baremetal_deployment: -tripleo_overcloud_update_converge_config_download: false -tripleo_overcloud_update_converge_config_download_timeout: -tripleo_overcloud_update_converge_debug: false -tripleo_overcloud_update_converge_deployed_server: false -tripleo_overcloud_update_converge_disable_password_generation: false -tripleo_overcloud_update_converge_disable_validations: false -tripleo_overcloud_update_converge_dry_run: false -tripleo_overcloud_update_converge_environment_dirs: [] -tripleo_overcloud_update_converge_environment_files: [] -tripleo_overcloud_update_converge_force_postconfig: false -tripleo_overcloud_update_converge_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_update_converge_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_update_converge_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_update_converge_inflight_validations: false -tripleo_overcloud_update_converge_libvirt_type: -tripleo_overcloud_update_converge_log: "{{ tripleo_overcloud_update_converge_home_dir }}/overcloud_update_converge.log" -tripleo_overcloud_update_converge_log_combine: true -tripleo_overcloud_update_converge_log_output: true -tripleo_overcloud_update_converge_networks_file: -tripleo_overcloud_update_converge_no_cleanup: false -tripleo_overcloud_update_converge_no_config_download: false -tripleo_overcloud_update_converge_no_proxy: -tripleo_overcloud_update_converge_ntp_server: -tripleo_overcloud_update_converge_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_update_converge_output_dir: -tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout: -tripleo_overcloud_update_converge_overcloud_ssh_key: -tripleo_overcloud_update_converge_overcloud_ssh_network: -tripleo_overcloud_update_converge_overcloud_ssh_port_timeout: -tripleo_overcloud_update_converge_overcloud_ssh_user: -tripleo_overcloud_update_converge_override_ansible_cfg: -tripleo_overcloud_update_converge_plan_environment_file: -tripleo_overcloud_update_converge_poll: 10 -tripleo_overcloud_update_converge_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_update_converge_roles_file: -tripleo_overcloud_update_converge_run_validations: false -tripleo_overcloud_update_converge_skip_deploy_identifier: false -tripleo_overcloud_update_converge_skip_postconfig: false -tripleo_overcloud_update_converge_stack: overcloud -tripleo_overcloud_update_converge_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_update_converge_timeout: 5700 -tripleo_overcloud_update_converge_timeout_arg: 90 -tripleo_overcloud_update_converge_validation_errors_nonfatal: false -tripleo_overcloud_update_converge_validation_warnings_fatal: false -tripleo_overcloud_update_converge_yes: true diff --git a/roles/tripleo_overcloud_update_converge/meta/main.yml b/roles/tripleo_overcloud_update_converge/meta/main.yml deleted file mode 100644 index fa641b1..0000000 --- a/roles/tripleo_overcloud_update_converge/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_update_converge - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_update_converge - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_update_converge/molecule/default/converge.yml b/roles/tripleo_overcloud_update_converge/molecule/default/converge.yml deleted file mode 100644 index 0304ab9..0000000 --- a/roles/tripleo_overcloud_update_converge/molecule/default/converge.yml +++ /dev/null @@ -1,488 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_update_converge_debug: true - tripleo_overcloud_update_converge_log_output: false - tripleo_overcloud_update_converge_log_combine: false - tripleo_overcloud_update_converge_poll: 1 - tripleo_overcloud_update_converge_yes: false - tasks: - - - name: "Include tripleo_overcloud_update_converge" - include_role: - name: "tripleo_overcloud_update_converge" - - - name: Check role - assert: - that: - - tripleo_overcloud_update_converge_output == - "overcloud update converge --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_update_converge_stack" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: test - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - - - name: Assert "tripleo_overcloud_update_converge_stack" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --stack test" - - - name: Check parameter "tripleo_overcloud_update_converge_yes" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_yes: true - - - name: Assert "tripleo_overcloud_update_converge_yes" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --yes" - - - name: Check parameter "tripleo_overcloud_update_converge_libvirt_type" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_update_converge_libvirt_type" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_update_converge_ntp_server" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_update_converge_ntp_server" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_update_converge_no_proxy" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_update_converge_no_proxy" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_update_converge_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_update_converge_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_update_converge_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_update_converge_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_update_converge_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_update_converge_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_update_converge_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_update_converge_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_update_converge_environment_files" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_update_converge_environment_files" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_update_converge_environment_dirs" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_update_converge_environment_dirs" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_update_converge_roles_files" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_update_converge_roles_files" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_update_converge_networks_file" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_update_converge_networks_file" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_update_converge_plan_environment_file" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_no_cleanup: true - - - name: Assert "tripleo_overcloud_update_converge_no_cleanup" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --no-cleanup" - - - name: Check parameter "tripleo_overcloud_update_converge_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_update_converge_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_update_converge_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_update_converge_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_update_converge_disable_validations" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_disable_validations: true - - - name: Assert "tripleo_overcloud_update_converge_disable_validations" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --disable-validations" - - - name: Check parameter "tripleo_overcloud_update_converge_inflight_validations" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_inflight_validations: true - - - name: Assert "tripleo_overcloud_update_converge_inflight_validations" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --inflight-validations" - - - name: Check parameter "tripleo_overcloud_update_converge_dry_run" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_dry_run: true - - - name: Assert "tripleo_overcloud_update_converge_dry_run" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --dry-run" - - - name: Check parameter "tripleo_overcloud_update_converge_run_validations" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_run_validations: true - - - name: Assert "tripleo_overcloud_update_converge_run_validations" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --run-validations" - - - name: Check parameter "tripleo_overcloud_update_converge_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_update_converge_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_update_converge_skip_postconfig" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_skip_postconfig: true - - - name: Assert "tripleo_overcloud_update_converge_skip_postconfig" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_update_converge_force_postconfig" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_force_postconfig: true - - - name: Assert "tripleo_overcloud_update_converge_force_postconfig" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --force-postconfig" - - - name: Check parameter "tripleo_overcloud_update_converge_answers_file" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_update_converge_answers_file" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_update_converge_disable_password_generation" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_disable_password_generation: true - - - name: Assert "tripleo_overcloud_update_converge_disable_password_generation" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_update_converge_deployed_server" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_deployed_server: true - - - name: Assert "tripleo_overcloud_update_converge_deployed_server" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --deployed-server" - - - name: Check parameter "tripleo_overcloud_update_converge_config_download" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_config_download: true - - - name: Assert "tripleo_overcloud_update_converge_config_download" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --config-download" - - - name: Check parameter "tripleo_overcloud_update_converge_no_config_download" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_no_config_download: true - - - name: Assert "tripleo_overcloud_update_converge_no_config_download" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --no-config-download" - - - name: Check parameter "tripleo_overcloud_update_converge_output_dir" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_update_converge_output_dir" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_update_converge_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_update_converge_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_update_converge_config_download_timeout" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_update_converge_config_download_timeout" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_update_converge_baremetal_deployment" - include_role: - name: "tripleo_overcloud_update_converge" - vars: - tripleo_overcloud_update_converge_stack: - tripleo_overcloud_update_converge_templates: - tripleo_overcloud_update_converge_timeout_arg: - tripleo_overcloud_update_converge_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_update_converge_baremetal_deployment" - assert: - that: - - tripleo_overcloud_update_converge_output == "overcloud update converge --baremetal-deployment bare.yaml" diff --git a/roles/tripleo_overcloud_update_converge/molecule/default/molecule.yml b/roles/tripleo_overcloud_update_converge/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_update_converge/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_update_converge/molecule/default/prepare.yml b/roles/tripleo_overcloud_update_converge/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_update_converge/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_update_converge/tasks/main.yml b/roles/tripleo_overcloud_update_converge/tasks/main.yml deleted file mode 100644 index 31eb00d..0000000 --- a/roles/tripleo_overcloud_update_converge/tasks/main.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -# tasks file for tripleo_overcloud_update_converge -- name: Setup overcloud update converge facts - set_fact: - _update_converge_cmd: >- - {{ tripleo_overcloud_update_converge_os_cloud | ternary('', "source " ~ tripleo_overcloud_update_converge_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud update converge - {{ tripleo_overcloud_update_converge_templates | ternary('--templates $UPDATE_TEMPLATES', '') }} - {{ tripleo_overcloud_update_converge_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_update_converge_timeout_arg | ternary('--timeout $UPDATE_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_update_converge_libvirt_type | ternary('--libvirt-type $UPDATE_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_update_converge_ntp_server | ternary('--ntp-server $UPDATE_NTP_SERVER', '') }} - {{ tripleo_overcloud_update_converge_no_proxy | ternary('--no-proxy $UPDATE_NO_PROXY', '') }} - {{ tripleo_overcloud_update_converge_overcloud_ssh_user | ternary('--overcloud-ssh-user $UPDATE_OVERCLOUD_SSH_USER', '') }} - {{ tripleo_overcloud_update_converge_overcloud_ssh_key | ternary('--overcloud-ssh-key $UPDATE_OVERCLOUD_SSH_KEY', '') }} - {{ tripleo_overcloud_update_converge_overcloud_ssh_network | ternary('--overcloud-ssh-network $UPDATE_OVERCLOUD_SSH_NETWORK', '') }} - {{ tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_update_converge_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_update_converge_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_update_converge_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_update_converge_roles_file | ternary('-r $UPDATE_ROLES_FILE', '') }} - {{ tripleo_overcloud_update_converge_networks_file | ternary('-n $UPDATE_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_update_converge_plan_environment_file | ternary('-p $UPDATE_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_update_converge_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_update_converge_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_update_converge_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_update_converge_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_update_converge_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_update_converge_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_update_converge_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_update_converge_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_update_converge_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_update_converge_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_update_converge_answers_file | ternary('--answers-file $UPDATE_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_update_converge_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_update_converge_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_update_converge_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_update_converge_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_update_converge_output_dir | ternary('--output-dir $UPDATE_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_update_converge_override_ansible_cfg | ternary('--override-ansible-cfg $UPDATE_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_update_converge_config_download_timeout | ternary('--config-download-timeout $UPDATE_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_update_converge_baremetal_deployment | ternary('--baremetal-deployment $UPDATE_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_update_converge_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_update_converge_log_output | ternary((">" ~ tripleo_overcloud_update_converge_log), '') }} - {{ tripleo_overcloud_update_converge_log_combine | ternary("2>&1", '') }} - _update_converge_env: - UPDATE_TEMPLATES: "{{ tripleo_overcloud_update_converge_templates }}" - UPDATE_STACK: "{{ tripleo_overcloud_update_converge_stack }}" - UPDATE_TIMEOUT_ARG: "{{ tripleo_overcloud_update_converge_timeout_arg }}" - UPDATE_LIBVIRT_TYPE: "{{ tripleo_overcloud_update_converge_libvirt_type }}" - UPDATE_NTP_SERVER: "{{ tripleo_overcloud_update_converge_ntp_server }}" - UPDATE_NO_PROXY: "{{ tripleo_overcloud_update_converge_no_proxy }}" - UPDATE_OVERCLOUD_SSH_USER: "{{ tripleo_overcloud_update_converge_overcloud_ssh_user }}" - UPDATE_OVERCLOUD_SSH_KEY: "{{ tripleo_overcloud_update_converge_overcloud_ssh_key }}" - UPDATE_OVERCLOUD_SSH_NETWORK: "{{ tripleo_overcloud_update_converge_overcloud_ssh_network }}" - UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_update_converge_overcloud_ssh_enable_timeout }}" - UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_update_converge_overcloud_ssh_port_timeout }}" - UPDATE_ROLES_FILE: "{{ tripleo_overcloud_update_converge_roles_file }}" - UPDATE_NETWORKS_FILE: "{{ tripleo_overcloud_update_converge_networks_file }}" - UPDATE_PLAN_ENV_FILE: "{{ tripleo_overcloud_update_converge_plan_environment_file }}" - UPDATE_ANSWERS_FILE: "{{ tripleo_overcloud_update_converge_answers_file }}" - UPDATE_OUTPUT_DIR: "{{ tripleo_overcloud_update_converge_output_dir }}" - UPDATE_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_update_converge_override_ansible_cfg }}" - UPDATE_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_update_converge_config_download_timeout }}" - UPDATE_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_update_converge_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_update_converge_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_update_converge_log }}" - when: tripleo_overcloud_update_converge_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_update_converge_debug|bool - block: - - name: Show the overcloud update converge command - debug: - var: _update_converge_cmd - - - name: Show the overcloud update converge environment - debug: - var: _update_converge_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_update_converge_home_dir }}/tripleo_overcloud_update_converge.sh" - shell_command: "{{ _update_converage_cmd }}" - shell_environment: "{{ _update_converage_env }}" - when: tripleo_overcloud_update_converge_generate_scripts|bool - -- name: Overcloud update converge - shell: "{{ _update_converge_cmd }}" # noqa 305 - environment: "{{ _update_converge_env }}" - args: - chdir: "{{ tripleo_overcloud_update_converge_home_dir }}" - register: tripleo_overcloud_update_converge_result - async: "{{ tripleo_overcloud_update_converge_timeout }}" - poll: "{{ tripleo_overcloud_update_converge_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_update_converge_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_update_converge_result.stdout is defined - set_fact: - tripleo_overcloud_update_converge_output: "{{ tripleo_overcloud_update_converge_result.stdout }}" diff --git a/roles/tripleo_overcloud_update_converge/tests/inventory b/roles/tripleo_overcloud_update_converge/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_update_converge/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_update_converge/tests/test.yml b/roles/tripleo_overcloud_update_converge/tests/test.yml deleted file mode 100644 index bbba920..0000000 --- a/roles/tripleo_overcloud_update_converge/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_update_converge diff --git a/roles/tripleo_overcloud_update_prepare/README.md b/roles/tripleo_overcloud_update_prepare/README.md deleted file mode 100644 index a8c45d5..0000000 --- a/roles/tripleo_overcloud_update_prepare/README.md +++ /dev/null @@ -1,99 +0,0 @@ -tripleo_overcloud_update_prepare -================================ - -A role to execute an overcloud update prepare. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_update_prepare_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_update_prepare_baremetal_update_preparement`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_update_prepare_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_update_prepare_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_update_prepare_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_update_prepare_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_update_prepare_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_update_prepare_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_update_prepare_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_update_prepare_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_update_prepare_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_update_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_update_prepare_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_update_prepare_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_update_prepare_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_update_prepare_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_update_prepare_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_update_prepare_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_update_prepare_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_update_prepare_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_update_prepare_home_dir }}/overcloud_update_prepare.log" -* `tripleo_overcloud_update_prepare_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_update_prepare_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_update_prepare_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_update_prepare_no_proxy`: (String) String containing a comma separated list of hosts to skip proxying when http_proxy and https_proxy are used. -* `tripleo_overcloud_update_prepare_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_update_prepare_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_update_prepare_rc_file`. -* `tripleo_overcloud_update_prepare_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_update_prepare_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_update_prepare_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_update_prepare_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_update_prepare_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_update_prepare_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_update_prepare_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_update_prepare_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_update_prepare_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_update_prepare_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_update_prepare_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_update_prepare_skip_update_prepare_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_update_prepare_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_update_prepare_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates/ -* `tripleo_overcloud_update_prepare_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_update_prepare_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_update_prepare_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_update_prepare_update_prepareed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_update_prepare_update_preparement_python_interpreter`: (String) Path to a python interpreter for the deployment actions. -* `tripleo_overcloud_update_prepare_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_update_prepare_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false -* 'tripleo_overcloud_update_prepare_yes': (Boolean) Flag to skip the confirmation required before any update prepare operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_update_prepare_output`: (String) The command standard output. -* `tripleo_overcloud_update_prepare_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud update prepare execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud update prepare - import_role: - name: tripleo_overcloud_update_prepare - vars: - tripleo_overcloud_update_prepare_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_update_prepare/defaults/main.yml b/roles/tripleo_overcloud_update_prepare/defaults/main.yml deleted file mode 100644 index d7a64d8..0000000 --- a/roles/tripleo_overcloud_update_prepare/defaults/main.yml +++ /dev/null @@ -1,51 +0,0 @@ -# defaults file for tripleo_overcloud_update_prepare ---- -openstack_bin: openstack -tripleo_overcloud_update_prepare_answers_file: -tripleo_overcloud_update_prepare_baremetal_deployment: -tripleo_overcloud_update_prepare_config_download: false -tripleo_overcloud_update_prepare_config_download_timeout: -tripleo_overcloud_update_prepare_debug: false -tripleo_overcloud_update_prepare_disable_password_generation: false -tripleo_overcloud_update_prepare_disable_validations: false -tripleo_overcloud_update_prepare_dry_run: false -tripleo_overcloud_update_prepare_environment_dirs: [] -tripleo_overcloud_update_prepare_environment_files: [] -tripleo_overcloud_update_prepare_force_postconfig: false -tripleo_overcloud_update_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_update_prepare_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_update_prepare_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_update_prepare_inflight_validations: false -tripleo_overcloud_update_prepare_libvirt_type: -tripleo_overcloud_update_prepare_log: "{{ tripleo_overcloud_update_prepare_home_dir }}/overcloud_update_prepare.log" -tripleo_overcloud_update_prepare_log_combine: true -tripleo_overcloud_update_prepare_log_output: true -tripleo_overcloud_update_prepare_networks_file: -tripleo_overcloud_update_prepare_no_cleanup: false -tripleo_overcloud_update_prepare_no_config_download: false -tripleo_overcloud_update_prepare_no_proxy: -tripleo_overcloud_update_prepare_ntp_server: -tripleo_overcloud_update_prepare_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_update_prepare_output_dir: -tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout: -tripleo_overcloud_update_prepare_overcloud_ssh_key: -tripleo_overcloud_update_prepare_overcloud_ssh_network: -tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout: -tripleo_overcloud_update_prepare_overcloud_ssh_user: -tripleo_overcloud_update_prepare_override_ansible_cfg: -tripleo_overcloud_update_prepare_plan_environment_file: -tripleo_overcloud_update_prepare_poll: 10 -tripleo_overcloud_update_prepare_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_update_prepare_roles_file: -tripleo_overcloud_update_prepare_run_validations: false -tripleo_overcloud_update_prepare_skip_deploy_identifier: false -tripleo_overcloud_update_prepare_skip_postconfig: false -tripleo_overcloud_update_prepare_stack: overcloud -tripleo_overcloud_update_prepare_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_update_prepare_timeout: 5700 -tripleo_overcloud_update_prepare_timeout_arg: 90 -tripleo_overcloud_update_prepare_update_prepareed_server: false -tripleo_overcloud_update_prepare_update_preparement_python_interpreter: -tripleo_overcloud_update_prepare_validation_errors_nonfatal: false -tripleo_overcloud_update_prepare_validation_warnings_fatal: false -tripleo_overcloud_update_prepare_yes: true diff --git a/roles/tripleo_overcloud_update_prepare/meta/main.yml b/roles/tripleo_overcloud_update_prepare/meta/main.yml deleted file mode 100644 index cee663f..0000000 --- a/roles/tripleo_overcloud_update_prepare/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_update_prepare - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_update_prepare - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_update_prepare/molecule/default/converge.yml b/roles/tripleo_overcloud_update_prepare/molecule/default/converge.yml deleted file mode 100644 index f7d9a15..0000000 --- a/roles/tripleo_overcloud_update_prepare/molecule/default/converge.yml +++ /dev/null @@ -1,502 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_update_prepare_debug: true - tripleo_overcloud_update_prepare_log_output: false - tripleo_overcloud_update_prepare_log_combine: false - tripleo_overcloud_update_prepare_yes: false - tripleo_overcloud_update_prepare_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_update_prepare" - include_role: - name: "tripleo_overcloud_update_prepare" - - - name: Check role - assert: - that: - - tripleo_overcloud_update_prepare_output == - "overcloud update prepare --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_update_prepare_stack" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: test - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - - - name: Assert "tripleo_overcloud_update_prepare_stack" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --stack test" - - - name: Check parameter "tripleo_overcloud_update_prepare_yes" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_yes: true - - - name: Assert "tripleo_overcloud_update_prepare_yes" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --yes" - - - name: Check parameter "tripleo_overcloud_update_prepare_libvirt_type" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_update_prepare_libvirt_type" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_update_prepare_ntp_server" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_update_prepare_ntp_server" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_update_prepare_no_proxy" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_update_prepare_no_proxy" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_update_prepare_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_update_prepare_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_update_prepare_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_update_prepare_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_update_prepare_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_update_prepare_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_update_prepare_environment_files" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_update_prepare_environment_files" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_update_prepare_environment_dirs" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_update_prepare_environment_dirs" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_update_prepare_roles_files" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_update_prepare_roles_files" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_update_prepare_networks_file" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_update_prepare_networks_file" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_update_prepare_plan_environment_file" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_no_cleanup: true - - - name: Assert "tripleo_overcloud_update_prepare_no_cleanup" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --no-cleanup" - - - name: Check parameter "tripleo_overcloud_update_prepare_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_update_prepare_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_update_prepare_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_update_prepare_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_update_prepare_disable_validations" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_disable_validations: true - - - name: Assert "tripleo_overcloud_update_prepare_disable_validations" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --disable-validations" - - - name: Check parameter "tripleo_overcloud_update_prepare_inflight_validations" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_inflight_validations: true - - - name: Assert "tripleo_overcloud_update_prepare_inflight_validations" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --inflight-validations" - - - name: Check parameter "tripleo_overcloud_update_prepare_dry_run" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_dry_run: true - - - name: Assert "tripleo_overcloud_update_prepare_dry_run" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --dry-run" - - - name: Check parameter "tripleo_overcloud_update_prepare_run_validations" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_run_validations: true - - - name: Assert "tripleo_overcloud_update_prepare_run_validations" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --run-validations" - - - name: Check parameter "tripleo_overcloud_update_prepare_skip_postconfig" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_skip_postconfig: true - - - name: Assert "tripleo_overcloud_update_prepare_skip_postconfig" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_update_prepare_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_update_prepare_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_update_prepare_force_postconfig" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_force_postconfig: true - - - name: Assert "tripleo_overcloud_update_prepare_force_postconfig" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --force-postconfig" - - - name: Check parameter "tripleo_overcloud_update_prepare_answers_file" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_update_prepare_answers_file" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_update_prepare_disable_password_generation" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_disable_password_generation: true - - - name: Assert "tripleo_overcloud_update_prepare_disable_password_generation" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_update_prepare_update_prepareed_server" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_update_prepareed_server: true - - - name: Assert "tripleo_overcloud_update_prepare_update_prepareed_server" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --deployed-server" - - - name: Check parameter "tripleo_overcloud_update_prepare_config_download" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_config_download: true - - - name: Assert "tripleo_overcloud_update_prepare_config_download" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --config-download" - - - name: Check parameter "tripleo_overcloud_update_prepare_no_config_download" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_no_config_download: true - - - name: Assert "tripleo_overcloud_update_prepare_no_config_download" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --no-config-download" - - - name: Check parameter "tripleo_overcloud_update_prepare_output_dir" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_update_prepare_output_dir" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_update_prepare_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_update_prepare_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_update_prepare_config_download_timeout" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_update_prepare_config_download_timeout" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_update_prepare_update_preparement_python_interpreter" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_update_preparement_python_interpreter: python3 - - - name: Assert "tripleo_overcloud_update_prepare_update_preparement_python_interpreter" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --deployment-python-interpreter python3" - - - name: Check parameter "tripleo_overcloud_update_prepare_baremetal_deployment" - include_role: - name: "tripleo_overcloud_update_prepare" - vars: - tripleo_overcloud_update_prepare_stack: - tripleo_overcloud_update_prepare_templates: - tripleo_overcloud_update_prepare_timeout_arg: - tripleo_overcloud_update_prepare_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_update_prepare_baremetal_deployment" - assert: - that: - - tripleo_overcloud_update_prepare_output == "overcloud update prepare --baremetal-deployment bare.yaml" diff --git a/roles/tripleo_overcloud_update_prepare/molecule/default/molecule.yml b/roles/tripleo_overcloud_update_prepare/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_update_prepare/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_update_prepare/molecule/default/prepare.yml b/roles/tripleo_overcloud_update_prepare/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_update_prepare/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_update_prepare/tasks/main.yml b/roles/tripleo_overcloud_update_prepare/tasks/main.yml deleted file mode 100644 index dd2290b..0000000 --- a/roles/tripleo_overcloud_update_prepare/tasks/main.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -# tasks file for tripleo_overcloud_update_prepare -- name: Setup overcloud update prepare facts - set_fact: - _update_prepare_cmd: >- - {{ tripleo_overcloud_update_prepare_os_cloud | ternary('', "source " ~ tripleo_overcloud_update_prepare_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud update prepare - {{ tripleo_overcloud_update_prepare_templates | ternary('--templates $UPDATE_TEMPLATES', '') }} - {{ tripleo_overcloud_update_prepare_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_update_prepare_timeout_arg | ternary('--timeout $UPDATE_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_update_prepare_libvirt_type | ternary('--libvirt-type $UPDATE_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_update_prepare_ntp_server | ternary('--ntp-server $UPDATE_NTP_SERVER', '') }} - {{ tripleo_overcloud_update_prepare_no_proxy | ternary('--no-proxy $UPDATE_NO_PROXY', '') }} - {{ tripleo_overcloud_update_prepare_overcloud_ssh_user | ternary('--overcloud-ssh-user $UPDATE_OVERCLOUD_SSH_USER', '') }} - {{ tripleo_overcloud_update_prepare_overcloud_ssh_key | ternary('--overcloud-ssh-key $UPDATE_OVERCLOUD_SSH_KEY', '') }} - {{ tripleo_overcloud_update_prepare_overcloud_ssh_network | ternary('--overcloud-ssh-network $UPDATE_OVERCLOUD_SSH_NETWORK', '') }} - {{ tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_update_prepare_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_update_prepare_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_update_prepare_roles_file | ternary('-r $UPDATE_ROLES_FILE', '') }} - {{ tripleo_overcloud_update_prepare_networks_file | ternary('-n $UPDATE_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_update_prepare_plan_environment_file | ternary('-p $UPDATE_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_update_prepare_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_update_prepare_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_update_prepare_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_update_prepare_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_update_prepare_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_update_prepare_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_update_prepare_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_update_prepare_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_update_prepare_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_update_prepare_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_update_prepare_answers_file | ternary('--answers-file $UPDATE_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_update_prepare_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_update_prepare_update_prepareed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_update_prepare_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_update_prepare_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_update_prepare_output_dir | ternary('--output-dir $UPDATE_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_update_prepare_override_ansible_cfg | ternary('--override-ansible-cfg $UPDATE_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_update_prepare_config_download_timeout | ternary('--config-download-timeout $UPDATE_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_update_prepare_update_preparement_python_interpreter | ternary('--deployment-python-interpreter $UPDATE_PYTHON_INTERPRETER', '') }} - {{ tripleo_overcloud_update_prepare_baremetal_deployment | ternary('--baremetal-deployment $UPDATE_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_update_prepare_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_update_prepare_log_output | ternary((">" ~ tripleo_overcloud_update_prepare_log), '') }} - {{ tripleo_overcloud_update_prepare_log_combine | ternary("2>&1", '') }} - _update_prepare_env: - UPDATE_TEMPLATES: "{{ tripleo_overcloud_update_prepare_templates }}" - UPDATE_STACK: "{{ tripleo_overcloud_update_prepare_stack }}" - UPDATE_TIMEOUT_ARG: "{{ tripleo_overcloud_update_prepare_timeout_arg }}" - UPDATE_LIBVIRT_TYPE: "{{ tripleo_overcloud_update_prepare_libvirt_type }}" - UPDATE_NTP_SERVER: "{{ tripleo_overcloud_update_prepare_ntp_server }}" - UPDATE_NO_PROXY: "{{ tripleo_overcloud_update_prepare_no_proxy }}" - UPDATE_OVERCLOUD_SSH_USER: "{{ tripleo_overcloud_update_prepare_overcloud_ssh_user }}" - UPDATE_OVERCLOUD_SSH_KEY: "{{ tripleo_overcloud_update_prepare_overcloud_ssh_key }}" - UPDATE_OVERCLOUD_SSH_NETWORK: "{{ tripleo_overcloud_update_prepare_overcloud_ssh_network }}" - UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_update_prepare_overcloud_ssh_enable_timeout }}" - UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_update_prepare_overcloud_ssh_port_timeout }}" - UPDATE_ROLES_FILE: "{{ tripleo_overcloud_update_prepare_roles_file }}" - UPDATE_NETWORKS_FILE: "{{ tripleo_overcloud_update_prepare_networks_file }}" - UPDATE_PLAN_ENV_FILE: "{{ tripleo_overcloud_update_prepare_plan_environment_file }}" - UPDATE_ANSWERS_FILE: "{{ tripleo_overcloud_update_prepare_answers_file }}" - UPDATE_OUTPUT_DIR: "{{ tripleo_overcloud_update_prepare_output_dir }}" - UPDATE_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_update_prepare_override_ansible_cfg }}" - UPDATE_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_update_prepare_config_download_timeout }}" - UPDATE_PYTHON_INTERPRETER: "{{ tripleo_overcloud_update_prepare_update_preparement_python_interpreter }}" - UPDATE_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_update_prepare_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_update_prepare_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_update_prepare_log }}" - when: tripleo_overcloud_update_prepare_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_update_prepare_debug|bool - block: - - name: Show the overcloud update prepare command - debug: - var: _update_prepare_cmd - - - name: Show the overcloud update prepare environment - debug: - var: _update_prepare_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_update_prepare_home_dir }}/tripleo_overcloud_update_prepare.sh" - shell_command: "{{ _update_prepare_cmd }}" - shell_environment: "{{ _update_prepare_env }}" - when: tripleo_overcloud_update_prepare_generate_scripts|bool - -- name: Overcloud update prepare - shell: "{{ _update_prepare_cmd }}" # noqa 305 - environment: "{{ _update_prepare_env }}" - args: - chdir: "{{ tripleo_overcloud_update_prepare_home_dir }}" - register: tripleo_overcloud_update_prepare_result - async: "{{ tripleo_overcloud_update_prepare_timeout }}" - poll: "{{ tripleo_overcloud_update_prepare_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_update_prepare_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_update_prepare_result.stdout is defined - set_fact: - tripleo_overcloud_update_prepare_output: "{{ tripleo_overcloud_update_prepare_result.stdout }}" diff --git a/roles/tripleo_overcloud_update_prepare/tests/inventory b/roles/tripleo_overcloud_update_prepare/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_update_prepare/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_update_prepare/tests/test.yml b/roles/tripleo_overcloud_update_prepare/tests/test.yml deleted file mode 100644 index e8bac06..0000000 --- a/roles/tripleo_overcloud_update_prepare/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_update_prepare diff --git a/roles/tripleo_overcloud_update_run/README.md b/roles/tripleo_overcloud_update_run/README.md deleted file mode 100644 index aa1bba4..0000000 --- a/roles/tripleo_overcloud_update_run/README.md +++ /dev/null @@ -1,64 +0,0 @@ -tripleo_overcloud_update_run -======================== - -A role to execute an overcloud update prepare. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_update_run_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_update_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_update_run_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_update_run_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_update_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_update_run_limit`: (String) String that identifies a single node or a list of nodes to be upgraded. -* `tripleo_overcloud_update_run_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_update_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_update_run_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_update_run_home_dir }}/overcloud_update_run.log" -* `tripleo_overcloud_update_run_playbook`: (List) List of playbook(s) to use for the minor update. Defaults: [] -* `tripleo_overcloud_update_run_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_update_run_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_update_run_ssh_user`: (String) Username of user to be used as the ssh user. -* `tripleo_overcloud_update_run_stack`: (String) Name of the stack to deploy. -* `tripleo_overcloud_update_run_static_inventory`: (String) Path to an existing ansible inventory to use. -* `tripleo_overcloud_update_run_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 5700 -* 'tripleo_overcloud_update_run_yes': (Boolean) Flag to skip the confirmation required before any update run operation. Default: true - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_update_run_output`: (String) The command standard output. -* `tripleo_overcloud_update_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud update prepare execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud update prepare - import_role: - name: tripleo_overcloud_update_run -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_update_run/defaults/main.yml b/roles/tripleo_overcloud_update_run/defaults/main.yml deleted file mode 100644 index 058a2b8..0000000 --- a/roles/tripleo_overcloud_update_run/defaults/main.yml +++ /dev/null @@ -1,20 +0,0 @@ -# defaults file for tripleo_overcloud_update_run ---- -openstack_bin: openstack -tripleo_overcloud_update_run_debug: false -tripleo_overcloud_update_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_update_run_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_update_run_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_update_run_limit: -tripleo_overcloud_update_run_log: "{{ tripleo_overcloud_update_run_home_dir }}/overcloud_update_run.log" -tripleo_overcloud_update_run_log_combine: true -tripleo_overcloud_update_run_log_output: true -tripleo_overcloud_update_run_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_update_run_playbook: [] -tripleo_overcloud_update_run_poll: 10 -tripleo_overcloud_update_run_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_update_run_ssh_user: -tripleo_overcloud_update_run_stack: -tripleo_overcloud_update_run_static_inventory: -tripleo_overcloud_update_run_timeout: 5700 -tripleo_overcloud_update_run_yes: true diff --git a/roles/tripleo_overcloud_update_run/meta/main.yml b/roles/tripleo_overcloud_update_run/meta/main.yml deleted file mode 100644 index ba2052f..0000000 --- a/roles/tripleo_overcloud_update_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_update_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_update_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_update_run/molecule/default/converge.yml b/roles/tripleo_overcloud_update_run/molecule/default/converge.yml deleted file mode 100644 index 1e3e37a..0000000 --- a/roles/tripleo_overcloud_update_run/molecule/default/converge.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_update_run_debug: true - tripleo_overcloud_update_run_log_output: false - tripleo_overcloud_update_run_log_combine: false - tripleo_overcloud_update_run_poll: 1 - tripleo_overcloud_update_run_yes: false - tasks: - - - name: "Include tripleo_overcloud_update_run" - include_role: - name: "tripleo_overcloud_update_run" - - - name: Check role - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run" - - - name: Check parameter "tripleo_overcloud_update_run_stack" - include_role: - name: "tripleo_overcloud_update_run" - vars: - tripleo_overcloud_update_run_stack: test - - - name: Assert "tripleo_overcloud_update_run_stack" - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run --stack test" - - - name: Check parameter "tripleo_overcloud_update_run_yes" - include_role: - name: "tripleo_overcloud_update_run" - vars: - tripleo_overcloud_update_run_stack: - tripleo_overcloud_update_run_yes: true - - - name: Assert "tripleo_overcloud_update_run_yes" - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run --yes" - - - name: Check parameter "tripleo_overcloud_update_run_playbook" - include_role: - name: "tripleo_overcloud_update_run" - vars: - tripleo_overcloud_update_run_playbook: - - test1 - - test2 - - - name: Assert "tripleo_overcloud_update_run_playbook" - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run --playbook test1 --playbook test2" - - - name: Check parameter "tripleo_overcloud_update_run_ssh_user" - include_role: - name: "tripleo_overcloud_update_run" - vars: - tripleo_overcloud_update_run_ssh_user: username - - - name: Assert "tripleo_overcloud_update_run_ssh_user" - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run --ssh-user username" - - - name: Check parameter "tripleo_overcloud_update_run_static_inventory" - include_role: - name: "tripleo_overcloud_update_run" - vars: - tripleo_overcloud_update_run_static_inventory: /home/foo/inventory.yml - - - name: Assert "tripleo_overcloud_update_run_static_inventory" - assert: - that: - - tripleo_overcloud_update_run_output == "overcloud update run --static-inventory /home/foo/inventory.yml" diff --git a/roles/tripleo_overcloud_update_run/molecule/default/molecule.yml b/roles/tripleo_overcloud_update_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_update_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_update_run/molecule/default/prepare.yml b/roles/tripleo_overcloud_update_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_update_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_update_run/tasks/main.yml b/roles/tripleo_overcloud_update_run/tasks/main.yml deleted file mode 100644 index 041b795..0000000 --- a/roles/tripleo_overcloud_update_run/tasks/main.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -# tasks file for tripleo_overcloud_update_run -- name: Setup overcloud update run facts - set_fact: - _update_run_cmd: >- - {{ tripleo_overcloud_update_run_os_cloud | ternary('', "source " ~ tripleo_overcloud_update_run_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud update run - {{ tripleo_overcloud_update_run_limit | ternary('--limit $UPDATE_LIMIT', '') }} - {{ tripleo_overcloud_update_run_playbook | tripleo.operator.shell_arg_list('--playbook') }} - {{ tripleo_overcloud_update_run_ssh_user | ternary('--ssh-user $UPDATE_SSH_USER', '') }} - {{ tripleo_overcloud_update_run_static_inventory | ternary('--static-inventory $UPDATE_STATIC_INVENTORY', '') }} - {{ tripleo_overcloud_update_run_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_update_run_yes | ternary('--yes', '') }} - {{ tripleo_overcloud_update_run_log_output | ternary((">" ~ tripleo_overcloud_update_run_log), '') }} - {{ tripleo_overcloud_update_run_log_combine | ternary("2>&1", '') }} - _update_run_env: - UPDATE_LIMIT: "{{ tripleo_overcloud_update_run_limit | quote }}" - UPDATE_PLAYBOOK: "{{ tripleo_overcloud_update_run_playbook| list | join(' ') }}" - UPDATE_SSH_USER: "{{ tripleo_overcloud_update_run_ssh_user }}" - UPDATE_STATIC_INVENTORY: "{{ tripleo_overcloud_update_run_static_inventory }}" - UPDATE_STACK: "{{ tripleo_overcloud_update_run_stack }}" - OS_CLOUD: "{{ tripleo_overcloud_update_run_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_update_run_log }}" - when: tripleo_overcloud_update_run_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_update_run_debug|bool - block: - - name: Show the overcloud update run command - debug: - var: _update_run_cmd - - - name: Show the overcloud update run environment - debug: - var: _update_run_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_update_run_home_dir }}/tripleo_overcloud_update_run.sh" - shell_command: "{{ _update_run_cmd }}" - shell_environment: "{{ _update_run_env }}" - when: tripleo_overcloud_update_run_generate_scripts|bool - -- name: Overcloud update run - shell: "{{ _update_run_cmd }}" # noqa 305 - environment: "{{ _update_run_env }}" - args: - chdir: "{{ tripleo_overcloud_update_run_home_dir }}" - register: tripleo_overcloud_update_run_result - async: "{{ tripleo_overcloud_update_run_timeout }}" - poll: "{{ tripleo_overcloud_update_run_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_update_run_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_update_run_result.stdout is defined - set_fact: - tripleo_overcloud_update_run_output: "{{ tripleo_overcloud_update_run_result.stdout }}" diff --git a/roles/tripleo_overcloud_update_run/tests/inventory b/roles/tripleo_overcloud_update_run/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_update_run/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_update_run/tests/test.yml b/roles/tripleo_overcloud_update_run/tests/test.yml deleted file mode 100644 index 5d7d3ab..0000000 --- a/roles/tripleo_overcloud_update_run/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_update_run diff --git a/roles/tripleo_overcloud_upgrade_converge/README.md b/roles/tripleo_overcloud_upgrade_converge/README.md deleted file mode 100644 index 9200b46..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/README.md +++ /dev/null @@ -1,97 +0,0 @@ -tripleo_overcloud_upgrade_converge -================================== - -A role to execute an overcloud update converge. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_upgrade_converge_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_upgrade_converge_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_upgrade_converge_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_upgrade_converge_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_upgrade_converge_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_upgrade_converge_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_upgrade_converge_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_upgrade_converge_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_upgrade_converge_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_upgrade_converge_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_upgrade_converge_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_upgrade_converge_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_upgrade_converge_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_upgrade_converge_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_upgrade_converge_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_upgrade_converge_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_upgrade_converge_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_upgrade_converge_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_converge_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_converge_home_dir }}/overcloud_upgrade_converge.log" -* `tripleo_overcloud_upgrade_converge_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_upgrade_converge_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_upgrade_converge_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_upgrade_converge_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_upgrade_converge_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_upgrade_converge_no_proxy`: (String) String containing a comma separated list of hosts to skip proxying when http_proxy and https_proxy are used. -* `tripleo_overcloud_upgrade_converge_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_converge_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_upgrade_converge_rc_file`. -* `tripleo_overcloud_upgrade_converge_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_upgrade_converge_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_upgrade_converge_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_upgrade_converge_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_converge_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_upgrade_converge_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_upgrade_converge_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_upgrade_converge_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_upgrade_converge_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_upgrade_converge_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_upgrade_converge_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_upgrade_converge_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_upgrade_converge_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_upgrade_converge_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_overcloud_upgrade_converge_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_upgrade_converge_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_upgrade_converge_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_upgrade_converge_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_upgrade_converge_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_upgrade_converge_output`: (String) The command standard output. -* `tripleo_overcloud_upgrade_converge_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud upgrade converge execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud upgrade converge - import_role: - name: tripleo_overcloud_upgrade_converge - vars: - tripleo_overcloud_upgrade_converge_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_upgrade_converge/defaults/main.yml b/roles/tripleo_overcloud_upgrade_converge/defaults/main.yml deleted file mode 100644 index f719ea7..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/defaults/main.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -# defaults file for tripleo_overcloud_upgrade_converge -openstack_bin: openstack -tripleo_overcloud_upgrade_converge_answers_file: -tripleo_overcloud_upgrade_converge_baremetal_deployment: -tripleo_overcloud_upgrade_converge_config_download: false -tripleo_overcloud_upgrade_converge_config_download_timeout: -tripleo_overcloud_upgrade_converge_debug: false -tripleo_overcloud_upgrade_converge_deployed_server: false -tripleo_overcloud_upgrade_converge_disable_password_generation: false -tripleo_overcloud_upgrade_converge_disable_validations: false -tripleo_overcloud_upgrade_converge_dry_run: false -tripleo_overcloud_upgrade_converge_environment_dirs: [] -tripleo_overcloud_upgrade_converge_environment_files: [] -tripleo_overcloud_upgrade_converge_force_postconfig: false -tripleo_overcloud_upgrade_converge_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_upgrade_converge_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_upgrade_converge_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_upgrade_converge_inflight_validations: false -tripleo_overcloud_upgrade_converge_libvirt_type: -tripleo_overcloud_upgrade_converge_log: "{{ tripleo_overcloud_upgrade_converge_home_dir }}/overcloud_upgrade_converge.log" -tripleo_overcloud_upgrade_converge_log_combine: true -tripleo_overcloud_upgrade_converge_log_output: true -tripleo_overcloud_upgrade_converge_networks_file: -tripleo_overcloud_upgrade_converge_no_cleanup: false -tripleo_overcloud_upgrade_converge_no_config_download: false -tripleo_overcloud_upgrade_converge_no_proxy: -tripleo_overcloud_upgrade_converge_ntp_server: -tripleo_overcloud_upgrade_converge_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_upgrade_converge_output_dir: -tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout: -tripleo_overcloud_upgrade_converge_overcloud_ssh_key: -tripleo_overcloud_upgrade_converge_overcloud_ssh_network: -tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout: -tripleo_overcloud_upgrade_converge_overcloud_ssh_user: -tripleo_overcloud_upgrade_converge_override_ansible_cfg: -tripleo_overcloud_upgrade_converge_plan_environment_file: -tripleo_overcloud_upgrade_converge_poll: 10 -tripleo_overcloud_upgrade_converge_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_upgrade_converge_roles_file: -tripleo_overcloud_upgrade_converge_run_validations: false -tripleo_overcloud_upgrade_converge_skip_deploy_identifier: false -tripleo_overcloud_upgrade_converge_skip_postconfig: false -tripleo_overcloud_upgrade_converge_stack: overcloud -tripleo_overcloud_upgrade_converge_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_upgrade_converge_timeout: 5700 -tripleo_overcloud_upgrade_converge_timeout_arg: 90 -tripleo_overcloud_upgrade_converge_validation_errors_nonfatal: false -tripleo_overcloud_upgrade_converge_validation_warnings_fatal: false diff --git a/roles/tripleo_overcloud_upgrade_converge/meta/main.yml b/roles/tripleo_overcloud_upgrade_converge/meta/main.yml deleted file mode 100644 index c7a45ec..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_upgrade_converge - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_upgrade_converge - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_upgrade_converge/molecule/default/converge.yml b/roles/tripleo_overcloud_upgrade_converge/molecule/default/converge.yml deleted file mode 100644 index 5038975..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/molecule/default/converge.yml +++ /dev/null @@ -1,473 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_upgrade_converge_debug: true - tripleo_overcloud_upgrade_converge_log_output: false - tripleo_overcloud_upgrade_converge_log_combine: false - tripleo_overcloud_upgrade_converge_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_upgrade_converge" - include_role: - name: "tripleo_overcloud_upgrade_converge" - - - name: Check role - assert: - that: - - tripleo_overcloud_upgrade_converge_output == - "overcloud upgrade converge --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_stack" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: test - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - - - name: Assert "tripleo_overcloud_upgrade_converge_stack" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --stack test" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_libvirt_type" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_upgrade_converge_libvirt_type" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_ntp_server" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_upgrade_converge_ntp_server" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_no_proxy" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_upgrade_converge_no_proxy" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_upgrade_converge_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_upgrade_converge_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_upgrade_converge_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_environment_files" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_upgrade_converge_environment_files" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_environment_dirs" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_upgrade_converge_environment_dirs" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_roles_files" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_upgrade_converge_roles_files" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_networks_file" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_upgrade_converge_networks_file" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_plan_environment_file" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_no_cleanup: true - - - name: Assert "tripleo_overcloud_upgrade_converge_no_cleanup" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --no-cleanup" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_upgrade_converge_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_upgrade_converge_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_disable_validations" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_disable_validations: true - - - name: Assert "tripleo_overcloud_upgrade_converge_disable_validations" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --disable-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_inflight_validations" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_inflight_validations: true - - - name: Assert "tripleo_overcloud_upgrade_converge_inflight_validations" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --inflight-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_dry_run" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_dry_run: true - - - name: Assert "tripleo_overcloud_upgrade_converge_dry_run" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --dry-run" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_run_validations" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_run_validations: true - - - name: Assert "tripleo_overcloud_upgrade_converge_run_validations" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --run-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_upgrade_converge_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_skip_postconfig" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_skip_postconfig: true - - - name: Assert "tripleo_overcloud_upgrade_converge_skip_postconfig" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_force_postconfig" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_force_postconfig: true - - - name: Assert "tripleo_overcloud_upgrade_converge_force_postconfig" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --force-postconfig" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_answers_file" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_upgrade_converge_answers_file" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_disable_password_generation" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_disable_password_generation: true - - - name: Assert "tripleo_overcloud_upgrade_converge_disable_password_generation" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_deployed_server" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_deployed_server: true - - - name: Assert "tripleo_overcloud_upgrade_converge_deployed_server" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --deployed-server" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_config_download" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_config_download: true - - - name: Assert "tripleo_overcloud_upgrade_converge_config_download" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --config-download" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_no_config_download" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_no_config_download: true - - - name: Assert "tripleo_overcloud_upgrade_converge_no_config_download" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --no-config-download" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_output_dir" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_upgrade_converge_output_dir" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_upgrade_converge_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_config_download_timeout" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_upgrade_converge_config_download_timeout" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_upgrade_converge_baremetal_deployment" - include_role: - name: "tripleo_overcloud_upgrade_converge" - vars: - tripleo_overcloud_upgrade_converge_stack: - tripleo_overcloud_upgrade_converge_templates: - tripleo_overcloud_upgrade_converge_timeout_arg: - tripleo_overcloud_upgrade_converge_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_upgrade_converge_baremetal_deployment" - assert: - that: - - tripleo_overcloud_upgrade_converge_output == "overcloud upgrade converge --baremetal-deployment bare.yaml" diff --git a/roles/tripleo_overcloud_upgrade_converge/molecule/default/molecule.yml b/roles/tripleo_overcloud_upgrade_converge/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_upgrade_converge/molecule/default/prepare.yml b/roles/tripleo_overcloud_upgrade_converge/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_upgrade_converge/tasks/main.yml b/roles/tripleo_overcloud_upgrade_converge/tasks/main.yml deleted file mode 100644 index 76ff83a..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/tasks/main.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -# tasks file for tripleo_overcloud_upgrade_converge -- name: Setup overcloud upgrade converge facts - set_fact: - _upgrade_converge_cmd: >- - {{ tripleo_overcloud_upgrade_converge_os_cloud | ternary('', "source " ~ tripleo_overcloud_upgrade_converge_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud upgrade converge - {{ tripleo_overcloud_upgrade_converge_templates | ternary('--templates $UPDATE_TEMPLATES', '') }} - {{ tripleo_overcloud_upgrade_converge_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_upgrade_converge_timeout_arg | ternary('--timeout $UPDATE_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_upgrade_converge_libvirt_type | ternary('--libvirt-type $UPDATE_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_upgrade_converge_ntp_server | ternary('--ntp-server $UPDATE_NTP_SERVER', '') }} - {{ tripleo_overcloud_upgrade_converge_no_proxy | ternary('--no-proxy $UPDATE_NO_PROXY', '') }} - {{ tripleo_overcloud_upgrade_converge_overcloud_ssh_user | ternary('--overcloud-ssh-user $UPDATE_OVERCLOUD_SSH_USER', '') }} - {{ tripleo_overcloud_upgrade_converge_overcloud_ssh_key | ternary('--overcloud-ssh-key $UPDATE_OVERCLOUD_SSH_KEY', '') }} - {{ tripleo_overcloud_upgrade_converge_overcloud_ssh_network | ternary('--overcloud-ssh-network $UPDATE_OVERCLOUD_SSH_NETWORK', '') }} - {{ tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_converge_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_upgrade_converge_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_upgrade_converge_roles_file | ternary('-r $UPDATE_ROLES_FILE', '') }} - {{ tripleo_overcloud_upgrade_converge_networks_file | ternary('-n $UPDATE_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_upgrade_converge_plan_environment_file | ternary('-p $UPDATE_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_upgrade_converge_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_upgrade_converge_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_upgrade_converge_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_upgrade_converge_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_upgrade_converge_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_upgrade_converge_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_upgrade_converge_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_upgrade_converge_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_upgrade_converge_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_upgrade_converge_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_upgrade_converge_answers_file | ternary('--answers-file $UPDATE_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_upgrade_converge_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_upgrade_converge_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_upgrade_converge_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_upgrade_converge_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_upgrade_converge_output_dir | ternary('--output-dir $UPDATE_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_upgrade_converge_override_ansible_cfg | ternary('--override-ansible-cfg $UPDATE_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_upgrade_converge_config_download_timeout | ternary('--config-download-timeout $UPDATE_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_converge_baremetal_deployment | ternary('--baremetal-deployment $UPDATE_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_upgrade_converge_log_output | ternary((">" ~ tripleo_overcloud_upgrade_converge_log), '') }} - {{ tripleo_overcloud_upgrade_converge_log_combine | ternary("2>&1", '') }} - _upgrade_converge_env: - UPDATE_TEMPLATES: "{{ tripleo_overcloud_upgrade_converge_templates }}" - UPDATE_STACK: "{{ tripleo_overcloud_upgrade_converge_stack }}" - UPDATE_TIMEOUT_ARG: "{{ tripleo_overcloud_upgrade_converge_timeout_arg }}" - UPDATE_LIBVIRT_TYPE: "{{ tripleo_overcloud_upgrade_converge_libvirt_type }}" - UPDATE_NTP_SERVER: "{{ tripleo_overcloud_upgrade_converge_ntp_server }}" - UPDATE_NO_PROXY: "{{ tripleo_overcloud_upgrade_converge_no_proxy }}" - UPDATE_OVERCLOUD_SSH_USER: "{{ tripleo_overcloud_upgrade_converge_overcloud_ssh_user }}" - UPDATE_OVERCLOUD_SSH_KEY: "{{ tripleo_overcloud_upgrade_converge_overcloud_ssh_key }}" - UPDATE_OVERCLOUD_SSH_NETWORK: "{{ tripleo_overcloud_upgrade_converge_overcloud_ssh_network }}" - UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_upgrade_converge_overcloud_ssh_enable_timeout }}" - UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_upgrade_converge_overcloud_ssh_port_timeout }}" - UPDATE_ROLES_FILE: "{{ tripleo_overcloud_upgrade_converge_roles_file }}" - UPDATE_NETWORKS_FILE: "{{ tripleo_overcloud_upgrade_converge_networks_file }}" - UPDATE_PLAN_ENV_FILE: "{{ tripleo_overcloud_upgrade_converge_plan_environment_file }}" - UPDATE_ANSWERS_FILE: "{{ tripleo_overcloud_upgrade_converge_answers_file }}" - UPDATE_OUTPUT_DIR: "{{ tripleo_overcloud_upgrade_converge_output_dir }}" - UPDATE_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_upgrade_converge_override_ansible_cfg }}" - UPDATE_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_upgrade_converge_config_download_timeout }}" - UPDATE_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_upgrade_converge_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_upgrade_converge_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_upgrade_converge_log }}" - when: tripleo_overcloud_upgrade_converge_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_upgrade_converge_debug|bool - block: - - name: Show the overcloud upgrade converge command - debug: - var: _upgrade_converge_cmd - - - name: Show the overcloud upgrade converge environment - debug: - var: _upgrade_converge_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_upgrade_converge_home_dir }}/tripleo_overcloud_upgrade_converge_ansible.sh" - shell_command: "{{ _update_converge_cmd }}" - shell_environment: "{{ _update_converge_env }}" - when: tripleo_overcloud_upgrade_converge_generate_scripts|bool - -- name: Overcloud upgrade converge - shell: "{{ _upgrade_converge_cmd }}" # noqa 305 - environment: "{{ _upgrade_converge_env }}" - args: - chdir: "{{ tripleo_overcloud_upgrade_converge_home_dir }}" - register: tripleo_overcloud_upgrade_converge_result - async: "{{ tripleo_overcloud_upgrade_converge_timeout }}" - poll: "{{ tripleo_overcloud_upgrade_converge_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_upgrade_converge_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_upgrade_converge_result.stdout is defined - set_fact: - tripleo_overcloud_upgrade_converge_output: "{{ tripleo_overcloud_upgrade_converge_result.stdout }}" diff --git a/roles/tripleo_overcloud_upgrade_converge/tests/inventory b/roles/tripleo_overcloud_upgrade_converge/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_upgrade_converge/tests/test.yml b/roles/tripleo_overcloud_upgrade_converge/tests/test.yml deleted file mode 100644 index df364f8..0000000 --- a/roles/tripleo_overcloud_upgrade_converge/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_upgrade_converge diff --git a/roles/tripleo_overcloud_upgrade_prepare/README.md b/roles/tripleo_overcloud_upgrade_prepare/README.md deleted file mode 100644 index e855891..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/README.md +++ /dev/null @@ -1,98 +0,0 @@ -tripleo_overcloud_upgrade_prepare -================================= - -A role to execute an overcloud upgrade prepare. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_upgrade_prepare_answers_file`: (String) File path to a deployment answers file. -* `tripleo_overcloud_upgrade_prepare_baremetal_deployment`: (String) File path to a baremetal deployment configuration. -* `tripleo_overcloud_upgrade_prepare_config_download`: (Boolean) Flag to add --config-download option. This is the default as of Rocky and enabling this should have no effect. Default: false -* `tripleo_overcloud_upgrade_prepare_config_download_timeout`: (Integer) Timeout in minutes for the config-download steps. -* `tripleo_overcloud_upgrade_prepare_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_upgrade_prepare_deployed_server`: (Boolean) Flag to use pre-provisioned nodes. Default: false -* `tripleo_overcloud_upgrade_prepare_disable_password_generation`: (Boolean) Flag to disable password generation. Default: false -* `tripleo_overcloud_upgrade_prepare_disable_validations`: (Boolean) Flag to disable validations. Default: false -* `tripleo_overcloud_upgrade_prepare_dry_run`: (Boolean) Flag to enable dry run. Default: false -* `tripleo_overcloud_upgrade_prepare_environment_dirs`: (List) A list of directory paths containing environment files for the deployment. Should not be used with environment files. -* `tripleo_overcloud_upgrade_prepare_environment_files`: (List) A list of environment file paths for the deployment. Should not be used with environment dirs. -* `tripleo_overcloud_upgrade_prepare_force_postconfig`: (Boolean) Force the overcloud post-deployment configuration. Default: false -* `tripleo_overcloud_upgrade_prepare_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_upgrade_prepare_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_upgrade_prepare_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_upgrade_prepare_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_upgrade_prepare_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_overcloud_upgrade_prepare_libvirt_type`: (String) Libvirt domain time. Setting `NovaComputeLibvirtType` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_prepare_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_prepare_home_dir }}/overcloud_upgrade_prepare.log" -* `tripleo_overcloud_upgrade_prepare_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_upgrade_prepare_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_upgrade_prepare_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_overcloud_upgrade_prepare_no_cleanup`: (Boolean) String to enable no cleanup. Default: false -* `tripleo_overcloud_upgrade_prepare_no_config_download`: (Boolean) String to disable the config download software configuration. Default: false -* `tripleo_overcloud_upgrade_prepare_no_proxy`: (String) String containing a comma separated list of hosts to skip proxying when http_proxy and https_proxy are used. -* `tripleo_overcloud_upgrade_prepare_ntp_server`: (String) String containing a comma separated list of NTP servers. Setting `NtpServer` in an environment file is preferred over this option. -* `tripleo_overcloud_upgrade_prepare_os_cloud`: (String) (String) OS_CLOUD value to use when running the command. If `tripleo_os_cloud` is defined, it will be the default. Otherwise the default is ''. This variable takes precedence over `tripleo_overcloud_upgrade_prepare_rc_file`. -* `tripleo_overcloud_upgrade_prepare_output_dir`: (String) Path to a directory to output for the configuration download output. -* `tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout`: (Integer) Timeout for the ssh enable process to finish. -* `tripleo_overcloud_upgrade_prepare_overcloud_ssh_key`: (String) Path to an ssh key file to use to access the overcloud nodes. -* `tripleo_overcloud_upgrade_prepare_overcloud_ssh_network`: (String) Network name to use for the ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout`: (Integer) Timeout to wait for the ssh port to become active. -* `tripleo_overcloud_upgrade_prepare_overcloud_ssh_user`: (String) User for ssh access to the overcloud nodes. -* `tripleo_overcloud_upgrade_prepare_override_ansible_cfg`: (String) File path to an ansible.cfg containing override values. -* `tripleo_overcloud_upgrade_prepare_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_overcloud_upgrade_prepare_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_upgrade_prepare_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_upgrade_prepare_roles_file`: (String) File path to a deployment roles file. -* `tripleo_overcloud_upgrade_prepare_run_validations`: (Boolean) Flag to enable running validations. Default: false -* `tripleo_overcloud_upgrade_prepare_skip_deploy_identifier`: (Boolean) Flag to enable skip deploy identifier. Default: false -* `tripleo_overcloud_upgrade_prepare_skip_postconfig`: (Boolean) Flag to enable skip postconfig. Default: false -* `tripleo_overcloud_upgrade_prepare_stack`: (String) Name of the stack to deploy. Default: overcloud -* `tripleo_overcloud_upgrade_prepare_templates`: (String) Path to a directory containing the tripleo-heat-templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_overcloud_upgrade_prepare_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_overcloud_upgrade_prepare_timeout_arg` value. Default: 5700 -* `tripleo_overcloud_upgrade_prepare_timeout_arg`: (Integer) Number in minutes for the deployment to run. Default: 90 -* `tripleo_overcloud_upgrade_prepare_upgrade_plan_only`: (Boolean) Flag to enable only updating the plan. Default: false -* `tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal`: (Boolean) Flag to make validation errors not fatal. Default: false -* `tripleo_overcloud_upgrade_prepare_validation_warnings_fatal`: (Boolean) Flag to make validation warnings fatal. Default: false - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_upgrade_prepare_output`: (String) The command standard output. -* `tripleo_overcloud_upgrade_prepare_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud upgrade prepare execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud upgrade prepare - import_role: - name: tripleo_overcloud_upgrade_prepare - vars: - tripleo_overcloud_upgrade_prepare_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_upgrade_prepare/defaults/main.yml b/roles/tripleo_overcloud_upgrade_prepare/defaults/main.yml deleted file mode 100644 index e695233..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/defaults/main.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -# defaults file for tripleo_overcloud_upgrade_prepare -openstack_bin: openstack -tripleo_overcloud_upgrade_prepare_answers_file: -tripleo_overcloud_upgrade_prepare_baremetal_deployment: -tripleo_overcloud_upgrade_prepare_config_download: false -tripleo_overcloud_upgrade_prepare_config_download_timeout: -tripleo_overcloud_upgrade_prepare_debug: false -tripleo_overcloud_upgrade_prepare_deployed_server: false -tripleo_overcloud_upgrade_prepare_disable_password_generation: false -tripleo_overcloud_upgrade_prepare_disable_validations: false -tripleo_overcloud_upgrade_prepare_dry_run: false -tripleo_overcloud_upgrade_prepare_environment_dirs: [] -tripleo_overcloud_upgrade_prepare_environment_files: [] -tripleo_overcloud_upgrade_prepare_force_postconfig: false -tripleo_overcloud_upgrade_prepare_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_upgrade_prepare_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_upgrade_prepare_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_upgrade_prepare_inflight_validations: false -tripleo_overcloud_upgrade_prepare_libvirt_type: -tripleo_overcloud_upgrade_prepare_log: "{{ tripleo_overcloud_upgrade_prepare_home_dir }}/overcloud_upgrade_prepare.log" -tripleo_overcloud_upgrade_prepare_log_combine: true -tripleo_overcloud_upgrade_prepare_log_output: true -tripleo_overcloud_upgrade_prepare_networks_file: -tripleo_overcloud_upgrade_prepare_no_cleanup: false -tripleo_overcloud_upgrade_prepare_no_config_download: false -tripleo_overcloud_upgrade_prepare_no_proxy: -tripleo_overcloud_upgrade_prepare_ntp_server: -tripleo_overcloud_upgrade_prepare_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_upgrade_prepare_output_dir: -tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout: -tripleo_overcloud_upgrade_prepare_overcloud_ssh_key: -tripleo_overcloud_upgrade_prepare_overcloud_ssh_network: -tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout: -tripleo_overcloud_upgrade_prepare_overcloud_ssh_user: -tripleo_overcloud_upgrade_prepare_override_ansible_cfg: -tripleo_overcloud_upgrade_prepare_plan_environment_file: -tripleo_overcloud_upgrade_prepare_poll: 10 -tripleo_overcloud_upgrade_prepare_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_upgrade_prepare_roles_file: -tripleo_overcloud_upgrade_prepare_run_validations: false -tripleo_overcloud_upgrade_prepare_skip_deploy_identifier: false -tripleo_overcloud_upgrade_prepare_skip_postconfig: false -tripleo_overcloud_upgrade_prepare_stack: overcloud -tripleo_overcloud_upgrade_prepare_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_overcloud_upgrade_prepare_timeout: 5700 -tripleo_overcloud_upgrade_prepare_timeout_arg: 90 -tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal: false -tripleo_overcloud_upgrade_prepare_validation_warnings_fatal: false diff --git a/roles/tripleo_overcloud_upgrade_prepare/meta/main.yml b/roles/tripleo_overcloud_upgrade_prepare/meta/main.yml deleted file mode 100644 index 6fa47ca..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_upgrade_prepare - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_upgrade_prepare - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/converge.yml b/roles/tripleo_overcloud_upgrade_prepare/molecule/default/converge.yml deleted file mode 100644 index b88bc39..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/converge.yml +++ /dev/null @@ -1,473 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_upgrade_prepare_debug: true - tripleo_overcloud_upgrade_prepare_log_output: false - tripleo_overcloud_upgrade_prepare_log_combine: false - tripleo_overcloud_upgrade_prepare_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_upgrade_prepare" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - - - name: Check role - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == - "overcloud upgrade prepare --templates /usr/share/openstack-tripleo-heat-templates --stack overcloud --timeout 90" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_stack" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: test - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - - - name: Assert "tripleo_overcloud_upgrade_prepare_stack" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --stack test" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_libvirt_type" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_libvirt_type: qemu - - - name: Assert "tripleo_overcloud_upgrade_prepare_libvirt_type" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --libvirt-type qemu" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_ntp_server" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_ntp_server: 0.pool.ntp.org,1.pool.ntp.org - - - name: Assert "tripleo_overcloud_upgrade_prepare_ntp_server" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --ntp-server 0.pool.ntp.org,1.pool.ntp.org" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_no_proxy" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_no_proxy: 192.168.24.1 - - - name: Assert "tripleo_overcloud_upgrade_prepare_no_proxy" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --no-proxy 192.168.24.1" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_overcloud_ssh_user" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_overcloud_ssh_user: bob - - - name: Assert "tripleo_overcloud_upgrade_prepare_overcloud_ssh_user" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --overcloud-ssh-user bob" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_overcloud_ssh_key" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_overcloud_ssh_key: /tmp/foo - - - name: Assert "tripleo_overcloud_upgrade_prepare_overcloud_ssh_key" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --overcloud-ssh-key /tmp/foo" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_overcloud_ssh_network" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_overcloud_ssh_network: external - - - name: Assert "tripleo_overcloud_upgrade_prepare_overcloud_ssh_network" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --overcloud-ssh-network external" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout: 12 - - - name: Assert "tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --overcloud-ssh-enable-timeout 12" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout: 200 - - - name: Assert "tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --overcloud-ssh-port-timeout 200" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_environment_files" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_environment_files: - - a.yaml - - b.yaml - - - name: Assert "tripleo_overcloud_upgrade_prepare_environment_files" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare -e a.yaml -e b.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_environment_dirs" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_environment_dirs: - - /home/foo/overcloud/ - - - name: Assert "tripleo_overcloud_upgrade_prepare_environment_dirs" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --environment-directory /home/foo/overcloud/" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_roles_files" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_roles_file: roles.yaml - - - name: Assert "tripleo_overcloud_upgrade_prepare_roles_files" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare -r roles.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_networks_file" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_networks_file: networks.yaml - - - name: Assert "tripleo_overcloud_upgrade_prepare_networks_file" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare -n networks.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_plan_environment_file" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_no_cleanup: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_no_cleanup" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --no-cleanup" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --validation-errors-nonfatal" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_validation_warnings_fatal" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_validation_warnings_fatal: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_validation_warnings_fatal" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --validation-warnings-fatal" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_disable_validations" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_disable_validations: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_disable_validations" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --disable-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_inflight_validations" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_inflight_validations: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_inflight_validations" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --inflight-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_dry_run" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_dry_run: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_dry_run" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --dry-run" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_run_validations" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_run_validations: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_run_validations" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --run-validations" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_skip_deploy_identifier" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_skip_deploy_identifier: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_skip_deploy_identifier" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --skip-deploy-identifier" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_skip_postconfig" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_skip_postconfig: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_skip_postconfig" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --skip-postconfig" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_force_postconfig" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_force_postconfig: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_force_postconfig" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --force-postconfig" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_answers_file" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_answers_file: foo.yaml - - - name: Assert "tripleo_overcloud_upgrade_prepare_answers_file" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --answers-file foo.yaml" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_disable_password_generation" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_disable_password_generation: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_disable_password_generation" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --disable-password-generation" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_deployed_server" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_deployed_server: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_deployed_server" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --deployed-server" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_config_download" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_config_download: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_config_download" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --config-download" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_no_config_download" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_no_config_download: true - - - name: Assert "tripleo_overcloud_upgrade_prepare_no_config_download" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --no-config-download" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_output_dir" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_output_dir: /tmp/output - - - name: Assert "tripleo_overcloud_upgrade_prepare_output_dir" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --output-dir /tmp/output" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_override_ansible_cfg" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_override_ansible_cfg: foo.cfg - - - name: Assert "tripleo_overcloud_upgrade_prepare_override_ansible_cfg" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --override-ansible-cfg foo.cfg" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_config_download_timeout" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_config_download_timeout: 12 - - - name: Assert "tripleo_overcloud_upgrade_prepare_config_download_timeout" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --config-download-timeout 12" - - - name: Check parameter "tripleo_overcloud_upgrade_prepare_baremetal_deployment" - include_role: - name: "tripleo_overcloud_upgrade_prepare" - vars: - tripleo_overcloud_upgrade_prepare_stack: - tripleo_overcloud_upgrade_prepare_templates: - tripleo_overcloud_upgrade_prepare_timeout_arg: - tripleo_overcloud_upgrade_prepare_baremetal_deployment: bare.yaml - - - name: Assert "tripleo_overcloud_upgrade_prepare_baremetal_deployment" - assert: - that: - - tripleo_overcloud_upgrade_prepare_output == "overcloud upgrade prepare --baremetal-deployment bare.yaml" diff --git a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/molecule.yml b/roles/tripleo_overcloud_upgrade_prepare/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/prepare.yml b/roles/tripleo_overcloud_upgrade_prepare/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_upgrade_prepare/tasks/main.yml b/roles/tripleo_overcloud_upgrade_prepare/tasks/main.yml deleted file mode 100644 index 5087fa1..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/tasks/main.yml +++ /dev/null @@ -1,107 +0,0 @@ ---- -# tasks file for tripleo_overcloud_upgrade_prepare -- name: Setup overcloud upgrade prepare facts - set_fact: - _upgrade_prepare_cmd: >- - {{ tripleo_overcloud_upgrade_prepare_os_cloud | ternary('', "source " ~ tripleo_overcloud_upgrade_prepare_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud upgrade prepare - {{ tripleo_overcloud_upgrade_prepare_templates | ternary('--templates $UPDATE_TEMPLATES', '') }} - {{ tripleo_overcloud_upgrade_prepare_stack | ternary('--stack $UPDATE_STACK', '') }} - {{ tripleo_overcloud_upgrade_prepare_timeout_arg | ternary('--timeout $UPDATE_TIMEOUT_ARG', '') }} - {{ tripleo_overcloud_upgrade_prepare_libvirt_type | ternary('--libvirt-type $UPDATE_LIBVIRT_TYPE', '') }} - {{ tripleo_overcloud_upgrade_prepare_ntp_server | ternary('--ntp-server $UPDATE_NTP_SERVER', '') }} - {{ tripleo_overcloud_upgrade_prepare_no_proxy | ternary('--no-proxy $UPDATE_NO_PROXY', '') }} - {{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_user | ternary('--overcloud-ssh-user $UPDATE_OVERCLOUD_SSH_USER', '') }} - {{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_key | ternary('--overcloud-ssh-key $UPDATE_OVERCLOUD_SSH_KEY', '') }} - {{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_network | ternary('--overcloud-ssh-network $UPDATE_OVERCLOUD_SSH_NETWORK', '') }} - {{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout | ternary('--overcloud-ssh-enable-timeout $UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout | ternary('--overcloud-ssh-port-timeout $UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_prepare_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_overcloud_upgrade_prepare_environment_dirs | tripleo.operator.shell_arg_list(parameter='--environment-directory') }} - {{ tripleo_overcloud_upgrade_prepare_roles_file | ternary('-r $UPDATE_ROLES_FILE', '') }} - {{ tripleo_overcloud_upgrade_prepare_networks_file | ternary('-n $UPDATE_NETWORKS_FILE', '') }} - {{ tripleo_overcloud_upgrade_prepare_plan_environment_file | ternary('-p $UPDATE_PLAN_ENV_FILE', '') }} - {{ tripleo_overcloud_upgrade_prepare_no_cleanup | ternary('--no-cleanup', '') }} - {{ tripleo_overcloud_upgrade_prepare_validation_errors_nonfatal | ternary('--validation-errors-nonfatal', '') }} - {{ tripleo_overcloud_upgrade_prepare_validation_warnings_fatal | ternary('--validation-warnings-fatal', '') }} - {{ tripleo_overcloud_upgrade_prepare_disable_validations | ternary('--disable-validations', '') }} - {{ tripleo_overcloud_upgrade_prepare_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_overcloud_upgrade_prepare_dry_run | ternary('--dry-run', '') }} - {{ tripleo_overcloud_upgrade_prepare_run_validations | ternary('--run-validations', '') }} - {{ tripleo_overcloud_upgrade_prepare_skip_postconfig | ternary('--skip-postconfig', '') }} - {{ tripleo_overcloud_upgrade_prepare_force_postconfig | ternary('--force-postconfig', '') }} - {{ tripleo_overcloud_upgrade_prepare_skip_deploy_identifier | ternary('--skip-deploy-identifier', '') }} - {{ tripleo_overcloud_upgrade_prepare_answers_file | ternary('--answers-file $UPDATE_ANSWERS_FILE', '') }} - {{ tripleo_overcloud_upgrade_prepare_disable_password_generation | ternary('--disable-password-generation', '') }} - {{ tripleo_overcloud_upgrade_prepare_deployed_server | ternary('--deployed-server', '') }} - {{ tripleo_overcloud_upgrade_prepare_config_download | ternary('--config-download', '') }} - {{ tripleo_overcloud_upgrade_prepare_no_config_download | ternary('--no-config-download', '') }} - {{ tripleo_overcloud_upgrade_prepare_output_dir | ternary('--output-dir $UPDATE_OUTPUT_DIR', '') }} - {{ tripleo_overcloud_upgrade_prepare_override_ansible_cfg | ternary('--override-ansible-cfg $UPDATE_OVERRIDE_ANSIBLE_CFG', '') }} - {{ tripleo_overcloud_upgrade_prepare_config_download_timeout | ternary('--config-download-timeout $UPDATE_CONFIG_DOWNLOAD_TIMEOUT', '') }} - {{ tripleo_overcloud_upgrade_prepare_baremetal_deployment | ternary('--baremetal-deployment $UPDATE_BAREMETAL_DEPLOYMENT', '') }} - {{ tripleo_overcloud_upgrade_prepare_log_output | ternary((">" ~ tripleo_overcloud_upgrade_prepare_log), '') }} - {{ tripleo_overcloud_upgrade_prepare_log_combine | ternary("2>&1", '') }} - _upgrade_prepare_env: - UPDATE_TEMPLATES: "{{ tripleo_overcloud_upgrade_prepare_templates }}" - UPDATE_STACK: "{{ tripleo_overcloud_upgrade_prepare_stack }}" - UPDATE_TIMEOUT_ARG: "{{ tripleo_overcloud_upgrade_prepare_timeout_arg }}" - UPDATE_LIBVIRT_TYPE: "{{ tripleo_overcloud_upgrade_prepare_libvirt_type }}" - UPDATE_NTP_SERVER: "{{ tripleo_overcloud_upgrade_prepare_ntp_server }}" - UPDATE_NO_PROXY: "{{ tripleo_overcloud_upgrade_prepare_no_proxy }}" - UPDATE_OVERCLOUD_SSH_USER: "{{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_user }}" - UPDATE_OVERCLOUD_SSH_KEY: "{{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_key }}" - UPDATE_OVERCLOUD_SSH_NETWORK: "{{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_network }}" - UPDATE_OVERCLOUD_SSH_ENABLE_TIMEOUT: "{{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_enable_timeout }}" - UPDATE_OVERCLOUD_SSH_PORT_TIMEOUT: "{{ tripleo_overcloud_upgrade_prepare_overcloud_ssh_port_timeout }}" - UPDATE_ROLES_FILE: "{{ tripleo_overcloud_upgrade_prepare_roles_file }}" - UPDATE_NETWORKS_FILE: "{{ tripleo_overcloud_upgrade_prepare_networks_file }}" - UPDATE_PLAN_ENV_FILE: "{{ tripleo_overcloud_upgrade_prepare_plan_environment_file }}" - UPDATE_ANSWERS_FILE: "{{ tripleo_overcloud_upgrade_prepare_answers_file }}" - UPDATE_OUTPUT_DIR: "{{ tripleo_overcloud_upgrade_prepare_output_dir }}" - UPDATE_OVERRIDE_ANSIBLE_CFG: "{{ tripleo_overcloud_upgrade_prepare_override_ansible_cfg }}" - UPDATE_CONFIG_DOWNLOAD_TIMEOUT: "{{ tripleo_overcloud_upgrade_prepare_config_download_timeout }}" - UPDATE_BAREMETAL_DEPLOYMENT: "{{ tripleo_overcloud_upgrade_prepare_baremetal_deployment }}" - OS_CLOUD: "{{ tripleo_overcloud_upgrade_prepare_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_upgrade_prepare_log }}" - when: tripleo_overcloud_upgrade_prepare_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_upgrade_prepare_debug|bool - block: - - name: Show the overcloud upgrade prepare command - debug: - var: _upgrade_prepare_cmd - - - name: Show the overcloud upgrade prepare environment - debug: - var: _upgrade_prepare_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_upgrade_prepare_home_dir }}/tripleo_overcloud_upgrade_prepare_ansible.sh" - shell_command: "{{ _upgrade_prepare_cmd }}" - shell_environment: "{{ _upgrade_prepare_env }}" - when: tripleo_overcloud_upgrade_prepare_generate_scripts|bool - -- name: Overcloud upgrade prepare - shell: "{{ _upgrade_prepare_cmd }}" # noqa 305 - environment: "{{ _upgrade_prepare_env }}" - args: - chdir: "{{ tripleo_overcloud_upgrade_prepare_home_dir }}" - register: tripleo_overcloud_upgrade_prepare_result - async: "{{ tripleo_overcloud_upgrade_prepare_timeout }}" - poll: "{{ tripleo_overcloud_upgrade_prepare_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_upgrade_prepare_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_upgrade_prepare_result.stdout is defined - set_fact: - tripleo_overcloud_upgrade_prepare_output: "{{ tripleo_overcloud_upgrade_prepare_result.stdout }}" diff --git a/roles/tripleo_overcloud_upgrade_prepare/tests/inventory b/roles/tripleo_overcloud_upgrade_prepare/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_upgrade_prepare/tests/test.yml b/roles/tripleo_overcloud_upgrade_prepare/tests/test.yml deleted file mode 100644 index 2141133..0000000 --- a/roles/tripleo_overcloud_upgrade_prepare/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_upgrade_prepare diff --git a/roles/tripleo_overcloud_upgrade_run/README.md b/roles/tripleo_overcloud_upgrade_run/README.md deleted file mode 100644 index 2f98fec..0000000 --- a/roles/tripleo_overcloud_upgrade_run/README.md +++ /dev/null @@ -1,65 +0,0 @@ -tripleo_overcloud_upgrade_run -============================= - -A role to execute an overcloud upgrade run. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_overcloud_upgrade_run_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_overcloud_upgrade_run_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_overcloud_upgrade_run_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_overcloud_upgrade_run_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_overcloud_upgrade_run_home_dir`: (String) Home directory to where the command is run from. Default: "{{ ansible_env.HOME }}" -* `tripleo_overcloud_upgrade_run_limit`: (String) String that identifies a single node or a list of nodes to be upgraded. -* `tripleo_overcloud_upgrade_run_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_overcloud_upgrade_run_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_overcloud_upgrade_run_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_overcloud_upgrade_run_home_dir }}/overcloud_upgrade_run.log" -* `tripleo_overcloud_upgrade_run_playbook`: (List) List of playbook(s) to use for the upgrade. Defaults: [] -* `tripleo_overcloud_upgrade_run_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_overcloud_upgrade_run_rc_file`: (String) (String) Path to the credential file to use. If `tripleo_rc_file` is defined, it will be the default. Default: "{{ ansible_env.HOME }}/stackrc" -* `tripleo_overcloud_upgrade_run_skip_tags`: (String) A string specifying the tag or a comma separated list of tags to be excluded. -* `tripleo_overcloud_upgrade_run_ssh_user`: (String) Username of user to be used as the ssh user. -* `tripleo_overcloud_upgrade_run_stack`: (String) Name of the stack to deploy. -* `tripleo_overcloud_upgrade_run_static_inventory`: (String) Path to an existing ansible inventory to use. -* `tripleo_overcloud_upgrade_run_tags`: (String) A string specifying the tag or a comma separated list of tags to be included. -* `tripleo_overcloud_upgrade_run_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. Default: 5700 - -NOTE: Please note that this command should be run against the undercloud so the -OS_CLOUD or rc file variables should be set to use the 'undercloud' when -calling this role. If you are not defining `tripleo_os_cloud` or `tripleo_rc_file`, -stackrc will be used by default. - -Output Variables ----------------- - -* `tripleo_overcloud_upgrade_run_output`: (String) The command standard output. -* `tripleo_overcloud_upgrade_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud upgrade run execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run overcloud upgrade run - import_role: - name: tripleo_overcloud_upgrade_run -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_overcloud_upgrade_run/defaults/main.yml b/roles/tripleo_overcloud_upgrade_run/defaults/main.yml deleted file mode 100644 index 4510dc5..0000000 --- a/roles/tripleo_overcloud_upgrade_run/defaults/main.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -# defaults file for tripleo_overcloud_upgrade_run -openstack_bin: openstack -tripleo_overcloud_upgrade_run_debug: false -tripleo_overcloud_upgrade_run_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_overcloud_upgrade_run_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_overcloud_upgrade_run_home_dir: "{{ ansible_env.HOME }}" -tripleo_overcloud_upgrade_run_limit: -tripleo_overcloud_upgrade_run_log: "{{ tripleo_overcloud_upgrade_run_home_dir }}/overcloud_upgrade_run.log" -tripleo_overcloud_upgrade_run_log_combine: true -tripleo_overcloud_upgrade_run_log_output: true -tripleo_overcloud_upgrade_run_os_cloud: "{{ tripleo_os_cloud | default('') }}" -tripleo_overcloud_upgrade_run_playbook: [] -tripleo_overcloud_upgrade_run_poll: 10 -tripleo_overcloud_upgrade_run_rc_file: "{{ tripleo_rc_file | default(ansible_env.HOME ~ '/stackrc') }}" -tripleo_overcloud_upgrade_run_skip_tags: -tripleo_overcloud_upgrade_run_ssh_user: -tripleo_overcloud_upgrade_run_stack: -tripleo_overcloud_upgrade_run_static_inventory: -tripleo_overcloud_upgrade_run_tags: -tripleo_overcloud_upgrade_run_timeout: 5700 diff --git a/roles/tripleo_overcloud_upgrade_run/meta/main.yml b/roles/tripleo_overcloud_upgrade_run/meta/main.yml deleted file mode 100644 index 8a89c87..0000000 --- a/roles/tripleo_overcloud_upgrade_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_overcloud_upgrade_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_overcloud_upgrade_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_overcloud_upgrade_run/molecule/default/converge.yml b/roles/tripleo_overcloud_upgrade_run/molecule/default/converge.yml deleted file mode 100644 index fb022f4..0000000 --- a/roles/tripleo_overcloud_upgrade_run/molecule/default/converge.yml +++ /dev/null @@ -1,90 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_overcloud_upgrade_run_debug: true - tripleo_overcloud_upgrade_run_log_output: false - tripleo_overcloud_upgrade_run_log_combine: false - tripleo_overcloud_upgrade_run_poll: 1 - tasks: - - - name: "Include tripleo_overcloud_upgrade_run" - include_role: - name: "tripleo_overcloud_upgrade_run" - - - name: Check role - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run" - - - name: Check parameter "tripleo_overcloud_upgrade_run_stack" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_stack: test - - - name: Assert "tripleo_overcloud_upgrade_run_stack" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --stack test" - - - name: Check parameter "tripleo_overcloud_upgrade_run_tags" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_tags: test - - - name: Assert "tripleo_overcloud_upgrade_run_tags" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --tags test" - - - name: Check parameter "tripleo_overcloud_upgrade_run_skip_tags" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_skip_tags: test - - - name: Assert "tripleo_overcloud_upgrade_run_skip_tags" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --skip-tags test" - - - name: Check parameter "tripleo_overcloud_upgrade_run_playbook" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_playbook: - - test1 - - test2 - - - name: Assert "tripleo_overcloud_upgrade_run_playbook" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --playbook test1 --playbook test2" - - - name: Check parameter "tripleo_overcloud_upgrade_run_ssh_user" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_ssh_user: username - - - name: Assert "tripleo_overcloud_upgrade_run_ssh_user" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --ssh-user username" - - - name: Check parameter "tripleo_overcloud_upgrade_run_static_inventory" - include_role: - name: "tripleo_overcloud_upgrade_run" - vars: - tripleo_overcloud_upgrade_run_static_inventory: /home/foo/inventory.yml - - - name: Assert "tripleo_overcloud_upgrade_run_static_inventory" - assert: - that: - - tripleo_overcloud_upgrade_run_output == "overcloud upgrade run --static-inventory /home/foo/inventory.yml" diff --git a/roles/tripleo_overcloud_upgrade_run/molecule/default/molecule.yml b/roles/tripleo_overcloud_upgrade_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_overcloud_upgrade_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_overcloud_upgrade_run/molecule/default/prepare.yml b/roles/tripleo_overcloud_upgrade_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_overcloud_upgrade_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_overcloud_upgrade_run/tasks/main.yml b/roles/tripleo_overcloud_upgrade_run/tasks/main.yml deleted file mode 100644 index 63caf58..0000000 --- a/roles/tripleo_overcloud_upgrade_run/tasks/main.yml +++ /dev/null @@ -1,67 +0,0 @@ ---- -# tasks file for tripleo_overcloud_upgrade_run -- name: Setup overcloud upgrade run facts - set_fact: - _run_cmd: >- - {{ tripleo_overcloud_upgrade_run_os_cloud | ternary('', "source " ~ tripleo_overcloud_upgrade_run_rc_file ~ "; ") }} - {{ openstack_bin }} overcloud upgrade run - {{ tripleo_overcloud_upgrade_run_limit | ternary('--limit $UPGRADE_LIMIT', '') }} - {{ tripleo_overcloud_upgrade_run_playbook | tripleo.operator.shell_arg_list('--playbook') }} - {{ tripleo_overcloud_upgrade_run_ssh_user | ternary('--ssh-user $UPGRADE_SSH_USER', '') }} - {{ tripleo_overcloud_upgrade_run_static_inventory | ternary('--static-inventory $UPGRADE_STATIC_INVENTORY', '') }} - {{ tripleo_overcloud_upgrade_run_tags | ternary('--tags $UPGRADE_TAGS', '') }} - {{ tripleo_overcloud_upgrade_run_skip_tags | ternary('--skip-tags $UPGRADE_SKIP_TAGS', '') }} - {{ tripleo_overcloud_upgrade_run_stack | ternary('--stack $UPGRADE_STACK', '') }} - {{ tripleo_overcloud_upgrade_run_log_output | ternary((">" ~ tripleo_overcloud_upgrade_run_log), '') }} - {{ tripleo_overcloud_upgrade_run_log_combine | ternary("2>&1", '') }} - _run_env: - UPGRADE_LIMIT: "{{ tripleo_overcloud_upgrade_run_limit | quote }}" - UPGRADE_PLAYBOOK: "{{ tripleo_overcloud_upgrade_run_playbook| list | join(' ') }}" - UPGRADE_SSH_USER: "{{ tripleo_overcloud_upgrade_run_ssh_user }}" - UPGRADE_STATIC_INVENTORY: "{{ tripleo_overcloud_upgrade_run_static_inventory }}" - UPGRADE_TAGS: "{{ tripleo_overcloud_upgrade_run_tags }}" - UPGRADE_SKIP_TAGS: "{{ tripleo_overcloud_upgrade_run_skip_tags }}" - UPGRADE_STACK: "{{ tripleo_overcloud_upgrade_run_stack }}" - OS_CLOUD: "{{ tripleo_overcloud_upgrade_run_os_cloud }}" - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_overcloud_upgrade_run_log }}" - when: tripleo_overcloud_upgrade_run_log_output|bool - -- name: Show debug information - when: tripleo_overcloud_upgrade_run_debug|bool - block: - - name: Show the overcloud upgrade run command - debug: - var: _run_cmd - - - name: Show the overcloud upgrade run environment - debug: - var: _run_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_overcloud_upgrade_run_home_dir }}/tripleo_overcloud_upgrade_run_ansible.sh" - shell_command: "{{ _run_cmd }}" - shell_environment: "{{ _run_env }}" - when: tripleo_overcloud_upgrade_run_generate_scripts|bool - -- name: Overcloud upgrade run - shell: "{{ _run_cmd }}" # noqa 305 - environment: "{{ _run_env }}" - args: - chdir: "{{ tripleo_overcloud_upgrade_run_home_dir }}" - register: tripleo_overcloud_upgrade_run_result - async: "{{ tripleo_overcloud_upgrade_run_timeout }}" - poll: "{{ tripleo_overcloud_upgrade_run_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_overcloud_upgrade_run_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_overcloud_upgrade_run_result.stdout is defined - set_fact: - tripleo_overcloud_upgrade_run_output: "{{ tripleo_overcloud_upgrade_run_result.stdout }}" diff --git a/roles/tripleo_overcloud_upgrade_run/tests/inventory b/roles/tripleo_overcloud_upgrade_run/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_overcloud_upgrade_run/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_overcloud_upgrade_run/tests/test.yml b/roles/tripleo_overcloud_upgrade_run/tests/test.yml deleted file mode 100644 index caef224..0000000 --- a/roles/tripleo_overcloud_upgrade_run/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_overcloud_upgrade_run diff --git a/roles/tripleo_repos/README.md b/roles/tripleo_repos/README.md deleted file mode 100644 index c0d4372..0000000 --- a/roles/tripleo_repos/README.md +++ /dev/null @@ -1,52 +0,0 @@ -tripleo_repos -============= - -Role to install tripleo_repos and use it to manage tripleo yum repos. - -Requirements ------------- - -None - -Role Variables --------------- - -* `tripleo_repos_branch`: (String) Repo branch to configure (master|train|stein|etc) -* `tripleo_repos_repo_branch`: (String) Repo branch to install tripleo-repos tool (master|train|stein|etc) -* `tripleo_repos_debug`: (Boolean) Flag to print out the tripleo-repos command being executed -* `tripleo_repos_extra_args`: (List) List of extra arguments to pass to tripleo_repos -* `tripleo_repos_repo_base`: (String) Url base to RDO (default: ) -* `tripleo_repos_repos`: (List) List of repos to install -* `tripleo_repos_mirror`: (String) Base OS mirror to use -* `tripleo_repos_no_stream`: (Boolean) Flag for tripleo-repos to disable stream if CentOS8 Stream is not being used. Default: false -* `tripleo_repos_rdo_mirror`: (String) RDO mirror to use -* `tripleo_repos_output_path`: (String) Directory to save the repos in -* `tripleo_repos_stream`: (Boolean) Flag for tripleo-repos if CentOS8 Stream is used. Default: false - -Dependencies ------------- - -None - -Example Playbook ----------------- - -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: - -```yaml -- hosts: servers - roles: - - name: Setup tripleo_repos - include_role: - name: tripleo_repos - vars: - tripleo_repos_repos: - - current - - ceph - tripleo_repos_branch: train -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_repos/defaults/main.yml b/roles/tripleo_repos/defaults/main.yml deleted file mode 100644 index 4651ea8..0000000 --- a/roles/tripleo_repos/defaults/main.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -# defaults file for tripleo_repos -tripleo_repos_branch: master -tripleo_repos_repo_branch: -tripleo_repos_debug: false -tripleo_repos_distro: -tripleo_repos_extra_args: [] -tripleo_repos_mirror: -tripleo_repos_no_stream: false -tripleo_repos_output_path: -tripleo_repos_rdo_mirror: -tripleo_repos_repo_base: https://trunk.rdoproject.org -tripleo_repos_repos: - - current-tripleo-dev -tripleo_repos_stream: false diff --git a/roles/tripleo_repos/handlers/main.yml b/roles/tripleo_repos/handlers/main.yml deleted file mode 100644 index c534411..0000000 --- a/roles/tripleo_repos/handlers/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# handlers file for tripleo_repos diff --git a/roles/tripleo_repos/meta/main.yml b/roles/tripleo_repos/meta/main.yml deleted file mode 100644 index d5b57ee..0000000 --- a/roles/tripleo_repos/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_repos - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_repos - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_repos/tasks/install.yml b/roles/tripleo_repos/tasks/install.yml deleted file mode 100644 index 0624a9d..0000000 --- a/roles/tripleo_repos/tasks/install.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- name: Build distro string - set_fact: - _tripleo_repos_distro: "{{ (ansible_facts.distribution == 'RedHat') | ternary('rhel', 'centos') }}{{ ansible_facts.distribution_major_version }}" - _tripleo_repos_component: "{{ (ansible_facts.distribution_major_version|int >= 8) | ternary('component/tripleo/', '') }}" - -- name: Build RDO repo url - set_fact: - _tripleo_repos_repo_url: >- - {{ tripleo_repos_repo_base }}/{{ _tripleo_repos_distro }}-{{ tripleo_repos_repo_branch | - ternary(tripleo_repos_repo_branch, tripleo_repos_branch) }}/{{ _tripleo_repos_component }}/current/ - -- name: Find available tripleo_repos rpm - block: - - name: Grab repo package list - uri: - url: "{{ _tripleo_repos_repo_url }}" - return_content: true - retries: 10 - delay: 3 - register: _tripleo_repos_repo_data - - name: Find rpm name - set_fact: - _tripleo_repos_rpm: "{{ _tripleo_repos_repo_data.content | regex_search('python[0-9]-tripleo-repos-[a-z0-9-.]+\\.rpm') }}" - - name: Fail if rpm is missing - fail: - msg: Unable to find tripleo_repos rpm - when: _tripleo_repos_rpm|length == 0 - -- name: Install tripleo-repos - yum: - name: "{{ _tripleo_repos_repo_url }}{{ _tripleo_repos_rpm }}" - state: present - # We do not sign the rpm and we are fetching straight from a URL - disable_gpg_check: true - become: true diff --git a/roles/tripleo_repos/tasks/main.yml b/roles/tripleo_repos/tasks/main.yml deleted file mode 100644 index c11e718..0000000 --- a/roles/tripleo_repos/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# tasks file for tripleo_repos - -# TODO(mwhahaha): uncomment this once we have a version of ansible with -# https://github.com/ansible/ansible/pull/65776 -# -# - name: Gather distribution facts -# setup: -# gather_subset: "!all,!min,distribution,distribution_major_version" - -- name: Gather the rpm package facts - package_facts: - -- name: Install tripleo-repos - include_tasks: install.yml - when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleo-repos' in ansible_facts.packages) or - (ansible_facts.distribution_major_version|int >= 8 and not 'python3-tripleo-repos' in ansible_facts.packages) - -- name: Setup tripleo repos ansible facts - set_fact: - _repos_cmd: >- - tripleo-repos - {{ tripleo_repos_branch | ternary('-b ' ~ tripleo_repos_branch, '') }} - {{ tripleo_repos_distro | ternary('-d ' ~ tripleo_repos_distro, '') }} - {{ tripleo_repos_output_path | ternary('-o ' ~ tripleo_repos_output_path, '') }} - {{ tripleo_repos_mirror | ternary('--mirror ' ~ tripleo_repos_mirror, '') }} - {{ tripleo_repos_rdo_mirror | ternary('--rdo-mirror ' ~ tripleo_repos_rdo_mirror, '') }} - {{ tripleo_repos_stream | ternary('--stream', '') }} - {{ tripleo_repos_no_stream | ternary('--no-stream', '') }} - {{ tripleo_repos_extra_args | join(' ') }} - {{ tripleo_repos_repos | join( ' ') }} - -- name: Show debug information - when: tripleo_repos_debug|bool - block: - - name: Show the tripleo repos command - debug: - var: _repos_cmd - -- name: Run tripleo-repos - shell: "{{ _repos_cmd }}" - args: - become: true - changed_when: true diff --git a/roles/tripleo_repos/tests/inventory b/roles/tripleo_repos/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_repos/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_repos/tests/test.yml b/roles/tripleo_repos/tests/test.yml deleted file mode 100644 index b3c7979..0000000 --- a/roles/tripleo_repos/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_repos diff --git a/roles/tripleo_repos/vars/main.yml b/roles/tripleo_repos/vars/main.yml deleted file mode 100644 index 5778caa..0000000 --- a/roles/tripleo_repos/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for tripleo_repos diff --git a/roles/tripleo_undercloud_backup/README.md b/roles/tripleo_undercloud_backup/README.md deleted file mode 100644 index 61f98f0..0000000 --- a/roles/tripleo_undercloud_backup/README.md +++ /dev/null @@ -1,60 +0,0 @@ -tripleo_undercloud_backup -========================= - -A role to run backup of a TripleO undercloud. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_undercloud_backup_become`: (Boolean) Run the command as root. This needs to be true as the commands require root privileges to run. Default: true -* `tripleo_undercloud_backup_add_path`: (List) List of additional filesystem paths to backup. Default: [] -* `tripleo_undercloud_backup_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_undercloud_backup_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_undercloud_backup_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_backup_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_undercloud_backup_exclude_path`: (List) List of filesystems path to skip backing up. Default: [] -* `tripleo_undercloud_backup_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_undercloud_backup_init`: (String) Flag to initialize environment for backup, using `rear` or `nfs` as args which will check for packages, install and configure ReaR or NFS server. WARNING: This flag will be deprecated and replaced by `--setup-rear` and `--setup-nfs`. -* `tripleo_undercloud_backup_setup_nfs`: (Boolean) Flag to setup the NFS server on the backup node which will install required packages and configuration. -* `tripleo_undercloud_backup_setup_rear`: (Boolean) Flag to setup ReaR on undercloud which will install and configure ReaR. -* `tripleo_undercloud_backup_extra_vars`: (String) Flag to set additional variables as JSON or as an absolute path of a JSON or YAML file type. -* `tripleo_undercloud_backup_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_undercloud_backup_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_undercloud_backup_poll`: (Integer) Number of seconds to wait between checks to see if the backup command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_undercloud_backup_timeout`: (Integer) Timeout for the backup command. Default: 7200 -* `tripleo_undercloud_backup_log`: (String) Backup log file path. Default: "{{ tripleo_undercloud_backup_home_dir }}/undercloud_backup.log" - -Output Variables ----------------- - -* `tripleo_undercloud_backup_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example backup execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Backup undercloud - import_role: - name: tripleo_undercloud_backup - vars: - tripleo_undercloud_backup_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_undercloud_backup/defaults/main.yml b/roles/tripleo_undercloud_backup/defaults/main.yml deleted file mode 100644 index 2dde1bf..0000000 --- a/roles/tripleo_undercloud_backup/defaults/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -# defaults file for tripleo_undercloud_backup ---- -openstack_bin: openstack -tripleo_undercloud_backup_add_path: [] -tripleo_undercloud_backup_become: true -tripleo_undercloud_backup_debug: false -tripleo_undercloud_backup_exclude_path: [] -tripleo_undercloud_backup_init: -tripleo_undercloud_backup_setup_nfs: false -tripleo_undercloud_backup_setup_rear: false -tripleo_undercloud_backup_extra_vars: -tripleo_undercloud_backup_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_undercloud_backup_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_undercloud_backup_home_dir: "{{ ansible_env.HOME }}" -tripleo_undercloud_backup_log: "{{ tripleo_undercloud_backup_home_dir }}/undercloud_backup.log" -tripleo_undercloud_backup_log_combine: true -tripleo_undercloud_backup_log_output: true -tripleo_undercloud_backup_poll: 10 -tripleo_undercloud_backup_timeout: 7200 diff --git a/roles/tripleo_undercloud_backup/meta/main.yml b/roles/tripleo_undercloud_backup/meta/main.yml deleted file mode 100644 index 68b4fed..0000000 --- a/roles/tripleo_undercloud_backup/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_undercloud_backup - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_undercloud_backup - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_undercloud_backup/molecule/default/converge.yml b/roles/tripleo_undercloud_backup/molecule/default/converge.yml deleted file mode 100644 index 8a307f5..0000000 --- a/roles/tripleo_undercloud_backup/molecule/default/converge.yml +++ /dev/null @@ -1,120 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_undercloud_backup_become: false - tripleo_undercloud_backup_debug: true - tripleo_undercloud_backup_log_output: false - tripleo_undercloud_backup_log_combine: false - tripleo_undercloud_backup_poll: 1 - tasks: - - - name: "Include tripleo_undercloud_backup" - include_role: - name: "tripleo_undercloud_backup" - - - name: Check role - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup" - - - name: Check parameter "tripleo_undercloud_backup_add_path" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_add_path: - - /foo - - /bar - - - name: Assert "tripleo_undercloud_backup_add_path" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --add-path /foo --add-path /bar" - - - name: Check parameter "tripleo_undercloud_backup_exclude_path" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_exclude_path: - - /home - - /usr - - - name: Assert "tripleo_undercloud_backup_exclude_path" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --exclude-path /home --exclude-path /usr" - - - - name: Check parameter "tripleo_undercloud_backup_init_rear" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_init: rear - - - name: Assert "tripleo_undercloud_backup_init_rear" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --init rear" - - - name: Check parameter "tripleo_undercloud_backup_init_nfs" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_init: nfs - - - name: Assert "tripleo_undercloud_backup_init_nfs" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --init nfs" - - - name: Check parameter "tripleo_undercloud_backup_setup_nfs" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_setup_nfs: true - - - name: Assert "tripleo_undercloud_backup_setup_nfs" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --setup-nfs" - - - name: Check parameter "tripleo_undercloud_backup_setup_rear" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_setup_rear: true - - - name: Assert "tripleo_undercloud_backup_setup_rear" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --setup-rear" - - - name: Check parameter "tripleo_undercloud_backup_setup_rear_extra_vars_file" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_setup_rear: true - tripleo_undercloud_backup_extra_vars: /path/to/vars.yaml - - - name: Assert "tripleo_undercloud_backup_setup_rear_extra_vars_file" - assert: - that: - - tripleo_undercloud_backup_result.stdout == "undercloud backup --setup-rear --extra-vars /path/to/vars.yaml" - - - name: Check parameter "tripleo_undercloud_backup_setup_rear_extra_vars_string" - include_role: - name: "tripleo_undercloud_backup" - vars: - tripleo_undercloud_backup_setup_rear: true - tripleo_undercloud_backup_extra_vars: "{{ {'tripleo_backup_and_restore_nfs_server': '192.168.24.1'} | to_json }}" - - - name: Assert "tripleo_undercloud_backup_setup_rear_extra_vars_string" - vars: - tripleo_undercloud_backup_extra_vars: "{{ {'tripleo_backup_and_restore_nfs_server': '192.168.24.1'} | to_json }}" - assert: - that: - - tripleo_undercloud_backup_result.stdout == 'undercloud backup --setup-rear --extra-vars {{ tripleo_undercloud_backup_extra_vars }}' diff --git a/roles/tripleo_undercloud_backup/molecule/default/molecule.yml b/roles/tripleo_undercloud_backup/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_undercloud_backup/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_undercloud_backup/molecule/default/prepare.yml b/roles/tripleo_undercloud_backup/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_undercloud_backup/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_undercloud_backup/tasks/main.yml b/roles/tripleo_undercloud_backup/tasks/main.yml deleted file mode 100644 index 5327689..0000000 --- a/roles/tripleo_undercloud_backup/tasks/main.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -- name: Setup undercloud backup facts - set_fact: - _backup_cmd: >- - {{ openstack_bin }} undercloud backup - {{ tripleo_undercloud_backup_add_path | tripleo.operator.shell_arg_list(parameter='--add-path') }} - {{ tripleo_undercloud_backup_exclude_path | tripleo.operator.shell_arg_list(parameter='--exclude-path') }} - {{ tripleo_undercloud_backup_init | tripleo.operator.shell_arg_list(parameter='--init') }} - {{ tripleo_undercloud_backup_setup_nfs | ternary('--setup-nfs', '') }} - {{ tripleo_undercloud_backup_setup_rear | ternary('--setup-rear', '') }} - {{ tripleo_undercloud_backup_extra_vars | tripleo.operator.shell_arg_list(parameter='--extra-vars') }} - {{ tripleo_undercloud_backup_log_output | ternary((">" ~ tripleo_undercloud_backup_log), '') }} - {{ tripleo_undercloud_backup_log_combine | ternary("2>&1", '') }} - _backup_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_undercloud_backup_log }}" - when: tripleo_undercloud_backup_log_output|bool - -- name: Show debug information - when: tripleo_undercloud_backup_debug|bool - block: - - name: Show the undercloud backup command - debug: - var: _backup_cmd - - - name: Show the undercloud backup environment - debug: - var: _backup_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_undercloud_backup_home_dir }}/tripleo_undercloud_backup.sh" - shell_command: "{{ _backup_cmd }}" - shell_environment: "{{ _backup_env }}" - when: tripleo_undercloud_backup_generate_scripts|bool - -- name: undercloud backup - shell: "{{ _backup_cmd }}" # noqa 305 - environment: "{{ _backup_env }}" - args: - chdir: "{{ tripleo_undercloud_backup_home_dir }}" - async: "{{ tripleo_undercloud_backup_timeout }}" - poll: "{{ tripleo_undercloud_backup_poll }}" - become: "{{ tripleo_undercloud_backup_become }}" - register: tripleo_undercloud_backup_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_undercloud_backup_generate_scripts_only|bool diff --git a/roles/tripleo_undercloud_backup/tests/inventory b/roles/tripleo_undercloud_backup/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_undercloud_backup/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_undercloud_backup/tests/test.yml b/roles/tripleo_undercloud_backup/tests/test.yml deleted file mode 100644 index e540549..0000000 --- a/roles/tripleo_undercloud_backup/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_undercloud_backup diff --git a/roles/tripleo_undercloud_install/README.md b/roles/tripleo_undercloud_install/README.md deleted file mode 100644 index 8284447..0000000 --- a/roles/tripleo_undercloud_install/README.md +++ /dev/null @@ -1,59 +0,0 @@ -tripleo_undercloud_install -========================== - -A role to run the install of a TripleO undercloud. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_undercloud_install_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_undercloud_install_dry_run`: (Boolean) Flag to add --dry-run to the install. Default: false -* `tripleo_undercloud_install_force_stack_update`: (Boolean) Flag to add --force-stack-update to the install. Default: false -* `tripleo_undercloud_install_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_undercloud_install_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_install_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_undercloud_install_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_undercloud_install_inflight_validations`: (Boolean) Flag to add --inflight-validations to the install. Default: false -* `tripleo_undercloud_install_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_undercloud_install_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_undercloud_install_no_validations`: (Boolean) Flag to add --no-validations to the install. Default: false -* `tripleo_undercloud_install_poll`: (Integer) Number of seconds to wait between checks to see if the install command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_undercloud_install_reproducer_command`: (Boolean) Flag to create a reproducer script including the Ansible command to re-run deployment playbooks. -* `tripleo_undercloud_install_timeout`: (Integer) Timeout for the install command. Default: 7200 -* `tripleo_undercloud_install_yes`: (Boolean) Flag to add --yes to the install. Default: false -* `tripleo_undercloud_install_log`: (String) Install log file path. Default: "{{ tripleo_undercloud_install_home_dir }}/undercloud_install.log" - -Output Variables ----------------- - -* `tripleo_undercloud_install_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example install execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Install undercloud - import_role: - name: tripleo_undercloud_install - vars: - tripleo_undercloud_install_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_undercloud_install/defaults/main.yml b/roles/tripleo_undercloud_install/defaults/main.yml deleted file mode 100644 index 0dc9f50..0000000 --- a/roles/tripleo_undercloud_install/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -# defaults file for tripleo_undercloud_install -openstack_bin: openstack -tripleo_undercloud_install_debug: false -tripleo_undercloud_install_dry_run: false -tripleo_undercloud_install_force_stack_update: false -tripleo_undercloud_install_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_undercloud_install_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_undercloud_install_home_dir: "{{ ansible_env.HOME }}" -tripleo_undercloud_install_inflight_validations: false -tripleo_undercloud_install_log_combine: true -tripleo_undercloud_install_log_output: true -tripleo_undercloud_install_no_validations: false -tripleo_undercloud_install_poll: 10 -tripleo_undercloud_install_reproducer_command: false -tripleo_undercloud_install_timeout: 7200 -tripleo_undercloud_install_yes: false -tripleo_undercloud_install_log: "{{ tripleo_undercloud_install_home_dir }}/undercloud_install.log" diff --git a/roles/tripleo_undercloud_install/meta/main.yml b/roles/tripleo_undercloud_install/meta/main.yml deleted file mode 100644 index a049248..0000000 --- a/roles/tripleo_undercloud_install/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_undercloud_install - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_undercloud_install - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_undercloud_install/molecule/default/converge.yml b/roles/tripleo_undercloud_install/molecule/default/converge.yml deleted file mode 100644 index 00aa326..0000000 --- a/roles/tripleo_undercloud_install/molecule/default/converge.yml +++ /dev/null @@ -1,88 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_undercloud_install_debug: true - tripleo_undercloud_install_log_output: false - tripleo_undercloud_install_log_combine: false - tripleo_undercloud_install_poll: 1 - tasks: - - - name: "Include tripleo_undercloud_install" - include_role: - name: "tripleo_undercloud_install" - - - name: Check role - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install" - - - name: Check parameter "tripleo_undercloud_install_force_stack_update" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_force_stack_update: true - - - name: Assert "tripleo_undercloud_install_force_stack_update" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --force-stack-update" - - - name: Check parameter "tripleo_undercloud_install_no_validations" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_no_validations: true - - - name: Assert "tripleo_undercloud_install_no_validations" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --no-validations" - - - name: Check parameter "tripleo_undercloud_install_inflight_validations" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_inflight_validations: true - - - name: Assert "tripleo_undercloud_install_inflight_validations" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --inflight-validations" - - - name: Check parameter "tripleo_undercloud_install_dry_run" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_dry_run: true - - - name: Assert "tripleo_undercloud_install_dry_run" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --dry-run" - - - name: Check parameter "tripleo_undercloud_install_yes" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_yes: true - - - name: Assert "tripleo_undercloud_install_yes" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --yes" - - - name: Check parameter "tripleo_undercloud_install_reproducer_command" - include_role: - name: "tripleo_undercloud_install" - vars: - tripleo_undercloud_install_reproducer_command: true - - - name: Assert "tripleo_undercloud_install_reproducer_command" - assert: - that: - - tripleo_undercloud_install_result.stdout == "undercloud install --reproduce-command" diff --git a/roles/tripleo_undercloud_install/molecule/default/molecule.yml b/roles/tripleo_undercloud_install/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_undercloud_install/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_undercloud_install/molecule/default/prepare.yml b/roles/tripleo_undercloud_install/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_undercloud_install/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_undercloud_install/tasks/main.yml b/roles/tripleo_undercloud_install/tasks/main.yml deleted file mode 100644 index 40b7bec..0000000 --- a/roles/tripleo_undercloud_install/tasks/main.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -- name: Setup undercloud install facts - set_fact: - _install_cmd: >- - {{ openstack_bin }} undercloud install - {{ tripleo_undercloud_install_force_stack_update | ternary("--force-stack-update", '') }} - {{ tripleo_undercloud_install_no_validations | ternary("--no-validations", '') }} - {{ tripleo_undercloud_install_inflight_validations | ternary("--inflight-validations", '') }} - {{ tripleo_undercloud_install_dry_run | ternary("--dry-run", '') }} - {{ tripleo_undercloud_install_yes | ternary("--yes", '') }} - {{ tripleo_undercloud_install_reproducer_command | ternary("--reproduce-command", '') }} - {{ tripleo_undercloud_install_log_output | ternary((">" ~ tripleo_undercloud_install_log), '') }} - {{ tripleo_undercloud_install_log_combine | ternary("2>&1", '') }} - _install_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_undercloud_install_log }}" - when: tripleo_undercloud_install_log_output|bool - -- name: Show debug information - when: tripleo_undercloud_install_debug|bool - block: - - name: Show the undercloud install command - debug: - var: _install_cmd - - - name: Show the undercloud install environment - debug: - var: _install_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_undercloud_install_home_dir }}/tripleo_undercloud_install.sh" - shell_command: "{{ _install_cmd }}" - shell_environment: "{{ _install_env }}" - when: tripleo_undercloud_install_generate_scripts|bool - -- name: undercloud install - shell: "{{ _install_cmd }}" # noqa 305 - environment: "{{ _install_env }}" - args: - chdir: "{{ tripleo_undercloud_install_home_dir }}" - async: "{{ tripleo_undercloud_install_timeout }}" - poll: "{{ tripleo_undercloud_install_poll }}" - register: tripleo_undercloud_install_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_undercloud_install_generate_scripts_only|bool diff --git a/roles/tripleo_undercloud_install/tests/inventory b/roles/tripleo_undercloud_install/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_undercloud_install/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_undercloud_install/tests/test.yml b/roles/tripleo_undercloud_install/tests/test.yml deleted file mode 100644 index 4630bdc..0000000 --- a/roles/tripleo_undercloud_install/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_undercloud_install diff --git a/roles/tripleo_undercloud_minion_install/README.md b/roles/tripleo_undercloud_minion_install/README.md deleted file mode 100644 index 7a36d6f..0000000 --- a/roles/tripleo_undercloud_minion_install/README.md +++ /dev/null @@ -1,57 +0,0 @@ -tripleo_undercloud_minion_install -========================== - -A role to run the install a TripleO undercloud minion. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_undercloud_minion_install_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_undercloud_minion_install_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_undercloud_minion_install_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_minion_install_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_undercloud_minion_install_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_undercloud_minion_install_dry_run`: (Boolean) Flag to add --dry-run to the install. Default: false -* `tripleo_undercloud_minion_install_force_stack_update`: (Boolean) Flag to add --force-stack-update to the install. Default: false -* `tripleo_undercloud_minion_install_no_validations`: (Boolean) Flag to add --no-validations to the install. Default: false -* `tripleo_undercloud_minion_install_poll`: (Integer) Number of seconds to wait between checks to see if the install command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_undercloud_minion_install_timeout`: (Integer) Timeout for the install command. Default: 7200 -* `tripleo_undercloud_minion_install_yes`: (Boolean) Flag to add --yes to the install. Default: false -* `tripleo_undercloud_minion_install_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_undercloud_minion_install_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_undercloud_minion_install_log`: (String) Install log file path. Default: "{{ tripleo_undercloud_minion_install_home_dir }}/undercloud_minion_install.log" - -Output Variables ----------------- - -* `tripleo_undercloud_minion_install_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example install execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Install undercloud minion - import_role: - name: tripleo_undercloud_minion_install - vars: - tripleo_undercloud_minion_install_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_undercloud_minion_install/defaults/main.yml b/roles/tripleo_undercloud_minion_install/defaults/main.yml deleted file mode 100644 index c7ab3f0..0000000 --- a/roles/tripleo_undercloud_minion_install/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -# defaults file for tripleo_undercloud_minion_install ---- -openstack_bin: openstack -tripleo_undercloud_minion_install_debug: false -tripleo_undercloud_minion_install_dry_run: false -tripleo_undercloud_minion_install_force_stack_update: false -tripleo_undercloud_minion_install_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_undercloud_minion_install_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_undercloud_minion_install_home_dir: "{{ ansible_env.HOME }}" -tripleo_undercloud_minion_install_log: "{{ tripleo_undercloud_minion_install_home_dir }}/undercloud_minion_install.log" -tripleo_undercloud_minion_install_log_combine: true -tripleo_undercloud_minion_install_log_output: true -tripleo_undercloud_minion_install_no_validations: false -tripleo_undercloud_minion_install_poll: 10 -tripleo_undercloud_minion_install_timeout: 7200 -tripleo_undercloud_minion_install_yes: false diff --git a/roles/tripleo_undercloud_minion_install/meta/main.yml b/roles/tripleo_undercloud_minion_install/meta/main.yml deleted file mode 100644 index 9b9ef52..0000000 --- a/roles/tripleo_undercloud_minion_install/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_undercloud_minion_install - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_undercloud_minion_install - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_undercloud_minion_install/molecule/default/converge.yml b/roles/tripleo_undercloud_minion_install/molecule/default/converge.yml deleted file mode 100644 index fc885e7..0000000 --- a/roles/tripleo_undercloud_minion_install/molecule/default/converge.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_undercloud_minion_install_debug: true - tripleo_undercloud_minion_install_log_output: false - tripleo_undercloud_minion_install_log_combine: false - tripleo_undercloud_minion_install_poll: 1 - tasks: - - - name: "Include tripleo_undercloud_minion_install" - include_role: - name: "tripleo_undercloud_minion_install" - - - name: Check role - assert: - that: - - tripleo_undercloud_minion_install_result.stdout == "undercloud minion install" - - - name: Check parameter "tripleo_undercloud_minion_install_force_stack_update" - include_role: - name: "tripleo_undercloud_minion_install" - vars: - tripleo_undercloud_minion_install_force_stack_update: true - - - name: Assert "tripleo_undercloud_minion_install_force_stack_update" - assert: - that: - - tripleo_undercloud_minion_install_result.stdout == "undercloud minion install --force-stack-update" - - - name: Check parameter "tripleo_undercloud_minion_install_no_validations" - include_role: - name: "tripleo_undercloud_minion_install" - vars: - tripleo_undercloud_minion_install_no_validations: true - - - name: Assert "tripleo_undercloud_minion_install_no_validations" - assert: - that: - - tripleo_undercloud_minion_install_result.stdout == "undercloud minion install --no-validations" - - - name: Check parameter "tripleo_undercloud_minion_install_dry_run" - include_role: - name: "tripleo_undercloud_minion_install" - vars: - tripleo_undercloud_minion_install_dry_run: true - - - name: Assert "tripleo_undercloud_minion_install_dry_run" - assert: - that: - - tripleo_undercloud_minion_install_result.stdout == "undercloud minion install --dry-run" - - - name: Check parameter "tripleo_undercloud_minion_install_yes" - include_role: - name: "tripleo_undercloud_minion_install" - vars: - tripleo_undercloud_minion_install_yes: true - - - name: Assert "tripleo_undercloud_minion_install_yes" - assert: - that: - - tripleo_undercloud_minion_install_result.stdout == "undercloud minion install --yes" diff --git a/roles/tripleo_undercloud_minion_install/molecule/default/molecule.yml b/roles/tripleo_undercloud_minion_install/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_undercloud_minion_install/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_undercloud_minion_install/molecule/default/prepare.yml b/roles/tripleo_undercloud_minion_install/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_undercloud_minion_install/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_undercloud_minion_install/tasks/main.yml b/roles/tripleo_undercloud_minion_install/tasks/main.yml deleted file mode 100644 index 46a5b80..0000000 --- a/roles/tripleo_undercloud_minion_install/tasks/main.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -- name: Setup undercloud minion install facts - set_fact: - _install_cmd: >- - {{ openstack_bin }} undercloud minion install - {{ tripleo_undercloud_minion_install_force_stack_update | ternary("--force-stack-update", '') }} - {{ tripleo_undercloud_minion_install_no_validations | ternary("--no-validations", '') }} - {{ tripleo_undercloud_minion_install_dry_run | ternary("--dry-run", '') }} - {{ tripleo_undercloud_minion_install_yes | ternary("--yes", '') }} - {{ tripleo_undercloud_minion_install_log_output | ternary((">" ~ tripleo_undercloud_minion_install_log), '') }} - {{ tripleo_undercloud_minion_install_log_combine | ternary("2>&1", '') }} - _install_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_undercloud_minion_install_log }}" - when: tripleo_undercloud_minion_install_log_output|bool - -- name: Show debug information - when: tripleo_undercloud_minion_install_debug|bool - block: - - name: Show the underclound minion install command - debug: - var: _install_cmd - - - name: Show the underclound minion install environment - debug: - var: _install_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_undercloud_minion_install_home_dir }}/tripleo_undercloud_minion_install.sh" - shell_command: "{{ _install_cmd }}" - shell_environment: "{{ _install_env }}" - when: tripleo_undercloud_minion_install_generate_scripts|bool - -- name: undercloud minion install - shell: "{{ _install_cmd }}" # noqa 305 - environment: "{{ _install_env }}" - args: - chdir: "{{ tripleo_undercloud_minion_install_home_dir }}" - async: "{{ tripleo_undercloud_minion_install_timeout }}" - poll: "{{ tripleo_undercloud_minion_install_poll }}" - register: tripleo_undercloud_minion_install_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_undercloud_minion_install_generate_scripts_only|bool diff --git a/roles/tripleo_undercloud_minion_install/tests/inventory b/roles/tripleo_undercloud_minion_install/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_undercloud_minion_install/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_undercloud_minion_install/tests/test.yml b/roles/tripleo_undercloud_minion_install/tests/test.yml deleted file mode 100644 index 2ae272d..0000000 --- a/roles/tripleo_undercloud_minion_install/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_undercloud_minion_install diff --git a/roles/tripleo_undercloud_minion_upgrade/README.md b/roles/tripleo_undercloud_minion_upgrade/README.md deleted file mode 100644 index f7c4520..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/README.md +++ /dev/null @@ -1,58 +0,0 @@ -tripleo_undercloud_minion_upgrade -================================= - -A role to run the upgrade of a TripleO undercloud minion. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_undercloud_minion_upgrade_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_undercloud_minion_upgrade_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_undercloud_minion_upgrade_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_minion_upgrade_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_undercloud_minion_upgrade_dry_run`: (Boolean) Flag to add --dry-run to the upgrade command. Default: false -* `tripleo_undercloud_minion_upgrade_force_stack_update`: (Boolean) Flag to add --force-stack-update to the upgrade command. Default: false -* `tripleo_undercloud_minion_upgrade_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_undercloud_minion_upgrade_inflight_validations`: (Boolean) Flag to add --inflight-validations to the upgrade. Default: false -* `tripleo_undercloud_minion_upgrade_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_undercloud_minion_upgrade_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_undercloud_minion_upgrade_no_validations`: (Boolean) Flag to add --no-validations to the upgrade. Default: false -* `tripleo_undercloud_minion_upgrade_poll`: (Integer) Number of seconds to wait between checks to see if the upgrade command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_undercloud_minion_upgrade_timeout`: (Integer) Timeout for the upgrade command. Default: 7200 -* `tripleo_undercloud_minion_upgrade_yes`: (Boolean) Flag to add --yes to the upgrade. Default: false -* `tripleo_undercloud_minion_upgrade_log`: (String) Upgrade log file path. Default: "{{ tripleo_undercloud_minion_upgrade_home_dir }}/undercloud_minion_upgrade.log" - -Output Variables ----------------- - -* `tripleo_undercloud_minion_upgrade_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example upgrade execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Upgrade undercloud minion - import_role: - name: tripleo_undercloud_minion_upgrade - vars: - tripleo_undercloud_minion_upgrade_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_undercloud_minion_upgrade/defaults/main.yml b/roles/tripleo_undercloud_minion_upgrade/defaults/main.yml deleted file mode 100644 index 49f9a96..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/defaults/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -# defaults file for tripleo_undercloud_minion_upgrade ---- -openstack_bin: openstack -tripleo_undercloud_minion_upgrade_debug: false -tripleo_undercloud_minion_upgrade_dry_run: false -tripleo_undercloud_minion_upgrade_force_stack_update: false -tripleo_undercloud_minion_upgrade_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_undercloud_minion_upgrade_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_undercloud_minion_upgrade_home_dir: "{{ ansible_env.HOME }}" -tripleo_undercloud_minion_upgrade_log: "{{ tripleo_undercloud_minion_upgrade_home_dir }}/undercloud_minion_upgrade.log" -tripleo_undercloud_minion_upgrade_log_combine: true -tripleo_undercloud_minion_upgrade_log_output: true -tripleo_undercloud_minion_upgrade_no_validations: false -tripleo_undercloud_minion_upgrade_poll: 10 -tripleo_undercloud_minion_upgrade_timeout: 7200 -tripleo_undercloud_minion_upgrade_yes: false diff --git a/roles/tripleo_undercloud_minion_upgrade/meta/main.yml b/roles/tripleo_undercloud_minion_upgrade/meta/main.yml deleted file mode 100644 index 90ed85c..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_undercloud_minion_upgrade - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_undercloud_minion_upgrade - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_undercloud_minion_upgrade/molecule/default/converge.yml b/roles/tripleo_undercloud_minion_upgrade/molecule/default/converge.yml deleted file mode 100644 index 48bb6ff..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/molecule/default/converge.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_undercloud_minion_upgrade_debug: true - tripleo_undercloud_minion_upgrade_log_output: false - tripleo_undercloud_minion_upgrade_log_combine: false - tripleo_undercloud_minion_upgrade_poll: 1 - tasks: - - - name: "Include tripleo_undercloud_minion_upgrade" - include_role: - name: "tripleo_undercloud_minion_upgrade" - - - name: Check role - assert: - that: - - tripleo_undercloud_minion_upgrade_result.stdout == "undercloud minion upgrade" - - - name: Check parameter "tripleo_undercloud_minion_upgrade_force_stack_update" - include_role: - name: "tripleo_undercloud_minion_upgrade" - vars: - tripleo_undercloud_minion_upgrade_force_stack_update: true - - - name: Assert "tripleo_undercloud_minion_upgrade_force_stack_update" - assert: - that: - - tripleo_undercloud_minion_upgrade_result.stdout == "undercloud minion upgrade --force-stack-update" - - - name: Check parameter "tripleo_undercloud_minion_upgrade_no_validations" - include_role: - name: "tripleo_undercloud_minion_upgrade" - vars: - tripleo_undercloud_minion_upgrade_no_validations: true - - - name: Assert "tripleo_undercloud_minion_upgrade_no_validations" - assert: - that: - - tripleo_undercloud_minion_upgrade_result.stdout == "undercloud minion upgrade --no-validations" - - - name: Check parameter "tripleo_undercloud_minion_upgrade_dry_run" - include_role: - name: "tripleo_undercloud_minion_upgrade" - vars: - tripleo_undercloud_minion_upgrade_dry_run: true - - - name: Assert "tripleo_undercloud_minion_upgrade_dry_run" - assert: - that: - - tripleo_undercloud_minion_upgrade_result.stdout == "undercloud minion upgrade --dry-run" - - - name: Check parameter "tripleo_undercloud_minion_upgrade_yes" - include_role: - name: "tripleo_undercloud_minion_upgrade" - vars: - tripleo_undercloud_minion_upgrade_yes: true - - - name: Assert "tripleo_undercloud_minion_upgrade_yes" - assert: - that: - - tripleo_undercloud_minion_upgrade_result.stdout == "undercloud minion upgrade --yes" diff --git a/roles/tripleo_undercloud_minion_upgrade/molecule/default/molecule.yml b/roles/tripleo_undercloud_minion_upgrade/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_undercloud_minion_upgrade/molecule/default/prepare.yml b/roles/tripleo_undercloud_minion_upgrade/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_undercloud_minion_upgrade/tasks/main.yml b/roles/tripleo_undercloud_minion_upgrade/tasks/main.yml deleted file mode 100644 index ac015e1..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/tasks/main.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -- name: Setup undercloud minion upgrade facts - set_fact: - _upgrade_cmd: >- - {{ openstack_bin }} undercloud minion upgrade - {{ tripleo_undercloud_minion_upgrade_force_stack_update | ternary("--force-stack-update", '') }} - {{ tripleo_undercloud_minion_upgrade_no_validations | ternary("--no-validations", '') }} - {{ tripleo_undercloud_minion_upgrade_dry_run | ternary("--dry-run", '') }} - {{ tripleo_undercloud_minion_upgrade_yes | ternary("--yes", '') }} - {{ tripleo_undercloud_minion_upgrade_log_output | ternary((">" ~ tripleo_undercloud_minion_upgrade_log), '') }} - {{ tripleo_undercloud_minion_upgrade_log_combine | ternary("2>&1", '') }} - _upgrade_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_undercloud_minion_upgrade_log }}" - when: tripleo_undercloud_minion_upgrade_log_output|bool - -- name: Show debug information - when: tripleo_undercloud_minion_upgrade_debug|bool - block: - - name: Show the underclound minion upgrade command - debug: - var: _upgrade_cmd - - - name: Show the underclound minion upgrade environment - debug: - var: _upgrade_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_undercloud_minion_upgrade_home_dir }}/tripleo_undercloud_minion_upgrade.sh" - shell_command: "{{ _upgrade_cmd }}" - shell_environment: "{{ _upgrade_env }}" - when: tripleo_undercloud_minion_upgrade_generate_scripts|bool - -- name: undercloud minion upgrade - shell: "{{ _upgrade_cmd }}" # noqa 305 - environment: "{{ _upgrade_env }}" - args: - chdir: "{{ tripleo_undercloud_minion_upgrade_home_dir }}" - async: "{{ tripleo_undercloud_minion_upgrade_timeout }}" - poll: "{{ tripleo_undercloud_minion_upgrade_poll }}" - register: tripleo_undercloud_minion_upgrade_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_undercloud_minion_upgrade_generate_scripts_only|bool diff --git a/roles/tripleo_undercloud_minion_upgrade/tests/inventory b/roles/tripleo_undercloud_minion_upgrade/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_undercloud_minion_upgrade/tests/test.yml b/roles/tripleo_undercloud_minion_upgrade/tests/test.yml deleted file mode 100644 index e4b1162..0000000 --- a/roles/tripleo_undercloud_minion_upgrade/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_undercloud_minion_upgrade diff --git a/roles/tripleo_undercloud_upgrade/README.md b/roles/tripleo_undercloud_upgrade/README.md deleted file mode 100644 index 2a2cc33..0000000 --- a/roles/tripleo_undercloud_upgrade/README.md +++ /dev/null @@ -1,59 +0,0 @@ -tripleo_undercloud_upgrade -========================== - -A role to run the upgrade of a TripleO undercloud. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_undercloud_upgrade_debug`: (Boolean) Flag used to enable the debug version of commands. Default: false -* `tripleo_undercloud_upgrade_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_undercloud_upgrade_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_undercloud_upgrade_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_undercloud_upgrade_dry_run`: (Boolean) Flag to add --dry-run to the upgrade command. Default: false -* `tripleo_undercloud_upgrade_force_stack_update`: (Boolean) Flag to add --force-stack-update to the upgrade command. Default: false -* `tripleo_undercloud_upgrade_home_dir`: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}" -* `tripleo_undercloud_upgrade_inflight_validations`: (Boolean) Flag to add --inflight-validations to the upgrade. Default: false -* `tripleo_undercloud_upgrade_log_combine`: (Boolean) Flag to combine stdout and stderr in the logfile. Default: true -* `tripleo_undercloud_upgrade_log_output`: (Boolean) Flag to log the output to a file rather than show it in the ansible output. Default: true -* `tripleo_undercloud_upgrade_no_validations`: (Boolean) Flag to add --no-validations to the upgrade. Default: false -* `tripleo_undercloud_upgrade_poll`: (Integer) Number of seconds to wait between checks to see if the upgrade command has completed. This should be set to a value greater or equal to 1. Default: 10 -* `tripleo_undercloud_upgrade_reproducer_command`: (Boolean) Flag to create a reproducer script including the Ansible command to re-run deployment playbooks. -* `tripleo_undercloud_upgrade_timeout`: (Integer) Timeout for the upgrade command. Default: 7200 -* `tripleo_undercloud_upgrade_yes`: (Boolean) Flag to add --yes to the upgrade. Default: false -* `tripleo_undercloud_upgrade_log`: (String) Upgrade log file path. Default: "{{ tripleo_undercloud_upgrade_home_dir }}/undercloud_upgrade.log" - -Output Variables ----------------- - -* `tripleo_undercloud_upgrade_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example upgrade execution playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Upgrade undercloud - import_role: - name: tripleo_undercloud_upgrade - vars: - tripleo_undercloud_upgrade_debug: true -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_undercloud_upgrade/defaults/main.yml b/roles/tripleo_undercloud_upgrade/defaults/main.yml deleted file mode 100644 index b4d95a4..0000000 --- a/roles/tripleo_undercloud_upgrade/defaults/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# defaults file for tripleo-undercloud ---- -openstack_bin: openstack -tripleo_undercloud_upgrade_debug: false -tripleo_undercloud_upgrade_dry_run: false -tripleo_undercloud_upgrade_force_stack_update: false -tripleo_undercloud_upgrade_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_undercloud_upgrade_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_undercloud_upgrade_home_dir: "{{ ansible_env.HOME }}" -tripleo_undercloud_upgrade_inflight_validations: false -tripleo_undercloud_upgrade_log: "{{ tripleo_undercloud_upgrade_home_dir }}/undercloud_upgrade.log" -tripleo_undercloud_upgrade_log_combine: true -tripleo_undercloud_upgrade_log_output: true -tripleo_undercloud_upgrade_no_validations: false -tripleo_undercloud_upgrade_poll: 10 -tripleo_undercloud_upgrade_reproducer_command: false -tripleo_undercloud_upgrade_timeout: 7200 -tripleo_undercloud_upgrade_yes: false diff --git a/roles/tripleo_undercloud_upgrade/meta/main.yml b/roles/tripleo_undercloud_upgrade/meta/main.yml deleted file mode 100644 index 15e9ab0..0000000 --- a/roles/tripleo_undercloud_upgrade/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_undercloud_upgrade - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_undercloud_upgrade - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_undercloud_upgrade/molecule/default/converge.yml b/roles/tripleo_undercloud_upgrade/molecule/default/converge.yml deleted file mode 100644 index 4dca1e5..0000000 --- a/roles/tripleo_undercloud_upgrade/molecule/default/converge.yml +++ /dev/null @@ -1,88 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_undercloud_upgrade_debug: true - tripleo_undercloud_upgrade_log_output: false - tripleo_undercloud_upgrade_log_combine: false - tripleo_undercloud_upgrade_poll: 1 - tasks: - - - name: "Include tripleo_undercloud_upgrade" - include_role: - name: "tripleo_undercloud_upgrade" - - - name: Check role - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade" - - - name: Check parameter "tripleo_undercloud_upgrade_force_stack_update" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_force_stack_update: true - - - name: Assert "tripleo_undercloud_upgrade_force_stack_update" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --force-stack-update" - - - name: Check parameter "tripleo_undercloud_upgrade_no_validations" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_no_validations: true - - - name: Assert "tripleo_undercloud_upgrade_no_validations" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --no-validations" - - - name: Check parameter "tripleo_undercloud_upgrade_inflight_validations" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_inflight_validations: true - - - name: Assert "tripleo_undercloud_upgrade_inflight_validations" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --inflight-validations" - - - name: Check parameter "tripleo_undercloud_upgrade_dry_run" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_dry_run: true - - - name: Assert "tripleo_undercloud_upgrade_dry_run" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --dry-run" - - - name: Check parameter "tripleo_undercloud_upgrade_yes" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_yes: true - - - name: Assert "tripleo_undercloud_upgrade_yes" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --yes" - - - name: Check parameter "tripleo_undercloud_upgrade_reproducer_command" - include_role: - name: "tripleo_undercloud_upgrade" - vars: - tripleo_undercloud_upgrade_reproducer_command: true - - - name: Assert "tripleo_undercloud_upgrade_reproducer_command" - assert: - that: - - tripleo_undercloud_upgrade_result.stdout == "undercloud upgrade --reproduce-command" diff --git a/roles/tripleo_undercloud_upgrade/molecule/default/molecule.yml b/roles/tripleo_undercloud_upgrade/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_undercloud_upgrade/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_undercloud_upgrade/molecule/default/prepare.yml b/roles/tripleo_undercloud_upgrade/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_undercloud_upgrade/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_undercloud_upgrade/tasks/main.yml b/roles/tripleo_undercloud_upgrade/tasks/main.yml deleted file mode 100644 index 245d3c7..0000000 --- a/roles/tripleo_undercloud_upgrade/tasks/main.yml +++ /dev/null @@ -1,50 +0,0 @@ ---- -- name: Setup undercloud upgrade facts - set_fact: - _upgrade_cmd: >- - {{ openstack_bin }} undercloud upgrade - {{ tripleo_undercloud_upgrade_force_stack_update | ternary("--force-stack-update", '') }} - {{ tripleo_undercloud_upgrade_no_validations | ternary("--no-validations", '') }} - {{ tripleo_undercloud_upgrade_inflight_validations | ternary("--inflight-validations", '') }} - {{ tripleo_undercloud_upgrade_dry_run | ternary("--dry-run", '') }} - {{ tripleo_undercloud_upgrade_yes | ternary("--yes", '') }} - {{ tripleo_undercloud_upgrade_reproducer_command | ternary("--reproduce-command", '') }} - {{ tripleo_undercloud_upgrade_log_output | ternary((">" ~ tripleo_undercloud_upgrade_log), '') }} - {{ tripleo_undercloud_upgrade_log_combine | ternary("2>&1", '') }} - _upgrade_env: {} - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_undercloud_upgrade_log }}" - when: tripleo_undercloud_upgrade_log_output|bool - -- name: Show debug information - when: tripleo_undercloud_upgrade_debug|bool - block: - - name: Show the undercloud upgrade command - debug: - var: _upgrade_cmd - - - name: Show the undercloud upgrade environment - debug: - var: _upgrade_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_undercloud_upgrade_home_dir }}/tripleo_undercloud_upgrade.sh" - shell_command: "{{ _upgrade_cmd }}" - shell_environment: "{{ _skel_env }}" - when: tripleo_undercloud_upgrade_generate_scripts|bool - -- name: undercloud upgrade - shell: "{{ _upgrade_cmd }}" # noqa 305 - environment: "{{ _upgrade_env }}" - args: - chdir: "{{ tripleo_undercloud_upgrade_home_dir }}" - async: "{{ tripleo_undercloud_upgrade_timeout }}" - poll: "{{ tripleo_undercloud_upgrade_poll }}" - register: tripleo_undercloud_upgrade_result - changed_when: true - when: - - not ansible_check_mode|bool - - not tripleo_undercloud_upgrade_generate_scripts_only|bool diff --git a/roles/tripleo_undercloud_upgrade/tests/inventory b/roles/tripleo_undercloud_upgrade/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_undercloud_upgrade/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_undercloud_upgrade/tests/test.yml b/roles/tripleo_undercloud_upgrade/tests/test.yml deleted file mode 100644 index be9c2c6..0000000 --- a/roles/tripleo_undercloud_upgrade/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - tripleo_undercloud_upgrade diff --git a/roles/tripleo_upgrade/README.md b/roles/tripleo_upgrade/README.md deleted file mode 100644 index ec1beb2..0000000 --- a/roles/tripleo_upgrade/README.md +++ /dev/null @@ -1,85 +0,0 @@ -tripleo_upgrade -============== - -A role to execute a single node standalone upgrade. - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_upgrade_become`: (Boolean) Execute command with escalated privileges. Default: true -* `tripleo_upgrade_cleanup`: (Boolean) Cleanup temporary files after execution. Default: false -* `tripleo_upgrade_control_virtual_ip`: (String) Control plain VIP address. -* `tripleo_upgrade_debug`: (Boolean) Flag to print out the command that is run. Default: false -* `tripleo_upgrade_debug_arg`: (Boolean) Flag for ansible to use -vv. Default: false -* `tripleo_upgrade_generate_scripts`: (Boolean) Write out a shell script that can be used to reproduce the command being executed. By default uses the value of `tripleo_generate_scripts` or False if `tripleo_generate_scripts` is not defined. -* `tripleo_upgrade_generate_scripts_only`: (Boolean) Do not run the actual command - to be used in conjunction with `tripleo_upgrade_generate_scripts`. By default uses the value of `tripleo_generate_scripts_only` or False if `tripleo_generate_scripts_only` is not defined. -* `tripleo_upgrade_deployment_python_interpreter`: (String) Path to a python interpreter for the deployment actions. -* `tripleo_upgrade_deployment_user`: (String) User who is executing the tripleo deployment via sudo. Defaults: "{{ ansible_env.USER }}" -* `tripleo_upgrade_environment_files`: (List) A list of environment file paths for the deployment. -* `tripleo_upgrade_force_stack_create`: (Boolean) Flag to force stack create. Default: false -* `tripleo_upgrade_force_stack_update`: (Boolean) Flag to force stack update. Default: false -* `tripleo_upgrade_heat_api_port`: (Number) Heat API port to use for the installer. -* `tripleo_upgrade_heat_container_image`: (String) Full container image location for the openstack-heat-all container. -* `tripleo_upgrade_heat_user`: (String) User to execute the non-privileged heat-all process. -* `tripleo_upgrade_hieradata_override`: (String) Path to hiera data override file. -* `tripleo_upgrade_home_dir`: (String) Path to the directory to execute the command in. Default: "{{ ansible_env.HOME }}" -* `tripleo_upgrade_inflight_validations`: (Boolean) Flag to enable in-flight validations. Default: false -* `tripleo_upgrade_keep_running`: (Boolean) Flag to keep the heat instance running after the deploy has run. Default: false -* `tripleo_upgrade_local_domain`: (String): Local domain for standalone cloud and the endpoints. -* `tripleo_upgrade_local_ip`: (String) Local IP address to use for the cloud traffic. REQUIRED. -* `tripleo_upgrade_log`: (String) Path to a log file for the command output. Default: "{{ tripleo_upgrade_home_dir }}/overcloud_deploy.log" -* `tripleo_upgrade_log_combine`: (Boolean) Flag to enable capturing stderr with stdout. Default: true -* `tripleo_upgrade_log_output`: (Boolean) Flag to enable logging to a file. Since the output of this command can be large, it is not recommended to disable this. Default: true -* `tripleo_upgrade_networks_file`: (String) File path to a networks file for the deployment. -* `tripleo_upgrade_output_dir`: (String) Directory to write output data to. -* `tripleo_upgrade_output_only`: (String) Flag to skip ansible execution and only output the deployment scripts. Default: false -* `tripleo_upgrade_plan_environment_file`: (String) File path to a plan environment file. -* `tripleo_upgrade_poll`: (Integer) Number of seconds to wait between each checks to see if the deployment command has completed. Default: 10 -* `tripleo_upgrade_public_virtual_ip`: (String) Public network VIP. -* `tripleo_upgrade_roles_file`: (String) File path to an upgrade roles file. -* `tripleo_upgrade_stack`: (String) Name for ephemeral stack. Default: standalone -* `tripleo_upgrade_standalone`: (Boolean) Flag to indicate that a standalone cloud is being deployed. Should be false after the Victoria. Default: false -* `tripleo_upgrade_standalone_role`: (String) Role name to upgrade. Default: Standalone -* `tripleo_upgrade_templates`: (String) Path to the directory containing heat templates for the deployment. Default: /usr/share/openstack-tripleo-heat-templates -* `tripleo_upgrade_timeout`: (Integer) Number in seconds to wait for the ansible execution of the deployment command to finish. This should be larger than the `tripleo_upgrade_timeout_arg` value. Default: 5700 -* `tripleo_upgrade_timeout_arg`: (Integer) Number in minutes for the upgrade to run. Default: 90 -* `tripleo_upgrade_yes`: (Boolean) Flag to skip yes/no prompts. Default: true - -Output Variables ----------------- - -* `tripleo_upgrade_output`: (String) The command standard output. -* `tripleo_upgrade_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example overcloud upgrade execution playbook - -```yaml -- hosts: standalone - gather_facts: true - tasks: - - name: Run standalone upgrade - import_role: - name: tripleo_upgrade - vars: - tripleo_upgrade_local_ip: 192.168.24.2/24 - tripleo_upgrade_environment_files: - - /usr/share/openstack-tripleo-heat-templates/environments/enable-swap.yaml -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_upgrade/defaults/main.yml b/roles/tripleo_upgrade/defaults/main.yml deleted file mode 100644 index dc11ca8..0000000 --- a/roles/tripleo_upgrade/defaults/main.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- -# defaults file for tripleo_upgrade -openstack_bin: openstack -tripleo_upgrade_become: true -tripleo_upgrade_cleanup: false -tripleo_upgrade_control_virtual_ip: -tripleo_upgrade_debug: false -tripleo_upgrade_debug_arg: false -tripleo_upgrade_deployment_python_interpreter: -tripleo_upgrade_deployment_user: "{{ ansible_env.USER }}" -tripleo_upgrade_environment_files: [] -tripleo_upgrade_force_stack_create: false -tripleo_upgrade_force_stack_update: false -tripleo_upgrade_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" -tripleo_upgrade_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}" -tripleo_upgrade_heat_api_port: -tripleo_upgrade_heat_container_image: -tripleo_upgrade_heat_user: -tripleo_upgrade_hieradata_override: -tripleo_upgrade_home_dir: "{{ ansible_env.HOME }}" -tripleo_upgrade_inflight_validations: false -tripleo_upgrade_keep_running: false -tripleo_upgrade_local_domain: -tripleo_upgrade_local_ip: -tripleo_upgrade_log: "{{ tripleo_upgrade_home_dir }}/standalone_upgrade.log" -tripleo_upgrade_log_combine: true -tripleo_upgrade_log_output: true -tripleo_upgrade_networks_file: -tripleo_upgrade_output_dir: -tripleo_upgrade_output_only: false -tripleo_upgrade_override_ansible_cfg: -tripleo_upgrade_plan_environment_file: -tripleo_upgrade_poll: 10 -tripleo_upgrade_public_virtual_ip: -tripleo_upgrade_roles_file: "{{ tripleo_upgrade_templates }}/roles/Standalone.yaml" -tripleo_upgrade_stack: standalone -tripleo_upgrade_standalone: false -tripleo_upgrade_standalone_role: Standalone -tripleo_upgrade_templates: /usr/share/openstack-tripleo-heat-templates -tripleo_upgrade_timeout: 5700 -tripleo_upgrade_timeout_arg: 90 -tripleo_upgrade_yes: true -tripleo_upgrade_reproducer_command: false diff --git a/roles/tripleo_upgrade/meta/main.yml b/roles/tripleo_upgrade/meta/main.yml deleted file mode 100644 index 67d6bea..0000000 --- a/roles/tripleo_upgrade/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_upgrade - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_upgrade - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_upgrade/molecule/default/converge.yml b/roles/tripleo_upgrade/molecule/default/converge.yml deleted file mode 100644 index eb9aacb..0000000 --- a/roles/tripleo_upgrade/molecule/default/converge.yml +++ /dev/null @@ -1,420 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_upgrade_become: false - tripleo_upgrade_debug: true - tripleo_upgrade_log_output: false - tripleo_upgrade_log_combine: false - tripleo_upgrade_poll: 1 - tripleo_upgrade_local_ip: 192.168.24.2/24 - tripleo_upgrade_deployment_user: - tripleo_upgrade_roles_file: - tripleo_upgrade_yes: false - tasks: - - - name: "Include tripleo_upgrade" - include_role: - name: "tripleo_upgrade" - - - name: Check role - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --templates /usr/share/openstack-tripleo-heat-templates " - "--stack standalone --standalone-role Standalone --timeout 90 " - "--local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_stack" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: test - tripleo_upgrade_standalone: true - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - - - name: Assert "tripleo_upgrade_stack" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --standalone --stack test --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_yes" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_yes: true - - - name: Assert "tripleo_upgrade_yes" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --yes --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_output_dir" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_output_dir: /foo - - - name: Assert "tripleo_upgrade_output_dir" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --output-dir /foo --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_output_only" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_output_only: true - - - name: Assert "tripleo_upgrade_output_only" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --output-only --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_environment_files" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_environment_files: - - /foo/bar.yml - - /foo/baz.yml - - - name: Assert "tripleo_upgrade_environment_files" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade -e /foo/bar.yml -e /foo/baz.yml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_roles_file" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_roles_file: roles.yaml - - - name: Assert "tripleo_upgrade_roles_file" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade -r roles.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_networks_file" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_networks_file: net.yaml - - - name: Assert "tripleo_upgrade_networks_file" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade -n net.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_plan_environment_file" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_plan_environment_file: plan.yaml - - - name: Assert "tripleo_upgrade_plan_environment_file" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade -p plan.yaml --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_heat_api_port" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_heat_api_port: 1111 - - - name: Assert "tripleo_upgrade_heat_api_port" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --heat-api-port 1111 --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_heat_container_image" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_heat_container_image: quay.io/tripleomaster/openstack-heat-all:foo - - - name: Assert "tripleo_upgrade_heat_api_port" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --heat-container-image quay.io/tripleomaster/openstack-heat-all:foo --local-ip 192.168.24.2/24" - - - - name: Check parameter "tripleo_upgrade_heat_user" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_heat_user: foo - - - name: Assert "tripleo_upgrade_heat_user" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --heat-user foo --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_deployment_user" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_deployment_user: user - - - name: Assert "tripleo_upgrade_deployment_user" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --deployment-user user --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_deployment_python_interpreter" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_deployment_python_interpreter: python2 - - - name: Assert "tripleo_upgrade_deployment_python_interpreter" - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --deployment-python-interpreter python2 --local-ip 192.168.24.2/24" - - - name: Check parameter "tripleo_upgrade_control_virtual_ip" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_control_virtual_ip: 1.1.1.12 - - - name: Assert "tripleo_upgrade_control_virtual_ip" - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --local-ip 192.168.24.2/24 --control-virtual-ip 1.1.1.12" - - - name: Check parameter "tripleo_upgrade_public_virtual_ip" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_public_virtual_ip: 1.1.1.13 - - - name: Assert "tripleo_upgrade_public_virtual_ip" - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --local-ip 192.168.24.2/24 --public-virtual-ip 1.1.1.13" - - - name: Check parameter "tripleo_upgrade_local_domain" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_local_domain: rh.local - - - name: Assert "tripleo_upgrade_local_domain" - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --local-ip 192.168.24.2/24 --local-domain rh.local" - - - name: Check parameter "tripleo_upgrade_cleanup" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_cleanup: true - - - name: Assert "tripleo_upgrade_cleanup" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --cleanup" - - - name: Check parameter "tripleo_upgrade_hieradata_override" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_hieradata_override: /foo.yml - - - name: Assert "tripleo_upgrade_hieradata_override" - assert: - that: - - tripleo_upgrade_output == - "tripleo upgrade --local-ip 192.168.24.2/24 --hieradata-override /foo.yml" - - - name: Check parameter "tripleo_upgrade_keep_running" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_keep_running: true - - - name: Assert "tripleo_upgrade_keep_running" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --keep-running" - - - name: Check parameter "tripleo_upgrade_inflight_validations" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_inflight_validations: true - - - name: Assert "tripleo_upgrade_inflight_validations" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --inflight-validations" - - - name: Check parameter "tripleo_upgrade_force_stack_create" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_force_stack_create: true - - - name: Assert "tripleo_upgrade_force_stack_create" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --force-stack-create" - - - name: Check parameter "tripleo_upgrade_force_stack_update" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_force_stack_update: true - - - name: Assert "tripleo_upgrade_force_stack_update" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --force-stack-update" - - - name: Check parameter "tripleo_upgrade_reproducer_command" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_reproducer_command: true - - - name: Assert "tripleo_upgrade_reproducer_command" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --local-ip 192.168.24.2/24 --reproduce-command" - - - name: Check parameter "tripleo_upgrade_debug_arg" - include_role: - name: "tripleo_upgrade" - vars: - tripleo_upgrade_templates: - tripleo_upgrade_stack: - tripleo_upgrade_standalone: false - tripleo_upgrade_standalone_role: - tripleo_upgrade_timeout_arg: - tripleo_upgrade_debug_arg: true - - - name: Assert "tripleo_upgrade_debug_arg" - assert: - that: - - tripleo_upgrade_output == "tripleo upgrade --debug --local-ip 192.168.24.2/24" diff --git a/roles/tripleo_upgrade/molecule/default/molecule.yml b/roles/tripleo_upgrade/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_upgrade/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_upgrade/molecule/default/prepare.yml b/roles/tripleo_upgrade/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_upgrade/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_upgrade/tasks/main.yml b/roles/tripleo_upgrade/tasks/main.yml deleted file mode 100644 index de377e1..0000000 --- a/roles/tripleo_upgrade/tasks/main.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -# tasks file for tripleo_upgrade -- name: Validate local ip is set - fail: - msg: "tripleo_upgrade_local_ip must be configured" - when: not tripleo_upgrade_local_ip - -- name: Setup standalone upgrade facts - set_fact: - _upgrade_cmd: >- - {{ openstack_bin }} tripleo upgrade - {{ tripleo_upgrade_debug_arg | ternary('--debug', '') }} - {{ tripleo_upgrade_templates | ternary('--templates $UPGRADE_TEMPLATES', '') }} - {{ tripleo_upgrade_standalone | ternary('--standalone', '') }} - {{ tripleo_upgrade_yes | ternary('--yes', '') }} - {{ tripleo_upgrade_output_dir | ternary('--output-dir $UPGRADE_OUTPUT_DIR', '') }} - {{ tripleo_upgrade_output_only | ternary('--output-only', '') }} - {{ tripleo_upgrade_stack | ternary('--stack $UPGRADE_STACK', '') }} - {{ tripleo_upgrade_standalone_role | ternary('--standalone-role $UPGRADE_STANDALONE_ROLE', '') }} - {{ tripleo_upgrade_timeout_arg | ternary('--timeout $UPGRADE_TIMEOUT_ARG', '') }} - {{ tripleo_upgrade_environment_files | tripleo.operator.shell_arg_list(parameter='-e') }} - {{ tripleo_upgrade_roles_file | ternary('-r $UPGRADE_ROLES_FILE', '') }} - {{ tripleo_upgrade_networks_file | ternary('-n $UPGRADE_NETWORKS_FILE', '') }} - {{ tripleo_upgrade_plan_environment_file | ternary('-p $UPGRADE_PLAN_ENV_FILE', '') }} - {{ tripleo_upgrade_heat_api_port | ternary('--heat-api-port $UPGRADE_HEAT_API_PORT', '') }} - {{ tripleo_upgrade_heat_container_image | ternary('--heat-container-image $UPGRADE_HEAT_CONTAINER_IMAGE', '') }} - {{ tripleo_upgrade_heat_user | ternary('--heat-user $UPGRADE_HEAT_USER', '') }} - {{ tripleo_upgrade_deployment_user | ternary('--deployment-user $UPGRADE_DEPLOYMENT_USER', '') }} - {{ tripleo_upgrade_deployment_python_interpreter | ternary('--deployment-python-interpreter $UPGRADE_PYTHON_INTERPRETER', '') }} - {{ tripleo_upgrade_local_ip | ternary('--local-ip $UPGRADE_LOCAL_IP', '') }} - {{ tripleo_upgrade_control_virtual_ip | ternary('--control-virtual-ip $UPGRADE_CONTROL_VIP', '') }} - {{ tripleo_upgrade_public_virtual_ip | ternary('--public-virtual-ip $UPGRADE_PUBLIC_VIP', '') }} - {{ tripleo_upgrade_local_domain | ternary('--local-domain $UPGRADE_LOCAL_DOMAIN', '') }} - {{ tripleo_upgrade_cleanup | ternary('--cleanup', '') }} - {{ tripleo_upgrade_hieradata_override | ternary('--hieradata-override $UPGRADE_HIERADATA_OVERRIDE', '') }} - {{ tripleo_upgrade_keep_running | ternary('--keep-running', '') }} - {{ tripleo_upgrade_inflight_validations | ternary('--inflight-validations', '') }} - {{ tripleo_upgrade_force_stack_create | ternary('--force-stack-create', '') }} - {{ tripleo_upgrade_force_stack_update | ternary('--force-stack-update', '') }} - {{ tripleo_upgrade_reproducer_command | ternary('--reproduce-command', '') }} - {{ tripleo_upgrade_log_output | ternary((">" ~ tripleo_upgrade_log), '') }} - {{ tripleo_upgrade_log_combine | ternary("2>&1", '') }} - _upgrade_env: - UPGRADE_CONTROL_VIP: "{{ tripleo_upgrade_control_virtual_ip }}" - UPGRADE_DEPLOYMENT_USER: "{{ tripleo_upgrade_deployment_user }}" - UPGRADE_HEAT_API_PORT: "{{ tripleo_upgrade_heat_api_port }}" - UPGRADE_HEAT_CONTAINER_IMAGE: "{{ tripleo_upgrade_heat_container_image }}" - UPGRADE_HEAT_USER: "{{ tripleo_upgrade_heat_user }}" - UPGRADE_HIERADATA_OVERRIDE: "{{ tripleo_upgrade_hieradata_override }}" - UPGRADE_LOCAL_DOMAIN: "{{ tripleo_upgrade_local_domain }}" - UPGRADE_LOCAL_IP: "{{ tripleo_upgrade_local_ip }}" - UPGRADE_NETWORKS_FILE: "{{ tripleo_upgrade_networks_file }}" - UPGRADE_OUTPUT_DIR: "{{ tripleo_upgrade_output_dir }}" - UPGRADE_PLAN_ENV_FILE: "{{ tripleo_upgrade_plan_environment_file }}" - UPGRADE_PUBLIC_VIP: "{{ tripleo_upgrade_public_virtual_ip }}" - UPGRADE_PYTHON_INTERPRETER: "{{ tripleo_upgrade_deployment_python_interpreter }}" - UPGRADE_ROLES_FILE: "{{ tripleo_upgrade_roles_file }}" - UPGRADE_STACK: "{{ tripleo_upgrade_stack }}" - UPGRADE_STANDALONE_ROLE: "{{ tripleo_upgrade_standalone_role }}" - UPGRADE_TEMPLATES: "{{ tripleo_upgrade_templates }}" - UPGRADE_TIMEOUT_ARG: "{{ tripleo_upgrade_timeout_arg }}" - - -- name: Preserve existing log file if exists - timestamp_file: - path: "{{ tripleo_upgrade_log }}" - when: tripleo_upgrade_log_output|bool - -- name: Show debug information - when: tripleo_upgrade_debug|bool - block: - - name: Show the standalone upgrade command - debug: - var: _upgrade_cmd - - - name: Show the standalone upgrade environment - debug: - var: _upgrade_env - -- name: Write reproducer script - tripleo_shell_script: - dest: "{{ tripleo_upgrade_home_dir }}/tripleo_upgrade.sh" - shell_command: "{{ _upgrade_cmd }}" - shell_environment: "{{ _upgrade_env }}" - when: tripleo_upgrade_generate_scripts|bool - -- name: Standalone upgrade - shell: "{{ _upgrade_cmd }}" # noqa 305 - environment: "{{ _upgrade_env }}" - args: - executable: /bin/bash - chdir: "{{ tripleo_upgrade_home_dir }}" - become: "{{ tripleo_upgrade_become }}" - register: tripleo_upgrade_result - async: "{{ tripleo_upgrade_timeout }}" - poll: "{{ tripleo_upgrade_poll }}" - changed_when: false - when: - - not ansible_check_mode|bool - - not tripleo_upgrade_generate_scripts_only|bool - -- name: Set output fact - when: - - tripleo_upgrade_result.stdout is defined - set_fact: - tripleo_upgrade_output: "{{ tripleo_upgrade_result.stdout }}" diff --git a/roles/tripleo_upgrade/tests/inventory b/roles/tripleo_upgrade/tests/inventory deleted file mode 100644 index 2fbb50c..0000000 --- a/roles/tripleo_upgrade/tests/inventory +++ /dev/null @@ -1 +0,0 @@ -localhost diff --git a/roles/tripleo_upgrade/tests/test.yml b/roles/tripleo_upgrade/tests/test.yml deleted file mode 100644 index 395f9e6..0000000 --- a/roles/tripleo_upgrade/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: localhost - roles: - - tripleo_upgrade diff --git a/roles/tripleo_validator_group_info/README.md b/roles/tripleo_validator_group_info/README.md deleted file mode 100644 index 16dc0a2..0000000 --- a/roles/tripleo_validator_group_info/README.md +++ /dev/null @@ -1,44 +0,0 @@ -tripleo_validator_group_info -================================ - -A role to get info of a tripleo validations group - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_validator_group_info_debug`: (Boolean) Flag to print out the debug command. Default: False -* `tripleo_validator_group_info`: (String) Group to gather from - -Output Variables ----------------- - -* `tripleo_validator_group_info_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example validator group info playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Gather validation group info - import_role: - name: tripleo_validator_group_info -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_validator_group_info/defaults/main.yml b/roles/tripleo_validator_group_info/defaults/main.yml deleted file mode 100644 index d4f821a..0000000 --- a/roles/tripleo_validator_group_info/defaults/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -tripleo_validator_group_info_debug: false diff --git a/roles/tripleo_validator_group_info/meta/main.yml b/roles/tripleo_validator_group_info/meta/main.yml deleted file mode 100644 index 69e44ca..0000000 --- a/roles/tripleo_validator_group_info/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_validator_group_info - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_validator_group_info - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_validator_group_info/molecule/default/converge.yml b/roles/tripleo_validator_group_info/molecule/default/converge.yml deleted file mode 100644 index 93c3a36..0000000 --- a/roles/tripleo_validator_group_info/molecule/default/converge.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_validator_show_debug: true - tasks: - - - name: Check parameter "tripleo_validator_group_info" as a single element - include_role: - name: "tripleo_validator_group_info" - - - name: Assert "tripleo_validator_group_info" - assert: - that: - - tripleo_validator_group_info_result.stdout == - "tripleo validator group info" diff --git a/roles/tripleo_validator_group_info/molecule/default/molecule.yml b/roles/tripleo_validator_group_info/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_validator_group_info/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_validator_group_info/molecule/default/prepare.yml b/roles/tripleo_validator_group_info/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_validator_group_info/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_validator_group_info/tasks/main.yml b/roles/tripleo_validator_group_info/tasks/main.yml deleted file mode 100644 index 17135b0..0000000 --- a/roles/tripleo_validator_group_info/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Setup validator group info facts - set_fact: - _validator_group_info_cmd: >- - {{ openstack_bin }} tripleo validator group info - -- name: Show debug information - when: - tripleo_validator_group_info_debug|bool - block: - - name: Show validator group info command - debug: - var: _validator_group_info_cmd - -- name: Show validation group info - shell: "{{ _validator_group_info_cmd }}" - register: tripleo_validator_group_info_result - changed_when: true diff --git a/roles/tripleo_validator_list/README.md b/roles/tripleo_validator_list/README.md deleted file mode 100644 index 140b67f..0000000 --- a/roles/tripleo_validator_list/README.md +++ /dev/null @@ -1,43 +0,0 @@ -tripleo_validator_list -===================== - -A role to list tripleo validations - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_validator_list_debug`: (Boolean) Flag to print out the delete command. Default: False - -Output Variables ----------------- - -* `tripleo_validator_list_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example validator list playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: List validations - import_role: - name: tripleo_validator_list -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_validator_list/defaults/main.yml b/roles/tripleo_validator_list/defaults/main.yml deleted file mode 100644 index f8b3a8a..0000000 --- a/roles/tripleo_validator_list/defaults/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -tripleo_validator_list_debug: false diff --git a/roles/tripleo_validator_list/meta/main.yml b/roles/tripleo_validator_list/meta/main.yml deleted file mode 100644 index 214c6b9..0000000 --- a/roles/tripleo_validator_list/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_validator_list - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_validator_list - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_validator_list/molecule/default/converge.yml b/roles/tripleo_validator_list/molecule/default/converge.yml deleted file mode 100644 index ef7c7e3..0000000 --- a/roles/tripleo_validator_list/molecule/default/converge.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_validator_run_debug: true - tasks: - - - name: Check parameter "tripleo_validator_list" as a list - include_role: - name: "tripleo_validator_list" - - - name: Assert "tripleo_validator_list" - assert: - that: - - tripleo_validator_list_result.stdout == - "tripleo validator list" diff --git a/roles/tripleo_validator_list/molecule/default/molecule.yml b/roles/tripleo_validator_list/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_validator_list/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_validator_list/molecule/default/prepare.yml b/roles/tripleo_validator_list/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_validator_list/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_validator_list/tasks/main.yml b/roles/tripleo_validator_list/tasks/main.yml deleted file mode 100644 index e54dc47..0000000 --- a/roles/tripleo_validator_list/tasks/main.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Setup validator list facts - set_fact: - _validator_list_cmd: >- - {{ openstack_bin }} tripleo validator list - -- name: Show debug information - when: - tripleo_validator_list_debug|bool - block: - - name: Show validator list command - debug: - var: _validator_list_cmd - -- name: List validation(s) - shell: "{{ _validator_list_cmd }}" - register: tripleo_validator_list_result - changed_when: true diff --git a/roles/tripleo_validator_run/README.md b/roles/tripleo_validator_run/README.md deleted file mode 100644 index 1eb08d1..0000000 --- a/roles/tripleo_validator_run/README.md +++ /dev/null @@ -1,51 +0,0 @@ -tripleo_validator_run -===================== - -A role to run tripleo validations - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_validator_run_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_validator_run_workers`: (Integer) Number of workers -* `tripleo_validator_run_extra_vars_file`: (String) Path to an ansible vars file to use when running the validations -* `tripleo_validator_run_validation`: (String) Specific validation to run -* `tripleo_validator_run_group`: (String) Group of validations to run -* `tripleo_validator_run_inventory`: (String) Path to a inventory file - -Output Variables ----------------- - -* `tripleo_validator_run_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example validator run playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Run validations - import_role: - name: tripleo_validator_run - var: - tripleo_validator_run_debug: true - tripleo_validator_run_name: overcloud -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_validator_run/defaults/main.yml b/roles/tripleo_validator_run/defaults/main.yml deleted file mode 100644 index 2e70934..0000000 --- a/roles/tripleo_validator_run/defaults/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -tripleo_validator_run_debug: false -tripleo_validator_run_workers: -tripleo_validator_run_extra_vars: -tripleo_validator_run_extra_vars_file: -tripleo_validator_run_validation: [] -tripleo_validator_run_group: [] -tripleo_validator_run_inventory: diff --git a/roles/tripleo_validator_run/meta/main.yml b/roles/tripleo_validator_run/meta/main.yml deleted file mode 100644 index d493a06..0000000 --- a/roles/tripleo_validator_run/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_validator_run - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_validator_run - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_validator_run/molecule/default/converge.yml b/roles/tripleo_validator_run/molecule/default/converge.yml deleted file mode 100644 index 60d33a4..0000000 --- a/roles/tripleo_validator_run/molecule/default/converge.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_validator_run_debug: true - tasks: - - - name: Check parameter "tripleo_validator_run_validation" as a list - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_validation: - - 'check_disk_space' - - 'check_ram' - - - name: Assert "tripleo_validator_run_validation" - assert: - that: - - tripleo_validator_run_result.stdout == - "tripleo validator run --validation check_disk_space,check_ram" - - - name: Check parameter "tripleo_validator_run_validation" as single element - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_validation: 'check_disk_space' - - - name: Assert "tripleo_validator_run_validation" - assert: - that: - - tripleo_validator_run_result.stdout == - "tripleo validator run --validation check_disk_space" - - - name: Check parameter "tripleo_validator_run_group" as a list - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_group: - - 'no-op' - - 'prep' - - - name: Assert "tripleo_validator_run_group" - assert: - that: - - tripleo_validator_run_result.stdout == - "tripleo validator run --group no-op,prep" - - - name: Check parameter "tripleo_validator_run_group" as single element - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_group: 'no-op' - - - name: Assert "tripleo_validator_run_group" - assert: - that: - - tripleo_validator_run_result.stdout == - "tripleo validator run --group no-op" - - - name: Check parameter "tripleo_validator_run_extra_vars_file" - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_extra_vars_file: '/tmp/foo.json' - tripleo_validator_run_group: 'no-op' - - - name: Assert "tripleo_validator_run_extra_vars_file" - assert: - that: - - tripleo_validator_run_result.stdout == - "tripleo validator run --extra-vars-file /tmp/foo.json --group no-op" - - - name: Check parameter "tripleo_validator_run_workers" - include_role: - name: "tripleo_validator_run" - vars: - tripleo_validator_run_workers: 10 - tripleo_validator_run_group: 'no-op' - - - name: Assert "tripleo_validator_run_workers" - assert: - that: - - tripleo_validator_run_result.stdout == - 'tripleo validator run --workers 10 --group no-op' - - - name: "Catch failed inclusion" - block: - - name: "Include tripleo_validator_run and fail" - include_role: - name: "tripleo_validator_run" - - rescue: - - name: Clear host errors - meta: clear_host_errors - - - name: Status message - debug: - msg: "Successfully caught failure" - - - name: End play - meta: end_play - - - name: Fail the test - fail: - msg: | - tripleo_validator_run didn't properly detect missing param. diff --git a/roles/tripleo_validator_run/molecule/default/molecule.yml b/roles/tripleo_validator_run/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_validator_run/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_validator_run/molecule/default/prepare.yml b/roles/tripleo_validator_run/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_validator_run/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_validator_run/tasks/main.yml b/roles/tripleo_validator_run/tasks/main.yml deleted file mode 100644 index 04fd4d7..0000000 --- a/roles/tripleo_validator_run/tasks/main.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -- name: Fail if we do not pass validation or group - fail: - msg: "Please pass either tripleo_validator_run_validation or tripleo_validator_run_group" - when: - - tripleo_validator_run_validation | length == 0 - - tripleo_validator_run_group | length == 0 - -- name: Fail if we pass validation and group - fail: - msg: "Please pass either tripleo_validator_run_validation OR tripleo_validator_run_group" - when: - - tripleo_validator_run_validation | length != 0 - - tripleo_validator_run_group | length != 0 - -- name: Setup validator run facts - set_fact: - _validator_run_cmd: >- - {{ openstack_bin }} tripleo validator run - {{ tripleo_validator_run_workers | ternary('--workers ' ~ tripleo_validator_run_workers, '') }} - {{ tripleo_validator_run_extra_vars_file | ternary('--extra-vars-file ' ~ tripleo_validator_run_extra_vars_file, '') }} - {{ tripleo_validator_run_validation | ternary('--validation "${TRIPLEO_VALIDATOR_RUN_VALIDATION}"', '') }} - {{ tripleo_validator_run_group | ternary('--group "${TRIPLEO_VALIDATOR_RUN_GROUP}"', '') }} - {{ tripleo_validator_run_inventory | ternary('--inventory ' ~ tripleo_validator_run_inventory, '') }} - _validator_run_env: - TRIPLEO_VALIDATOR_RUN_VALIDATION: >- - {%- if tripleo_validator_run_validation is string -%} - {{ tripleo_validator_run_validation }} - {%- else -%} - {{ tripleo_validator_run_validation | join(',') }} - {%- endif -%} - TRIPLEO_VALIDATOR_RUN_GROUP: >- - {%- if tripleo_validator_run_group is string -%} - {{ tripleo_validator_run_group }} - {%- else -%} - {{ tripleo_validator_run_group | join(',') }} - {%- endif -%} - -- name: Show debug information - when: - tripleo_validator_run_debug|bool - block: - - name: Show validator run environment - debug: - var: _validator_run_env - - name: Show validator run command - debug: - var: _validator_run_cmd - -- name: Run validation - shell: "{{ _validator_run_cmd }}" # noqa 305 - environment: "{{ _validator_run_env }}" - register: tripleo_validator_run_result - changed_when: true diff --git a/roles/tripleo_validator_show/README.md b/roles/tripleo_validator_show/README.md deleted file mode 100644 index 3c1d0f0..0000000 --- a/roles/tripleo_validator_show/README.md +++ /dev/null @@ -1,44 +0,0 @@ -tripleo_validator_show -===================== - -A role to show tripleo validations - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_validator_show_debug`: (Boolean) Flag to print out the delete command. Default: False -* `tripleo_validator_show_validation`: (String) Group of validations to inspect - -Output Variables ----------------- - -* `tripleo_validator_show_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example validator show playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Show validation - import_role: - name: tripleo_validator_show -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_validator_show/defaults/main.yml b/roles/tripleo_validator_show/defaults/main.yml deleted file mode 100644 index bb9b854..0000000 --- a/roles/tripleo_validator_show/defaults/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -tripleo_validator_show_debug: false -tripleo_validator_show_validation: [] diff --git a/roles/tripleo_validator_show/meta/main.yml b/roles/tripleo_validator_show/meta/main.yml deleted file mode 100644 index 842e1e3..0000000 --- a/roles/tripleo_validator_show/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_validator_show - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_validator_show - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_validator_show/molecule/default/converge.yml b/roles/tripleo_validator_show/molecule/default/converge.yml deleted file mode 100644 index 954fccf..0000000 --- a/roles/tripleo_validator_show/molecule/default/converge.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_validator_show_debug: true - tasks: - - - name: Check parameter "tripleo_validator_show_validation" as a single element - include_role: - name: "tripleo_validator_show" - vars: - tripleo_validator_show_validation: - - 'check_ram' - - - name: Assert "tripleo_validator_show_validation" - assert: - that: - - tripleo_validator_show_result.stdout == - "tripleo validator show check_ram" diff --git a/roles/tripleo_validator_show/molecule/default/molecule.yml b/roles/tripleo_validator_show/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_validator_show/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_validator_show/molecule/default/prepare.yml b/roles/tripleo_validator_show/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_validator_show/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_validator_show/tasks/main.yml b/roles/tripleo_validator_show/tasks/main.yml deleted file mode 100644 index f6378b6..0000000 --- a/roles/tripleo_validator_show/tasks/main.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- name: Fail if we do not pass validation - fail: - msg: "Please pass either tripleo_validator_show_validation" - when: - - tripleo_validator_show_validation | length == 0 - -- name: Setup validator show facts - set_fact: - _validator_show_cmd: >- - {{ openstack_bin }} tripleo validator show - {{ tripleo_validator_show_validation | ternary(' "${TRIPLEO_VALIDATOR_SHOW_VALIDATION}"', '') }} - _validator_show_env: - TRIPLEO_VALIDATOR_SHOW_VALIDATION: >- - {%- if tripleo_validator_show_validation is string -%} - {{ tripleo_validator_show_validation }} - {%- else -%} - {{ tripleo_validator_show_validation | join(',') }} - {%- endif -%} - -- name: Show debug information - when: - tripleo_validator_show_debug|bool - block: - - name: Show validator show environment - debug: - var: _validator_show_env - - name: Show validator show command - debug: - var: _validator_show_cmd - -- name: Show validation - shell: "{{ _validator_show_cmd }}" - environment: "{{ _validator_show_env }}" - register: tripleo_validator_show_result - changed_when: true diff --git a/roles/tripleo_validator_show_parameter/README.md b/roles/tripleo_validator_show_parameter/README.md deleted file mode 100644 index 93d13f1..0000000 --- a/roles/tripleo_validator_show_parameter/README.md +++ /dev/null @@ -1,46 +0,0 @@ -tripleo_validator_show_parameter -================================ - -A role to show tripleo validations parameters - -Requirements ------------- - -None. - -Role Variables --------------- - -* `tripleo_validator_show_parameter_debug`: (Boolean) Flag to print out the debug command. Default: False -* `tripleo_validator_show_parameter`: (String) Parameter to inspect - -Output Variables ----------------- - -* `tripleo_validator_show_parameter_result`: Ansible shell execution results - -Dependencies ------------- - -None. - -Example Playbook ----------------- - -Example validator show parameter playbook - -```yaml -- hosts: undercloud - gather_facts: true - tasks: - - name: Show validation parameter - import_role: - name: tripleo_validator_show_parameter - var: - tripleo_validator_show_parameter: foo -``` - -License -------- - -Apache-2.0 diff --git a/roles/tripleo_validator_show_parameter/defaults/main.yml b/roles/tripleo_validator_show_parameter/defaults/main.yml deleted file mode 100644 index 64c3942..0000000 --- a/roles/tripleo_validator_show_parameter/defaults/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -tripleo_validator_show_parameter_debug: false -tripleo_validator_show_parameter: [] -tripleo_validator_show_validation_parameter: [] -tripleo_validator_show_group_parameter: [] diff --git a/roles/tripleo_validator_show_parameter/meta/main.yml b/roles/tripleo_validator_show_parameter/meta/main.yml deleted file mode 100644 index 028fa2c..0000000 --- a/roles/tripleo_validator_show_parameter/meta/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Copyright 2020 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -galaxy_info: - role_name: tripleo_validator_show_parameter - namespace: openstack - author: OpenStack - description: TripleO Operator Role -- tripleo_validator_show_parameter - company: Red Hat - license: Apache-2.0 - min_ansible_version: 2.8 - # - # Provide a list of supported platforms, and for each platform a list of versions. - # If you don't wish to enumerate all versions for a particular platform, use 'all'. - # To view available platforms and versions (or releases), visit: - # https://galaxy.ansible.com/api/v1/platforms/ - # - platforms: - - name: CentOS - versions: - - 7 - - 8 - - galaxy_tags: - - tripleo - - -# List your role dependencies here, one per line. Be sure to remove the '[]' above, -# if you add dependencies to this list. -dependencies: [] diff --git a/roles/tripleo_validator_show_parameter/molecule/default/converge.yml b/roles/tripleo_validator_show_parameter/molecule/default/converge.yml deleted file mode 100644 index 013e086..0000000 --- a/roles/tripleo_validator_show_parameter/molecule/default/converge.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- name: Converge - hosts: all - collections: - - tripleo.operator - vars: - openstack_bin: echo - tripleo_os_cloud: undercloud - tripleo_validator_show_parameter_debug: true - tasks: - - - name: Check parameter "tripleo_validator_show_validation_parameter" as a single element - include_role: - name: "tripleo_validator_show_parameter" - vars: - tripleo_validator_show_validation_parameter: - - 'foo' - - - name: Assert "tripleo_validator_show_validation_parameter" - assert: - that: - - tripleo_validator_show_parameter_result.stdout == - "tripleo validator show parameter --validation foo" - - - name: Check parameter "tripleo_validator_show_group_parameter" as a single element - include_role: - name: "tripleo_validator_show_parameter" - vars: - tripleo_validator_show_group_parameter: - - 'no-op' - - - name: Assert "tripleo_validator_show_group_parameter" - assert: - that: - - tripleo_validator_show_parameter_result.stdout == - "tripleo validator show parameter --group no-op" diff --git a/roles/tripleo_validator_show_parameter/molecule/default/molecule.yml b/roles/tripleo_validator_show_parameter/molecule/default/molecule.yml deleted file mode 100644 index 2841806..0000000 --- a/roles/tripleo_validator_show_parameter/molecule/default/molecule.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: delegated - options: - managed: false - ansible_connection_options: - ansible_connection: local -log: true -platforms: - - name: instance -provisioner: - name: ansible -scenario: - name: default - test_sequence: - - prepare - - syntax - - converge - - verify diff --git a/roles/tripleo_validator_show_parameter/molecule/default/prepare.yml b/roles/tripleo_validator_show_parameter/molecule/default/prepare.yml deleted file mode 100644 index 63bb6ab..0000000 --- a/roles/tripleo_validator_show_parameter/molecule/default/prepare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - - name: Include molecule prep - include_role: - name: test_molecule_prep diff --git a/roles/tripleo_validator_show_parameter/tasks/main.yml b/roles/tripleo_validator_show_parameter/tasks/main.yml deleted file mode 100644 index d2f9b3b..0000000 --- a/roles/tripleo_validator_show_parameter/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -- name: Fail if we do not pass validation or group - fail: - msg: "Please pass tripleo_validator_show_validation_parameter or tripleo_validator_show_group_parameter" - when: - - tripleo_validator_show_validation_parameter | length == 0 - - tripleo_validator_show_group_parameter | length == 0 - -- name: Setup validator show parameter facts - set_fact: - _validator_show_parameter_cmd: >- - {{ openstack_bin }} tripleo validator show parameter - {{ tripleo_validator_show_validation_parameter | ternary('--validation "${TRIPLEO_VALIDATOR_SHOW_VALIDATION_PARAMETER}"', '') }} - {{ tripleo_validator_show_group_parameter | ternary('--group "${TRIPLEO_VALIDATOR_SHOW_GROUP_PARAMETER}"', '') }} - _validator_show_parameter_env: - TRIPLEO_VALIDATOR_SHOW_VALIDATION_PARAMETER: >- - {%- if tripleo_validator_show_validation_parameter is string -%} - {{ tripleo_validator_show_validation_parameter }} - {%- else -%} - {{ tripleo_validator_show_validation_parameter | join(',') }} - {%- endif -%} - TRIPLEO_VALIDATOR_SHOW_GROUP_PARAMETER: >- - {%- if tripleo_validator_show_group_parameter is string -%} - {{ tripleo_validator_show_group_parameter }} - {%- else -%} - {{ tripleo_validator_show_group_parameter | join(',') }} - {%- endif -%} - -- name: Show debug information - when: - tripleo_validator_show_parameter_debug|bool - block: - - name: Show validator show parameter environment - debug: - var: _validator_show_parameter_env - - name: Show validator show parameter command - debug: - var: _validator_show_parameter_cmd - -- name: Show validation parameter - shell: "{{ _validator_show_parameter_cmd }}" - environment: "{{ _validator_show_parameter_env }}" - register: tripleo_validator_show_parameter_result - changed_when: true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 1ae7f05..0000000 --- a/setup.cfg +++ /dev/null @@ -1,45 +0,0 @@ -[metadata] -name = tripleo-operator-ansible -summary = Operator ansible assets for the TripleO project. -description-file = - README.md - -author = OpenStack -author-email = openstack-discuss@lists.openstack.org -home-page = https://opendev.org/openstack/tripleo-ansible -classifier = - License :: OSI Approved :: Apache Software License - Development Status :: 4 - Beta - Intended Audience :: Developers - Intended Audience :: System Administrators - Intended Audience :: Information Technology - Topic :: Utilities - -[global] -setup-hooks = - pbr.hooks.setup_hook - -[files] -data_files = - share/ansible/collections/ansible_collections/tripleo/operator/ = galaxy.yml - share/ansible/collections/ansible_collections/tripleo/operator/ = README.md - share/ansible/collections/ansible_collections/tripleo/operator/roles/ = roles/* - share/ansible/collections/ansible_collections/tripleo/operator/plugins/ = plugins/* - share/ansible/collections/ansible_collections/tripleo/operator/playbooks/ = playbooks/* - -[wheel] -universal = 1 - -[pbr] -skip_authors = True -skip_changelog = True - -[flake8] -# based on https://github.com/psf/black -ignore = E203,E501,W503,W504,D -# "D" added because we do not use docstrings checks, yet - -[doc8] -# Settings for doc8: -extensions = .rst -ignore = D001 diff --git a/setup.py b/setup.py deleted file mode 100644 index 58ffb52..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright Red Hat, Inc. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -import setuptools - -setuptools.setup( - setup_requires=['pbr'], - py_modules=[], - pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 8e5a8dd..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ -netaddr # BSD -stestr>=2.0.0 # Apache-2.0 -oslotest>=3.2.0 # Apache-2.0 -ruamel.yaml -pre-commit # MIT -ansible-core<2.12 - -# this is required for the docs build jobs -sphinx>=2.0.0,!=2.1.0 # BSD -openstackdocstheme>=2.2.1 # Apache-2.0 -reno>=3.1.0 # Apache-2.0 -doc8>=0.8.0 # Apache-2.0 -bashate>=0.6.0 # Apache-2.0 diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/base.py b/tests/base.py deleted file mode 100644 index 1c30cdb..0000000 --- a/tests/base.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright 2010-2011 OpenStack Foundation -# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslotest import base - - -class TestCase(base.BaseTestCase): - - """Test case base class for all unit tests.""" diff --git a/tests/plugins/__init__.py b/tests/plugins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/plugins/action/__init__.py b/tests/plugins/action/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/plugins/action/test_timestamp_file.py b/tests/plugins/action/test_timestamp_file.py deleted file mode 100644 index 8e30f61..0000000 --- a/tests/plugins/action/test_timestamp_file.py +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from unittest import mock - -from ansible.errors import AnsibleActionFail -from ansible.errors import AnsibleActionSkip -from ansible.playbook.play_context import PlayContext - -from tests import base as tests_base -from plugins.action import timestamp_file - - -class TestTimestampFile(tests_base.TestCase): - - def test_run(self): - mock_task = mock.MagicMock() - mock_task.async_val = None - mock_task.action = "timestamp_file" - mock_task.args = dict(path='foo.log') - mock_connection = mock.MagicMock() - play_context = PlayContext() - - action = timestamp_file.ActionModule(mock_task, - mock_connection, - play_context, - None, - None, - None) - - mock_datetime = mock.MagicMock() - mock_datetime.return_value = 'foo' - action._get_date_string = mock_datetime - mock_execute = mock.MagicMock() - mock_execute.side_effect = [{'stat': {'exists': True}}, - {'stat': {'exists': False}}, - {'dest': 'foo.log.foo', - 'failed': False, - 'changed': True}] - - action._execute_module = mock_execute - - result = action.run() - - execute_calls = [ - mock.call(module_args={'path': 'foo.log'}, - module_name='stat', - task_vars={}), - mock.call(module_args={'path': 'foo.log.foo'}, - module_name='stat', - task_vars={}), - mock.call(module_args={'src': 'foo.log', - 'dest': 'foo.log.foo', - 'remote_src': True}, - module_name='copy', - task_vars={}) - ] - self.assertEqual(3, mock_execute.call_count) - mock_execute.assert_has_calls(execute_calls) - - expected_result = {'dest': 'foo.log.foo', 'changed': True} - self.assertEqual(expected_result, result) - - def test_run_source_missing_skips(self): - mock_task = mock.MagicMock() - mock_task.async_val = None - mock_task.action = "timestamp_file" - mock_task.args = dict(path='foo.log') - mock_connection = mock.MagicMock() - play_context = PlayContext() - - action = timestamp_file.ActionModule(mock_task, - mock_connection, - play_context, - None, - None, - None) - - mock_datetime = mock.MagicMock() - mock_datetime.return_value = 'foo' - action._get_date_string = mock_datetime - mock_execute = mock.MagicMock() - mock_execute.side_effect = [{'stat': {'exists': False}}] - - action._execute_module = mock_execute - - self.assertRaises(AnsibleActionSkip, action.run) - - execute_calls = [ - mock.call(module_args={'path': 'foo.log'}, - module_name='stat', - task_vars={}) - ] - self.assertEqual(1, mock_execute.call_count) - mock_execute.assert_has_calls(execute_calls) - - def test_run_destination_exists_fails(self): - mock_task = mock.MagicMock() - mock_task.async_val = None - mock_task.action = "timestamp_file" - mock_task.args = dict(path='foo.log') - mock_connection = mock.MagicMock() - play_context = PlayContext() - - action = timestamp_file.ActionModule(mock_task, - mock_connection, - play_context, - None, - None, - None) - - mock_datetime = mock.MagicMock() - mock_datetime.return_value = 'foo' - action._get_date_string = mock_datetime - mock_execute = mock.MagicMock() - mock_execute.side_effect = [{'stat': {'exists': True}}, - {'stat': {'exists': True}}] - - action._execute_module = mock_execute - - self.assertRaises(AnsibleActionFail, action.run) - - execute_calls = [ - mock.call(module_args={'path': 'foo.log'}, - module_name='stat', - task_vars={}), - mock.call(module_args={'path': 'foo.log.foo'}, - module_name='stat', - task_vars={}) - ] - self.assertEqual(2, mock_execute.call_count) - mock_execute.assert_has_calls(execute_calls) - - def test_run_destination_exists_force(self): - mock_task = mock.MagicMock() - mock_task.async_val = None - mock_task.action = "timestamp_file" - mock_task.args = dict(path='foo.log', force=True) - mock_connection = mock.MagicMock() - play_context = PlayContext() - - action = timestamp_file.ActionModule(mock_task, - mock_connection, - play_context, - None, - None, - None) - - mock_datetime = mock.MagicMock() - mock_datetime.return_value = 'foo' - action._get_date_string = mock_datetime - mock_execute = mock.MagicMock() - mock_execute.side_effect = [{'stat': {'exists': True}}, - {'stat': {'exists': True}}, - {'dest': 'foo.log.foo', - 'failed': False, - 'changed': True}] - - action._execute_module = mock_execute - - result = action.run() - - execute_calls = [ - mock.call(module_args={'path': 'foo.log'}, - module_name='stat', - task_vars={}), - mock.call(module_args={'path': 'foo.log.foo'}, - module_name='stat', - task_vars={}), - mock.call(module_args={'src': 'foo.log', - 'dest': 'foo.log.foo', - 'remote_src': True}, - module_name='copy', - task_vars={}) - ] - self.assertEqual(3, mock_execute.call_count) - mock_execute.assert_has_calls(execute_calls) - - expected_result = {'dest': 'foo.log.foo', 'changed': True} - self.assertEqual(expected_result, result) diff --git a/tests/plugins/filter/__init__.py b/tests/plugins/filter/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/plugins/filter/test_shell_args.py b/tests/plugins/filter/test_shell_args.py deleted file mode 100644 index f8a1db9..0000000 --- a/tests/plugins/filter/test_shell_args.py +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from tests import base as tests_base -from plugins.filter import shell_args - - -class TestShellArgsFilters(tests_base.TestCase): - def setUp(self): - super(TestShellArgsFilters, self).setUp() - self.filter = shell_args.FilterModule() - - def test_shell_arg_list_default(self): - arg = ['a', 'b'] - expected = 'a b' - self.assertEqual(expected, self.filter.shell_arg_list(arg)) - - def test_shell_arg_list_string(self): - arg = 'a' - expected = 'a' - self.assertEqual(expected, self.filter.shell_arg_list(arg)) - - def test_shell_arg_list_param(self): - arg = ['a', 'b'] - expected = '--p a --p b' - self.assertEqual(expected, - self.filter.shell_arg_list(arg, parameter='--p')) - - def test_shell_arg_list_none(self): - expected = '' - self.assertEqual(expected, self.filter.shell_arg_list(None)) - - def test_shell_arg_list_quote(self): - arg = ["a b"] - expected = "--p 'a b'" - self.assertEqual(expected, - self.filter.shell_arg_list(arg, parameter='--p')) - - def test_shell_arg_str_quote(self): - arg = "a b" - expected = "'a b'" - self.assertEqual(expected, - self.filter.shell_arg_list(arg)) - - def test_shell_arg_list_avoid_none_in_list(self): - arg = ['a', None] - expected = '-p a' - self.assertEqual(expected, - self.filter.shell_arg_list(arg, parameter='-p')) - - def test_shell_arg_nested_list(self): - arg = ['a', ['b', 'c'], 'd'] - expected = '-p a -p b -p c -p d' - self.assertEqual(expected, - self.filter.shell_arg_list(arg, parameter='-p')) - - def test_shell_args_empty_item(self): - arg = ['a', ['b', 'c', ''], 'd', ''] - expected = '-p a -p b -p c -p d' - self.assertEqual(expected, - self.filter.shell_arg_list(arg, parameter='-p')) diff --git a/tests/plugins/modules/__init__.py b/tests/plugins/modules/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/plugins/modules/test_tripleo_shell_script.py b/tests/plugins/modules/test_tripleo_shell_script.py deleted file mode 100644 index 1f28447..0000000 --- a/tests/plugins/modules/test_tripleo_shell_script.py +++ /dev/null @@ -1,183 +0,0 @@ -# Copyright 2019 Red Hat, Inc. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from unittest import mock - -from plugins.modules import tripleo_shell_script -from tests import base as tests_base - - -class TestTripleoShellScript(tests_base.TestCase): - - @mock.patch('os.chmod') - def test_run(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo'} - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - - mock_calls = [ - mock.call().write(tripleo_shell_script._SHELL_HEADER), - mock.call().write('foo'), - mock.call().write("\n") - ] - mock_open.assert_has_calls(mock_calls) - mock_chmod.assert_called_once_with('/tmo/foo.sh', 0o755) - mock_exit_json.assert_called_once_with(changed=True) - - @mock.patch('os.chmod') - def test_run_env(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo', - 'shell_environment': { - 'OS_CLOUD': 'undercloud'} - } - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - - mock_calls = [ - mock.call().write(tripleo_shell_script._SHELL_HEADER), - mock.call().write('export OS_CLOUD=undercloud\n'), - mock.call().write('foo'), - mock.call().write("\n") - ] - mock_open.assert_has_calls(mock_calls) - mock_chmod.assert_called_once_with('/tmo/foo.sh', 0o755) - mock_exit_json.assert_called_once_with(changed=True) - - @mock.patch('os.chmod') - def test_run_env_avoid_none(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo', - 'shell_environment': { - 'OS_CLOUD': 'undercloud', - 'FOO_BAR': None} - } - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - - mock_calls = [ - mock.call().write(tripleo_shell_script._SHELL_HEADER), - mock.call().write('export OS_CLOUD=undercloud\n'), - mock.call().write('foo'), - mock.call().write("\n") - ] - mock_open.assert_has_calls(mock_calls) - mock_chmod.assert_called_once_with('/tmo/foo.sh', 0o755) - mock_exit_json.assert_called_once_with(changed=True) - - @mock.patch('os.chmod') - def test_run_env_quote_int(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo', - 'shell_environment': { - 'OS_CLOUD': 'undercloud', - 'FOO_BAR': 1} - } - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - - mock_calls = [ - mock.call().write(tripleo_shell_script._SHELL_HEADER), - mock.call().write('export OS_CLOUD=undercloud\n'), - mock.call().write('export FOO_BAR=1\n'), - mock.call().write('foo'), - mock.call().write("\n") - ] - mock_open.assert_has_calls(mock_calls) - mock_chmod.assert_called_once_with('/tmo/foo.sh', 0o755) - mock_exit_json.assert_called_once_with(changed=True) - - @mock.patch('os.chmod') - def test_run_env_quoted(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo', - 'shell_environment': { - 'OS_CLOUD': 'undercloud', - 'FILES': 'a.yaml b.yaml'} - } - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - - mock_calls = [ - mock.call().write(tripleo_shell_script._SHELL_HEADER), - mock.call().write('export OS_CLOUD=undercloud\n'), - mock.call().write('export FILES=\'a.yaml b.yaml\'\n'), - mock.call().write('foo'), - mock.call().write("\n") - ] - mock_open.assert_has_calls(mock_calls) - mock_chmod.assert_called_once_with('/tmo/foo.sh', 0o755) - mock_exit_json.assert_called_once_with(changed=True) - - @mock.patch('os.chmod') - def test_run_fail(self, mock_chmod): - mock_module = mock.Mock() - mock_exit_json = mock.Mock() - mock_open = mock.mock_open() - mock_open.side_effect = Exception('err') - mock_module.exit_json = mock_exit_json - params = {'dest': '/tmo/foo.sh', - 'shell_command': 'foo'} - mock_module.params = params - results = {} - - with mock.patch('plugins.modules.tripleo_shell_script.open', - mock_open): - tripleo_shell_script.TripleoShellScript(mock_module, results) - mock_exit_json.assert_called_once_with( - error='err', - failed=True, - msg='Unable to output shell script /tmo/foo.sh: err') diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 235af49..0000000 --- a/tox.ini +++ /dev/null @@ -1,135 +0,0 @@ -[tox] -minversion = 2.0 -envlist = docs, linters -skipsdist = True - -[testenv] -usedevelop = True -install_command = pip install {opts} {packages} -passenv = * -setenv = - VIRTUAL_ENV={envdir} - ANSIBLE_ACTION_PLUGINS={toxinidir}/plugins/action - ANSIBLE_CALLBACK_PLUGINS={toxinidir}/plugins/callback - ANSIBLE_FILTER_PLUGINS={toxinidir}/plugins/filter - ANSIBLE_LIBRARY={toxinidir}/plugins/modules - ANSIBLE_MODULE_UTILS={toxinidir}/plugins/module_utils - ANSIBLE_ROLES_PATH={toxinidir}/roles - ANSIBLE_INVENTORY={toxinidir}/tests/hosts.ini - ANSIBLE_NOCOWS=1 - ANSIBLE_RETRY_FILES_ENABLED=0 - ANSIBLE_STDOUT_CALLBACK=debug - ANSIBLE_LOG_PATH={envlogdir}/ansible-execution.log - VIRTUAL_ENV={envdir} - # pip: Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207 - # paramiko CryptographyDeprecationWarning: https://github.com/ansible/ansible/issues/52598 - PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command,ignore::UserWarning - PIP_DISABLE_PIP_VERSION_CHECK=1 -sitepackages = True -deps = - -r {toxinidir}/test-requirements.txt - -r {toxinidir}/ansible-requirements.txt -commands = stestr run {posargs} -whitelist_externals = - bash - tox - -[testenv:bindep] -# Do not install any requirements. We want this to be fast and work even if -# system dependencies are missing, since it's used to tell you what system -# dependencies are missing! This also means that bindep must be installed -# separately, outside of the requirements files. -deps = bindep -commands = bindep test - -[testenv:pep8] -envdir = {toxworkdir}/linters -commands = - python -m pre_commit run flake8 -a - -[testenv:ansible-lint] -envdir = {toxworkdir}/linters -deps = - {[testenv:linters]deps} -commands = - python -m pre_commit run ansible-lint -a - -[testenv:yamllint] -envdir = {toxworkdir}/linters -deps = {[testenv:linters]deps} -commands = - python -m pre_commit run yamllint -a - -[testenv:bashate] -envdir = {toxworkdir}/linters -deps = {[testenv:linters]deps} -commands = - python -m pre_commit run bashate -a - -[testenv:whitespace] -envdir = {toxworkdir}/linters -deps = {[testenv:linters]deps} -commands = - python -m pre_commit run trailing-whitespace -a - -[testenv:shebangs] -envdir = {toxworkdir}/linters -deps = {[testenv:linters]deps} -commands = - python -m pre_commit run check-executables-have-shebangs -a - -[testenv:linters] -deps = - -r {toxinidir}/requirements.txt - -r {toxinidir}/test-requirements.txt -commands = - {[testenv:pep8]commands} - {[testenv:ansible-lint]commands} - {[testenv:bashate]commands} - {[testenv:yamllint]commands} - {[testenv:whitespace]commands} - {[testenv:shebangs]commands} - -[testenv:releasenotes] -basepython = python3 -deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r{toxinidir}/doc/requirements.txt -commands = - sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html - -[testenv:docs] -basepython = python3 -deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} - -r {toxinidir}/doc/requirements.txt -commands= - doc8 doc - sphinx-build -a -E -W -d doc/build/doctrees --keep-going -b html doc/source doc/build/html -T - -[doc8] -# Settings for doc8: -extensions = .rst -ignore = D001 - -[testenv:venv] -commands = {posargs} - -[testenv:build] -basepython = python3 -deps = -r{toxinidir}/ansible-requirements.txt -commands = - ansible-galaxy collection build --force --output-path {toxinidir}/build/ . - -[testenv:molecule] -setenv = - ANSIBLE_FORCE_COLOR=1 - ANSIBLE_CALLBACK_WHITELIST=profile_tasks - ANSIBLE_SHOW_CUSTOM_STATS=1 -deps = - -r {toxinidir}/molecule-requirements.txt -changedir = {toxinidir}/roles -commands = - python -m pytest -ra --continue-on-collection-errors -v --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} {posargs} - -# do not put tool config in tox.ini, use setup.cfg or tool specific files diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml deleted file mode 100644 index 1426e1e..0000000 --- a/zuul.d/layout.yaml +++ /dev/null @@ -1,94 +0,0 @@ -- job: - name: tripleo-operator-ansible-release - parent: base - run: ci/playbooks/publish_collection.yml - secrets: - - name: ansible_galaxy_info - secret: ansible_galaxy_info_toa - -- secret: - name: ansible_galaxy_info_toa - data: - url: https://galaxy.ansible.com - token: !encrypted/pkcs1-oaep - - SXQjXSgmtNQeh5e3vElfPvpGfNJcD5Dt9O8ntMUnXspuUWWxPWOtjyhm/o2IEdHvRTEmH - EcNpj5MoMv+ufk6PbneC93jJQ6NrA5g5AwP7aZsVyrii1JwtxT37XIZPGPkJ3bvz51UFA - CL0U2KdcPz5vf2gzvf/ZvDB0IRZqEVnmlJHG/b84bS+k28aWHdQ4xB2nlsB5mOhuX4gVN - 2xCgn9rNZwafw9jleuqtMmWYqEICGXWWniLpb8cQAfwXCCpuWnO+2UUremIrocTnbIiQA - Smz7UuyMWlOFS8KCgM60/yE+QRorpjT3U63eF+V2cpf2gXY5U7P7RWp2OnzTh2eSoH11x - FJ0b2zqDXnmxougo3+1qD/LO11CSBYdH6PxId5VCRbVS3dHLiHJPR7ABqjT8kpiw7Gmh3 - jAE7Lkk+niAhYr4X+ZcBni1jS3TfAJx5SYMrjLOn5rDbKKk0jTUxfZ6w7aRZxheXTiBOw - pgE4j/cwi/VpV45WBCN83I2l63Jz4WGJVPDjhNbYOApxmNDFA8RQeShD5cOyxsnOxh7xU - uyb+385Biuc5O1jLSGDBqWbo1O9tdUBAc3ZhpSSUgSP2MY12RIgpj55Qy5TCvy5+4VKH3 - APbMJDE3uJzdlmRyo6iaFZBziYxYCnvpnH+zYX0VwzdG0WGFUW//OVNE8eN7jM= - -- project: - templates: - - openstack-python3-zed-jobs - - tripleo-operator-molecule-jobs - - release-notes-jobs-python3 - check: - jobs: - - openstack-tox-linters - - tripleo-ci-centos-9-content-provider: - dependencies: - - openstack-tox-linters - - openstack-tox-pep8 - - openstack-tox-py39 - files: &content_provider - - ^roles/tripleo_undercloud_install/.*$ - - ^roles/tripleo_deploy/.*$ - - ^roles/tripleo_container_image_prepare_default/.*$ - - openstack-tox-docs: &tripleo-docs - files: - - ^doc/.* - - ^molecule-requirements.txt - - ^README.rst - - ^requirements.txt - - tripleo-ci-centos-9-containers-multinode: &job_containers_multinode - vars: &multi_consumer_vars - consumer_job: true - build_container_images: false - tags: - - undercloud-setup - - undercloud-scripts - - undercloud-install - - undercloud-post-install - - tripleo-validations - - overcloud-scripts - - overcloud-prep-config - - overcloud-prep-containers - - overcloud-deploy - - overcloud-post-deploy - - overcloud-validate - dependencies: &deps_content_provider_c9 - - tripleo-ci-centos-9-content-provider - files: &containers_multinode_files - - ^roles/tripleo_undercloud_install/.*$ - - tripleo-ci-centos-9-standalone: &job_centos9_standalone - vars: &sa_consumer_vars - consumer_job: true - build_container_images: false - tags: - - standalone - dependencies: *deps_content_provider_c9 - files: &standalone_files - - ^roles/tripleo_deploy/.*$ - - ^roles/tripleo_container_image_prepare_default/.*$ - #TODO(jfrancoa): Add standalone-upgrade job when job is stable - gate: - jobs: - - openstack-tox-linters - - tripleo-ci-centos-9-content-provider: - files: *content_provider - - openstack-tox-docs: *tripleo-docs - - tripleo-ci-centos-9-containers-multinode: *job_containers_multinode - - tripleo-ci-centos-9-standalone: *job_centos9_standalone - - promote: - jobs: - - promote-openstack-tox-docs: *tripleo-docs - - tag: - jobs: - - tripleo-operator-ansible-release diff --git a/zuul.d/molecule.yaml b/zuul.d/molecule.yaml deleted file mode 100644 index e56b357..0000000 --- a/zuul.d/molecule.yaml +++ /dev/null @@ -1,1186 +0,0 @@ -- project-template: - name: tripleo-operator-molecule-jobs - check: - jobs: - - tripleo-operator-molecule-test_molecule_prep - - tripleo-operator-molecule-tripleo_ceph_deploy - - tripleo-operator-molecule-tripleo_ceph_spec - - tripleo-operator-molecule-tripleo_ceph_user - - tripleo-operator-molecule-tripleo_config_generate_ansible - - tripleo-operator-molecule-tripleo_container_image_build - - tripleo-operator-molecule-tripleo_container_image_delete - - tripleo-operator-molecule-tripleo_container_image_list - - tripleo-operator-molecule-tripleo_container_image_prepare - - tripleo-operator-molecule-tripleo_container_image_prepare_default - - tripleo-operator-molecule-tripleo_container_image_push - - tripleo-operator-molecule-tripleo_container_image_show - - tripleo-operator-molecule-tripleo_overcloud_image_upload - - tripleo-operator-molecule-tripleo_deploy - - tripleo-operator-molecule-tripleo_upgrade - - tripleo-operator-molecule-tripleo_overcloud_admin_authorize - - tripleo-operator-molecule-tripleo_overcloud_backup - - tripleo-operator-molecule-tripleo_overcloud_cell_export - - tripleo-operator-molecule-tripleo_overcloud_config_download - - tripleo-operator-molecule-tripleo_overcloud_container_image_build - - tripleo-operator-molecule-tripleo_overcloud_container_image_prepare - - tripleo-operator-molecule-tripleo_overcloud_container_image_tag_discover - - tripleo-operator-molecule-tripleo_overcloud_container_image_upload - - tripleo-operator-molecule-tripleo_overcloud_credentials - - tripleo-operator-molecule-tripleo_overcloud_deploy - - tripleo-operator-molecule-tripleo_overcloud_delete - - tripleo-operator-molecule-tripleo_overcloud_export - - tripleo-operator-molecule-tripleo_overcloud_external_update_run - - tripleo-operator-molecule-tripleo_overcloud_external_upgrade_run - - tripleo-operator-molecule-tripleo_overcloud_failures - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_converge - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_prepare - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_run - - tripleo-operator-molecule-tripleo_overcloud_generate_fencing - - tripleo-operator-molecule-tripleo_overcloud_image_build - - tripleo-operator-molecule-tripleo_overcloud_netenv_validate - - tripleo-operator-molecule-tripleo_overcloud_network_vip_provision - - tripleo-operator-molecule-tripleo_overcloud_node_bios_configure - - tripleo-operator-molecule-tripleo_overcloud_node_bios_reset - - tripleo-operator-molecule-tripleo_overcloud_node_clean - - tripleo-operator-molecule-tripleo_overcloud_node_configure - - tripleo-operator-molecule-tripleo_overcloud_node_delete - - tripleo-operator-molecule-tripleo_overcloud_node_discover - - tripleo-operator-molecule-tripleo_overcloud_node_introspect - - tripleo-operator-molecule-tripleo_overcloud_node_import - - tripleo-operator-molecule-tripleo_overcloud_node_provide - - tripleo-operator-molecule-tripleo_overcloud_node_provision - - tripleo-operator-molecule-tripleo_overcloud_node_unprovision - - tripleo-operator-molecule-tripleo_overcloud_profiles_list - - tripleo-operator-molecule-tripleo_overcloud_profiles_match - - tripleo-operator-molecule-tripleo_overcloud_raid_create - - tripleo-operator-molecule-tripleo_overcloud_roles_generate - - tripleo-operator-molecule-tripleo_overcloud_roles_list - - tripleo-operator-molecule-tripleo_overcloud_roles_show - - tripleo-operator-molecule-tripleo_overcloud_support_report_collect - - tripleo-operator-molecule-tripleo_overcloud_update_converge - - tripleo-operator-molecule-tripleo_overcloud_update_prepare - - tripleo-operator-molecule-tripleo_overcloud_update_run - - tripleo-operator-molecule-tripleo_overcloud_upgrade_converge - - tripleo-operator-molecule-tripleo_overcloud_upgrade_prepare - - tripleo-operator-molecule-tripleo_overcloud_upgrade_run - - tripleo-operator-molecule-tripleo_undercloud_backup - - tripleo-operator-molecule-tripleo_undercloud_install - - tripleo-operator-molecule-tripleo_undercloud_minion_install - - tripleo-operator-molecule-tripleo_undercloud_minion_upgrade - - tripleo-operator-molecule-tripleo_undercloud_upgrade - - tripleo-operator-molecule-tripleo_validator_group_info - - tripleo-operator-molecule-tripleo_validator_list - - tripleo-operator-molecule-tripleo_validator_run - - tripleo-operator-molecule-tripleo_validator_show - - tripleo-operator-molecule-tripleo_validator_show_parameter - - gate: - jobs: - - tripleo-operator-molecule-test_molecule_prep - - tripleo-operator-molecule-tripleo_ceph_deploy - - tripleo-operator-molecule-tripleo_ceph_spec - - tripleo-operator-molecule-tripleo_ceph_user - - tripleo-operator-molecule-tripleo_config_generate_ansible - - tripleo-operator-molecule-tripleo_container_image_build - - tripleo-operator-molecule-tripleo_container_image_delete - - tripleo-operator-molecule-tripleo_container_image_list - - tripleo-operator-molecule-tripleo_container_image_prepare - - tripleo-operator-molecule-tripleo_container_image_prepare_default - - tripleo-operator-molecule-tripleo_container_image_push - - tripleo-operator-molecule-tripleo_container_image_show - - tripleo-operator-molecule-tripleo_overcloud_image_upload - - tripleo-operator-molecule-tripleo_deploy - - tripleo-operator-molecule-tripleo_upgrade - - tripleo-operator-molecule-tripleo_overcloud_admin_authorize - - tripleo-operator-molecule-tripleo_overcloud_backup - - tripleo-operator-molecule-tripleo_overcloud_cell_export - - tripleo-operator-molecule-tripleo_overcloud_config_download - - tripleo-operator-molecule-tripleo_overcloud_container_image_build - - tripleo-operator-molecule-tripleo_overcloud_container_image_prepare - - tripleo-operator-molecule-tripleo_overcloud_container_image_tag_discover - - tripleo-operator-molecule-tripleo_overcloud_container_image_upload - - tripleo-operator-molecule-tripleo_overcloud_credentials - - tripleo-operator-molecule-tripleo_overcloud_deploy - - tripleo-operator-molecule-tripleo_overcloud_delete - - tripleo-operator-molecule-tripleo_overcloud_export - - tripleo-operator-molecule-tripleo_overcloud_external_update_run - - tripleo-operator-molecule-tripleo_overcloud_external_upgrade_run - - tripleo-operator-molecule-tripleo_overcloud_failures - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_converge - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_prepare - - tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_run - - tripleo-operator-molecule-tripleo_overcloud_generate_fencing - - tripleo-operator-molecule-tripleo_overcloud_image_build - - tripleo-operator-molecule-tripleo_overcloud_netenv_validate - - tripleo-operator-molecule-tripleo_overcloud_network_vip_provision - - tripleo-operator-molecule-tripleo_overcloud_node_bios_configure - - tripleo-operator-molecule-tripleo_overcloud_node_bios_reset - - tripleo-operator-molecule-tripleo_overcloud_node_clean - - tripleo-operator-molecule-tripleo_overcloud_node_configure - - tripleo-operator-molecule-tripleo_overcloud_node_delete - - tripleo-operator-molecule-tripleo_overcloud_node_discover - - tripleo-operator-molecule-tripleo_overcloud_node_introspect - - tripleo-operator-molecule-tripleo_overcloud_node_import - - tripleo-operator-molecule-tripleo_overcloud_node_provide - - tripleo-operator-molecule-tripleo_overcloud_node_provision - - tripleo-operator-molecule-tripleo_overcloud_node_unprovision - - tripleo-operator-molecule-tripleo_overcloud_profiles_list - - tripleo-operator-molecule-tripleo_overcloud_profiles_match - - tripleo-operator-molecule-tripleo_overcloud_raid_create - - tripleo-operator-molecule-tripleo_overcloud_roles_generate - - tripleo-operator-molecule-tripleo_overcloud_roles_list - - tripleo-operator-molecule-tripleo_overcloud_roles_show - - tripleo-operator-molecule-tripleo_overcloud_support_report_collect - - tripleo-operator-molecule-tripleo_overcloud_update_converge - - tripleo-operator-molecule-tripleo_overcloud_update_prepare - - tripleo-operator-molecule-tripleo_overcloud_update_run - - tripleo-operator-molecule-tripleo_overcloud_upgrade_converge - - tripleo-operator-molecule-tripleo_overcloud_upgrade_prepare - - tripleo-operator-molecule-tripleo_overcloud_upgrade_run - - tripleo-operator-molecule-tripleo_undercloud_backup - - tripleo-operator-molecule-tripleo_undercloud_install - - tripleo-operator-molecule-tripleo_undercloud_minion_install - - tripleo-operator-molecule-tripleo_undercloud_minion_upgrade - - tripleo-operator-molecule-tripleo_undercloud_upgrade - - tripleo-operator-molecule-tripleo_validator_group_info - - tripleo-operator-molecule-tripleo_validator_list - - tripleo-operator-molecule-tripleo_validator_run - - tripleo-operator-molecule-tripleo_validator_show - - tripleo-operator-molecule-tripleo_validator_show_parameter - -- job: - name: tripleo-operator-molecule-base - abstract: true - parent: openstack-tox-molecule - success-url: "reports.html" - failure-url: "reports.html" - vars: - tox_extra_args: "-- -s {{ mol_scenario }}" - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^plugins/.* - - ^requirements.txt - - ^roles/test_molecule_prep/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-test_molecule_prep - parent: tripleo-operator-molecule-base - vars: - mol_scenario: test_molecule_prep - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^plugins/.* - - ^requirements.txt - - ^roles/tripleo_config_generate_ansible/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_config_generate_ansible - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_config_generate_ansible - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_build/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_build - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_build - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_delete/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_delete - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_delete - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_list/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_list - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_list - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_push/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_push - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_push - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_show/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_show - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_show - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_image_upload/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_image_upload - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_image_upload - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_deploy/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_deploy - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_deploy - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_upgrade/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_upgrade - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_upgrade - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_admin_authorize/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_admin_authorize - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_admin_authorize - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_backup/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_backup - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_backup - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_cell_export/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_cell_export - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_cell_export - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_config_download/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_config_download - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_config_download - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_container_image_build/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_container_image_build - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_container_image_build - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_container_image_prepare/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_container_image_prepare - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_container_image_prepare - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_container_image_tag_discover/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_container_image_tag_discover - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_container_image_tag_discover - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_container_image_upload/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_container_image_upload - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_container_image_upload - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_credentials/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_credentials - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_credentials - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_deploy/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_deploy - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_deploy - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_delete/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_delete - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_delete - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_export/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_export - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_export - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_external_update_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_external_update_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_external_update_run - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_external_upgrade_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_external_upgrade_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_external_upgrade_run - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_failures/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_failures - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_failures - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_ffwd_upgrade_converge/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_converge - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_ffwd_upgrade_converge - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_ffwd_upgrade_prepare/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_prepare - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_ffwd_upgrade_prepare - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_ffwd_upgrade_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_ffwd_upgrade_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_ffwd_upgrade_run - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_generate_fencing/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_generate_fencing - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_generate_fencing - -- job: - files: - - ^roles/tripleo_overcloud_image_build/.* - - ^molecule-requirements.txt - name: tripleo-operator-molecule-tripleo_overcloud_image_build - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_image_build - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_netenv_validate/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_netenv_validate - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_netenv_validate - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_network_vip_provision/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_network_vip_provision - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_network_vip_provision - -- job: - files: - - ^roles/tripleo_overcloud_node_bios_configure/.* - name: tripleo-operator-molecule-tripleo_overcloud_node_bios_configure - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_bios_configure - -- job: - files: - - ^roles/tripleo_overcloud_node_bios_reset/.* - name: tripleo-operator-molecule-tripleo_overcloud_node_bios_reset - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_bios_reset - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_introspect/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_introspect - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_introspect - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_import/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_import - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_import - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_provide/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_provide - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_provide - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_provision/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_provision - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_provision - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_unprovision/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_unprovision - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_unprovision - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_profiles_list/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_profiles_list - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_profiles_list - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_profiles_match/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_profiles_match - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_profiles_match - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_raid_create/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_raid_create - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_raid_create - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_support_report_collect/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_support_report_collect - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_support_report_collect - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_configure/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_configure - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_configure - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_node_clean/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_node_clean - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_clean - -- job: - files: - - ^roles/tripleo_overcloud_node_delete/.* - name: tripleo-operator-molecule-tripleo_overcloud_node_delete - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_delete - -- job: - files: - - ^roles/tripleo_overcloud_node_discover/.* - name: tripleo-operator-molecule-tripleo_overcloud_node_discover - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_node_discover - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_roles_list/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_roles_list - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_roles_list - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_roles_show/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_roles_show - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_roles_show - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_roles_generate/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_roles_generate - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_roles_generate - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_prepare/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_prepare - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_prepare - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_container_image_prepare_default/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_container_image_prepare_default - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_container_image_prepare_default - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_update_converge/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_update_converge - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_update_converge - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_update_prepare/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_update_prepare - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_update_prepare - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_update_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_update_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_update_run - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_upgrade_converge/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_upgrade_converge - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_upgrade_converge - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_upgrade_prepare/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_upgrade_prepare - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_upgrade_prepare - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_overcloud_upgrade_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_overcloud_upgrade_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_overcloud_upgrade_run - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_undercloud_backup/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_undercloud_backup - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_undercloud_backup - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_undercloud_install/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_undercloud_install - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_undercloud_install - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_undercloud_minion_install/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_undercloud_minion_install - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_undercloud_minion_install - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_undercloud_minion_upgrade/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_undercloud_minion_upgrade - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_undercloud_minion_upgrade - -- job: - files: - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_undercloud_upgrade/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_undercloud_upgrade - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_undercloud_upgrade - -- job: - files: - - ^roles/tripleo_validator_group_info/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_validator_group_info - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_validator_group_info - -- job: - files: - - ^roles/tripleo_validator_list/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_validator_list - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_validator_list - -- job: - files: - - ^roles/tripleo_validator_run/.* - - ^bindep.txt - - ^galaxy.yml - - ^molecule-requirements.txt - - ^requirements.txt - - ^roles/tripleo_validator_run/.* - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_validator_run - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_validator_run - -- job: - files: - - ^roles/tripleo_validator_show/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_validator_show - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_validator_show - -- job: - files: - - ^roles/tripleo_validator_show_parameter/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_validator_show_parameter - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_validator_show_parameter - -- job: - files: - - ^roles/tripleo_ceph_spec/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_ceph_spec - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_ceph_spec - -- job: - files: - - ^roles/tripleo_ceph_user/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_ceph_user - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_ceph_user - -- job: - files: - - ^roles/tripleo_ceph_deploy/.* - - ^bindep.txt - - ^galaxy.yml - - ^requirements.txt - - ^setup.cfg - - ^test-requirements.txt - - ^tox.ini - name: tripleo-operator-molecule-tripleo_ceph_deploy - parent: tripleo-operator-molecule-base - vars: - mol_scenario: tripleo_ceph_deploy -