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
# http://doc.devpi.net/latest/ | |
# Basic host package set | |
apt-get update && \ | |
apt-get purge -y nano && \ | |
apt-get install -y git vim tmux fail2ban | |
# Install packages | |
apt-get install -y python-pip gcc git-core libssl-dev libffi-dev python-pyasn1 python-openssl python-ndg-httpsclient gzip python-dev lsb-release python-virtualenv | |
pip install devpi-server devpi-web devpi-client |
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 | |
gather_facts: false | |
tasks: | |
- name: Test single async task | |
shell: "sleep 2; false" | |
register: _async_test1 | |
async: 1800 | |
poll: 0 |
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
--- | |
- name: Configure OpenStack authentication information | |
hosts: openstack_clients | |
gather_facts: no | |
roles: | |
- role: "openstack_openrc" | |
openrc_cinder_endpoint_type: publicURL | |
openrc_nova_endpoint_type: publicURL | |
openrc_os_endpoint_type: publicURL | |
openrc_clouds_yml_interface: public |
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
# 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 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
apt-get update | |
apt-get purge -y nano | |
apt-get install -y vim tmux fail2ban nginx apt-mirror lxc | |
# change nginx config: | |
# /etc/nginx/sites-enabled/default | |
systemctl restart nginx | |
# change apt-mirror config: | |
# /etc/apt/mirror.list |
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
apt-get update | |
apt-get purge -y nano | |
apt-get install -y git vim tmux fail2ban build-essential libffi-dev qemu-utils | |
curl --silent https://bootstrap.pypa.io/get-pip.py > /opt/get-pip.py | |
python /opt/get-pip.py pip==9.0.1 setuptools==33.1.1 wheel==0.29.0 | |
pip install six swiftly | |
# clone the tooling repo | |
git clone https://github.com/odyssey4me/rpc_rd.git | |
cd rpc_rd/qcow_image |
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 | |
# 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 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
### Note that you can't copy-paste this whole thing. | |
### Each line break is a plce where manual input is required, or | |
### bash will not retain anything else copied and execute it. | |
# | |
###master sha update | |
# | |
cd ~/code/openstack-ansible | |
git checkout master |
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 | |
apt-get update && \ | |
apt-get purge -y nano && \ | |
apt-get install -y git vim tmux fail2ban build-essential python2.7 python-dev libssl-dev libffi-dev | |
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 | |
pip install -U ansible==2.1.1 |
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 | |
apt-get update && \ | |
apt-get purge -y nano && \ | |
apt-get install -y git vim tmux fail2ban build-essential python2.7 python-dev libssl-dev libffi-dev | |
curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 | |
pip install ansible==2.1.0 |