Skip to content

Instantly share code, notes, and snippets.

@etoews
Last active April 27, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etoews/197266a8c0cd586579d3 to your computer and use it in GitHub Desktop.
Save etoews/197266a8c0cd586579d3 to your computer and use it in GitHub Desktop.
These are rough notes. There's a good chance it doesn't work as written. Needs some love.

Manual creation of OpenStack Ansible deployment for client testing

  1. https://mycloud.rackspace.com
  2. Create Server
  3. Server Name: osa-libery
  4. Region: IAD
  5. Image: Ubuntu 14.04 (Trusty Tahr) (PVHVM)
  6. Flavor: I/O > 15 GB I/O v1
  7. Advanced Options
  8. Manage SSH Keys (create a keypair for it)
ssh -i ~/.ssh/id_rsa.osa root@xxx.xxx.xxx.xxx

adduser --shell /bin/bash --gecos "User" --home /home/osa osa
adduser osa sudo

mkdir /home/osa/.ssh
cp .ssh/authorized_keys /home/osa/.ssh/
chown -R osa:osa /home/osa/.ssh

sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
service ssh restart

apt-get -y update && apt-get -y upgrade
apt-get -y install git vim fail2ban

mkfs -t ext4 /dev/xvde
mkdir /var/lib/lxc
mount /dev/xvde /var/lib/lxc

git clone https://github.com/openstack/openstack-ansible /opt/openstack-ansible
cd /opt/openstack-ansible
git checkout liberty

export DEPLOY_CEILOMETER="no"
export DEPLOY_TEMPEST="yes" # creates a demo user (u: demo, p: demo)

scripts/bootstrap-ansible.sh
sed -i 's/keystone_auth_admin_password: .*/keystone_auth_admin_password: devstack/' /etc/openstack_deploy/user_secrets.yml
scripts/bootstrap-aio.sh
tmux new -d -s osa '/opt/openstack-ansible/scripts/run-playbooks.sh'
tmux attach -t osa

tmux cheat sheet https://gist.github.com/MohamedAlaa/2961058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment