This file contains 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/env bash | |
# | |
# Run overcloud Operating System upgrade on overcloud node ceph-0,controller-0,database-0,messaging-0,networker-0 | |
# | |
set -euo pipefail | |
source /home/stack/stackrc | |
if [ ! -f .ceph_ran_ceph-0,controller-0,database-0,messaging-0,networker-0 ]; then |
This file contains 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 | |
# do this on localhost (deployment host) | |
# ensure that there's a local ssh private key | |
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa | |
# now make sure that the public key is in the second host's authorized_keys | |
# then do a test ssh connection to make sure it works, and to add the host | |
# to known hosts |
This file contains 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 | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
This file contains 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
# the default is 6h apparently | |
metadata_expire=24h | |
# the default is group:primary | |
mdpolicy=group:all | |
# this should be the default | |
retries=10 | |
# no mention is made of what the default is | |
http_caching=all |
This file contains 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 | |
connection: local | |
gather_facts: yes | |
vars: | |
volume_path: "/var/lib/lvm-volume1" | |
volume_size: "100M" | |
volume_name: "loopback-volumes" | |
tasks: | |
- name: Ensure LVM dependencies are installed | |
package: |
This file contains 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
# Resetting back to the package state | |
rm -rf /usr/share/openstack-tripleo-heat-templates; yum reinstall -y openstack-tripleo-heat-templates | |
# Getting it from gerrit | |
GERRIT_ID="<num>"; \ | |
FOLDER="openstack-tripleo-heat-templates"; \ | |
curl -4 "https://review.opendev.org/changes/${GERRIT_ID}/revisions/current/patch?download" | \ | |
base64 -d | \ | |
sudo patch -d "/usr/share/${FOLDER}/" -p1 |
This file contains 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
# prep host | |
apt update | |
apt purge nano | |
apt install git vim tmux fail2ban | |
# prep ssh key | |
key_path="${HOME}/.ssh" | |
key_file="${key_path}/id_rsa" | |
mkdir -p ${key_path} | |
chmod 700 ${key_path} |
This file contains 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
# In ~/.ansible.cfg | |
[defaults] | |
inventory = ~/.ansible/inventory | |
retry_files_enabled = False | |
#stdout_callback = yaml | |
bin_ansible_callbacks = True | |
[inventory] | |
enable_plugins = ini, openstack | |
cache_connection = /tmp/ansible_fact_cache |
This file contains 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
# 1. Place this file in /etc/openstack_deploy before running Queens playbooks. | |
# 2. Run the Pike-Queens upgrade. | |
# 3. Confirm that there are now agents on the network hosts. | |
# 4. Disable the agents in the network_agents container. | |
# 5. Ensure all rebalancing is done to make everything run on the host agents. | |
# 6. Use lxc-containers-destroy to remove all members of the neutron_agents_container group. | |
# 7. Use inventory-manage to remove all members of the neutron_agents_container group. | |
# 8. Remove this file from /etc/openstack_deploy. | |
# ref: | |
# - https://bugs.launchpad.net/openstack-ansible/+bug/1804770 |
This file contains 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
PLAY [localhost] ************************************************************************************************************************************************************ | |
TASK [debug] **************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": "" | |
} | |
TASK [debug] **************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": { |