From a3993615c4a2badefced3430c745444a872c00da Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 25 Aug 2022 16:30:25 +0000 Subject: [PATCH] Add intial runbooks --- pipeline | 1 + {pipeline => scripts}/config-diff.sh | 0 .../infra-vm-host-configure.sh | 0 .../infra-vm-host-package-update.sh | 0 {pipeline => scripts}/infra-vm-provision.sh | 0 .../infra-vm-service-deploy.sh | 0 .../network-connectivity-check.sh | 0 .../overcloud-container-image-build.sh | 0 .../overcloud-container-image-pull.sh | 0 .../overcloud-database-backup.sh | 0 .../overcloud-deployment-image-build.sh | 0 .../overcloud-host-command-run.sh | 0 .../overcloud-host-configure.sh | 0 .../overcloud-host-image-build.sh | 0 .../overcloud-host-package-update.sh | 0 .../overcloud-host-upgrade.sh | 0 .../overcloud-inventory-discover.sh | 0 {pipeline => scripts}/overcloud-provision.sh | 0 .../overcloud-service-deploy.sh | 0 .../overcloud-service-reconfigure.sh | 0 .../overcloud-service-upgrade.sh | 0 .../physical-network-configure.sh | 0 {pipeline => scripts}/playbook-run.sh | 0 scripts/runbook-overcloud-deploy.sh | 17 +++++++++++++++++ scripts/runbook-overcloud-prepare-snapshot.sh | 17 +++++++++++++++++ scripts/runbook-overcloud-upgrade.sh | 19 +++++++++++++++++++ .../seed-container-image-build.sh | 0 {pipeline => scripts}/seed-host-configure.sh | 0 .../seed-host-package-update.sh | 0 .../seed-hypervisor-host-configure.sh | 0 .../seed-hypervisor-host-package-update.sh | 0 {pipeline => scripts}/seed-service-deploy.sh | 0 {pipeline => scripts}/seed-vm-provision.sh | 0 {pipeline => scripts}/tempest.sh | 0 34 files changed, 54 insertions(+) create mode 120000 pipeline rename {pipeline => scripts}/config-diff.sh (100%) rename {pipeline => scripts}/infra-vm-host-configure.sh (100%) rename {pipeline => scripts}/infra-vm-host-package-update.sh (100%) rename {pipeline => scripts}/infra-vm-provision.sh (100%) rename {pipeline => scripts}/infra-vm-service-deploy.sh (100%) rename {pipeline => scripts}/network-connectivity-check.sh (100%) rename {pipeline => scripts}/overcloud-container-image-build.sh (100%) rename {pipeline => scripts}/overcloud-container-image-pull.sh (100%) rename {pipeline => scripts}/overcloud-database-backup.sh (100%) rename {pipeline => scripts}/overcloud-deployment-image-build.sh (100%) rename {pipeline => scripts}/overcloud-host-command-run.sh (100%) rename {pipeline => scripts}/overcloud-host-configure.sh (100%) rename {pipeline => scripts}/overcloud-host-image-build.sh (100%) rename {pipeline => scripts}/overcloud-host-package-update.sh (100%) rename {pipeline => scripts}/overcloud-host-upgrade.sh (100%) rename {pipeline => scripts}/overcloud-inventory-discover.sh (100%) rename {pipeline => scripts}/overcloud-provision.sh (100%) rename {pipeline => scripts}/overcloud-service-deploy.sh (100%) rename {pipeline => scripts}/overcloud-service-reconfigure.sh (100%) rename {pipeline => scripts}/overcloud-service-upgrade.sh (100%) rename {pipeline => scripts}/physical-network-configure.sh (100%) rename {pipeline => scripts}/playbook-run.sh (100%) create mode 100755 scripts/runbook-overcloud-deploy.sh create mode 100755 scripts/runbook-overcloud-prepare-snapshot.sh create mode 100755 scripts/runbook-overcloud-upgrade.sh rename {pipeline => scripts}/seed-container-image-build.sh (100%) rename {pipeline => scripts}/seed-host-configure.sh (100%) rename {pipeline => scripts}/seed-host-package-update.sh (100%) rename {pipeline => scripts}/seed-hypervisor-host-configure.sh (100%) rename {pipeline => scripts}/seed-hypervisor-host-package-update.sh (100%) rename {pipeline => scripts}/seed-service-deploy.sh (100%) rename {pipeline => scripts}/seed-vm-provision.sh (100%) rename {pipeline => scripts}/tempest.sh (100%) diff --git a/pipeline b/pipeline new file mode 120000 index 0000000..6786b95 --- /dev/null +++ b/pipeline @@ -0,0 +1 @@ +scripts/ \ No newline at end of file diff --git a/pipeline/config-diff.sh b/scripts/config-diff.sh similarity index 100% rename from pipeline/config-diff.sh rename to scripts/config-diff.sh diff --git a/pipeline/infra-vm-host-configure.sh b/scripts/infra-vm-host-configure.sh similarity index 100% rename from pipeline/infra-vm-host-configure.sh rename to scripts/infra-vm-host-configure.sh diff --git a/pipeline/infra-vm-host-package-update.sh b/scripts/infra-vm-host-package-update.sh similarity index 100% rename from pipeline/infra-vm-host-package-update.sh rename to scripts/infra-vm-host-package-update.sh diff --git a/pipeline/infra-vm-provision.sh b/scripts/infra-vm-provision.sh similarity index 100% rename from pipeline/infra-vm-provision.sh rename to scripts/infra-vm-provision.sh diff --git a/pipeline/infra-vm-service-deploy.sh b/scripts/infra-vm-service-deploy.sh similarity index 100% rename from pipeline/infra-vm-service-deploy.sh rename to scripts/infra-vm-service-deploy.sh diff --git a/pipeline/network-connectivity-check.sh b/scripts/network-connectivity-check.sh similarity index 100% rename from pipeline/network-connectivity-check.sh rename to scripts/network-connectivity-check.sh diff --git a/pipeline/overcloud-container-image-build.sh b/scripts/overcloud-container-image-build.sh similarity index 100% rename from pipeline/overcloud-container-image-build.sh rename to scripts/overcloud-container-image-build.sh diff --git a/pipeline/overcloud-container-image-pull.sh b/scripts/overcloud-container-image-pull.sh similarity index 100% rename from pipeline/overcloud-container-image-pull.sh rename to scripts/overcloud-container-image-pull.sh diff --git a/pipeline/overcloud-database-backup.sh b/scripts/overcloud-database-backup.sh similarity index 100% rename from pipeline/overcloud-database-backup.sh rename to scripts/overcloud-database-backup.sh diff --git a/pipeline/overcloud-deployment-image-build.sh b/scripts/overcloud-deployment-image-build.sh similarity index 100% rename from pipeline/overcloud-deployment-image-build.sh rename to scripts/overcloud-deployment-image-build.sh diff --git a/pipeline/overcloud-host-command-run.sh b/scripts/overcloud-host-command-run.sh similarity index 100% rename from pipeline/overcloud-host-command-run.sh rename to scripts/overcloud-host-command-run.sh diff --git a/pipeline/overcloud-host-configure.sh b/scripts/overcloud-host-configure.sh similarity index 100% rename from pipeline/overcloud-host-configure.sh rename to scripts/overcloud-host-configure.sh diff --git a/pipeline/overcloud-host-image-build.sh b/scripts/overcloud-host-image-build.sh similarity index 100% rename from pipeline/overcloud-host-image-build.sh rename to scripts/overcloud-host-image-build.sh diff --git a/pipeline/overcloud-host-package-update.sh b/scripts/overcloud-host-package-update.sh similarity index 100% rename from pipeline/overcloud-host-package-update.sh rename to scripts/overcloud-host-package-update.sh diff --git a/pipeline/overcloud-host-upgrade.sh b/scripts/overcloud-host-upgrade.sh similarity index 100% rename from pipeline/overcloud-host-upgrade.sh rename to scripts/overcloud-host-upgrade.sh diff --git a/pipeline/overcloud-inventory-discover.sh b/scripts/overcloud-inventory-discover.sh similarity index 100% rename from pipeline/overcloud-inventory-discover.sh rename to scripts/overcloud-inventory-discover.sh diff --git a/pipeline/overcloud-provision.sh b/scripts/overcloud-provision.sh similarity index 100% rename from pipeline/overcloud-provision.sh rename to scripts/overcloud-provision.sh diff --git a/pipeline/overcloud-service-deploy.sh b/scripts/overcloud-service-deploy.sh similarity index 100% rename from pipeline/overcloud-service-deploy.sh rename to scripts/overcloud-service-deploy.sh diff --git a/pipeline/overcloud-service-reconfigure.sh b/scripts/overcloud-service-reconfigure.sh similarity index 100% rename from pipeline/overcloud-service-reconfigure.sh rename to scripts/overcloud-service-reconfigure.sh diff --git a/pipeline/overcloud-service-upgrade.sh b/scripts/overcloud-service-upgrade.sh similarity index 100% rename from pipeline/overcloud-service-upgrade.sh rename to scripts/overcloud-service-upgrade.sh diff --git a/pipeline/physical-network-configure.sh b/scripts/physical-network-configure.sh similarity index 100% rename from pipeline/physical-network-configure.sh rename to scripts/physical-network-configure.sh diff --git a/pipeline/playbook-run.sh b/scripts/playbook-run.sh similarity index 100% rename from pipeline/playbook-run.sh rename to scripts/playbook-run.sh diff --git a/scripts/runbook-overcloud-deploy.sh b/scripts/runbook-overcloud-deploy.sh new file mode 100755 index 0000000..eff1f1b --- /dev/null +++ b/scripts/runbook-overcloud-deploy.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -euE +set -o pipefail + +PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +source "${PARENT}/../functions" + +function main { + ${PARENT}/overcloud-host-configure.sh + ${PARENT}/overcloud-service-deploy.sh +} + +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then + main +fi diff --git a/scripts/runbook-overcloud-prepare-snapshot.sh b/scripts/runbook-overcloud-prepare-snapshot.sh new file mode 100755 index 0000000..57abe54 --- /dev/null +++ b/scripts/runbook-overcloud-prepare-snapshot.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -euE +set -o pipefail + +PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +source "${PARENT}/../functions" + +function main { + ${PARENT}/overcloud-host-command-run.sh -b --command 'dnf clean all' + ${PARENT}/overcloud-host-command-run.sh -b --command 'docker system prune -af' +} + +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then + main +fi diff --git a/scripts/runbook-overcloud-upgrade.sh b/scripts/runbook-overcloud-upgrade.sh new file mode 100755 index 0000000..4f8c57f --- /dev/null +++ b/scripts/runbook-overcloud-upgrade.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -euE +set -o pipefail + +PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +source "${PARENT}/../functions" + +function main { + ${PARENT}/overcloud-host-configure.sh + ${PARENT}/overcloud-host-upgrade.sh + ${PARENT}/overcloud-service-upgrade.sh + ${PARENT}/overcloud-host-command-run.sh -b --command 'docker system prune -af' +} + +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then + main +fi diff --git a/pipeline/seed-container-image-build.sh b/scripts/seed-container-image-build.sh similarity index 100% rename from pipeline/seed-container-image-build.sh rename to scripts/seed-container-image-build.sh diff --git a/pipeline/seed-host-configure.sh b/scripts/seed-host-configure.sh similarity index 100% rename from pipeline/seed-host-configure.sh rename to scripts/seed-host-configure.sh diff --git a/pipeline/seed-host-package-update.sh b/scripts/seed-host-package-update.sh similarity index 100% rename from pipeline/seed-host-package-update.sh rename to scripts/seed-host-package-update.sh diff --git a/pipeline/seed-hypervisor-host-configure.sh b/scripts/seed-hypervisor-host-configure.sh similarity index 100% rename from pipeline/seed-hypervisor-host-configure.sh rename to scripts/seed-hypervisor-host-configure.sh diff --git a/pipeline/seed-hypervisor-host-package-update.sh b/scripts/seed-hypervisor-host-package-update.sh similarity index 100% rename from pipeline/seed-hypervisor-host-package-update.sh rename to scripts/seed-hypervisor-host-package-update.sh diff --git a/pipeline/seed-service-deploy.sh b/scripts/seed-service-deploy.sh similarity index 100% rename from pipeline/seed-service-deploy.sh rename to scripts/seed-service-deploy.sh diff --git a/pipeline/seed-vm-provision.sh b/scripts/seed-vm-provision.sh similarity index 100% rename from pipeline/seed-vm-provision.sh rename to scripts/seed-vm-provision.sh diff --git a/pipeline/tempest.sh b/scripts/tempest.sh similarity index 100% rename from pipeline/tempest.sh rename to scripts/tempest.sh