Skip to content

Commit

Permalink
Add intial runbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jovial committed Aug 26, 2022
1 parent d1aed04 commit a399361
Show file tree
Hide file tree
Showing 34 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions pipeline
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions scripts/runbook-overcloud-deploy.sh
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions scripts/runbook-overcloud-prepare-snapshot.sh
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions scripts/runbook-overcloud-upgrade.sh
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a399361

Please sign in to comment.