This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.27" | |
} | |
} | |
} | |
# USE Environment variables AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// REQUIRES EXTENSION: "Command Variable" (https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable) | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Ginkgo test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
vars: | |
# working_dir: The home directory from where the script is being triggered, usually the Undercloud's /home/stack | |
working_dir: "/home/stack" | |
# rc_file: RC file for the undercloud | |
rc_file: "stackrc" | |
# hotfix_tag: Tag used to identify the built image for the hotfix, this tag will be appended to the existing container tag | |
hotfix_tag: "hotfix_bz1911653" | |
# hotfix_rpm_dir: Location for the RPMS required for the hoftix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================UNDERCLOUD================== | |
1. Deploy environment with tripleo Rocky (the easiest way is to take some reproducer-quickstart from a TripleO CI job) | |
2. Download and install -y tripleo-repos: | |
sudo yum install -y https://trunk.rdoproject.org/centos7/consistent/python2-tripleo-repos-0.0.1-0.20191001113300.9dba973.el7.noarch.rpm | |
3. Set up stein repos: | |
sudo -E tripleo-repos -b stein current | |
4. Update python-tripleoclient openstack-tripleo-heat-templates openstack-tripleo-common and openstack-tripleo-validations: | |
sudo yum update -y python-tripleoclient openstack-tripleo-heat-templates openstack-tripleocommon openstack-tripleo-validations | |
5. Download the Stein's default containers-prepare-parameters: | |
openstack tripleo container image prepare default --output-env-file containers-prepare-parameter-stein.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#USE: ./build_rpm.sh tripleo-heat-templates refs/changes/54/628154/7 | |
# Parameters: | |
# - $1=repository name (without the openstack/ part) | |
# - $2=refs for the gerrit patch | |
REPO=$1 | |
REFS=$2 | |
set -eu | |
set -o pipefail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if ! which virsh >/dev/null 2>&1; then | |
exit 0 | |
fi | |
VIRSH="virsh" | |
action_snapshot() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
su - toor | |
sudo yum groupinstall "Virtualization Host" -y | |
sudo yum install git -y | |
# Disable requiretty otherwise the deployment will fail... | |
sudo sed -i -e 's/Defaults[ \t]*requiretty/#Defaults requiretty/g' /etc/sudoers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /home/libvirt/ | |
sudo ln -sf /home/libvirt/ /var/lib/libvirt | |
# Add default toor user | |
sudo useradd toor | |
echo "toor:toor" | chpasswd | |
echo "toor ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/toor | |
sudo chmod 0440 /etc/sudoers.d/toor | |
sudo yum install -y lvm2 lvm2-devel | |
sudo reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd tripleo-root | |
virtualenv workspace/.quickstart | |
source workspace/.quickstart/bin/activate | |
cp /home/centos/tripleo-root/tripleo-ci/toci-quickstart/config/testenv/osinfra_hosts /home/centos/tripleo-root/workspace/.quickstart/hosts | |
cp /home/centos/tripleo-root/tripleo-ci/toci-quickstart/playbooks/multinode.yml /home/centos/tripleo-root/tripleo-ci/toci-quickstart/playbooks/ovb.yml /home/centos/tripleo-root/tripleo-ci/toci-quickstart/playbooks/prepare_slave.yml /home/centos/tripleo-root/tripleo-quickstart/playbooks/ | |
pushd /home/centos/tripleo-root/tripleo-quickstart/ | |
#./quickstart.sh --install-deps | |
./quickstart.sh --bootstrap --tags build,undercloud-setup,undercloud-scripts,undercloud-install,undercloud-post-install,tripleo-validations,overcloud-scripts,overcloud-prep-config,overcloud-prep-containers,overcloud-deploy,overcloud-upgrade,overcloud-validate --no-clone --working-dir /home/centos/tripleo-root/workspace/.quickstart --retain-inventory --teardown none --extra-vars tripleo_root=/home/centos/tripleo-root -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: 127.0.0.1 | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: Check if swift-storage services are deployed | |
command: systemctl is-enabled --quiet "{{ item }}" | |
register: swift_services_enabled | |
ignore_errors: true |
NewerOlder