Skip to content

dimas-prates/ansible-openstack

Repository files navigation

ansible-openstack

Request resumed:

Request resumed:

  • Setup essential S.O Configuration
  • Adjust network configuration
  • Configure NTP and timezone
  • Mount Object Storage
  • Install Openstack packages on controller and compute groups
  • Setup Keepalived on controller groups
  • Setup HAProxy on controller groups 📍
  • Deploy Memcached on controller groups
  • Password Manager (Optional)
  • Deploy RabbitMQ on controller groups
  • Deploy MariaDB on controller groups
  • Configure Ceph on storage groups 📍

Getting IP and Hostname from a network an making inventory:

  • necessary packages:
yum install -y epel-release openssh-clients nmap coreutils
  • for command with redirect
for ip in $(nmap -sn 10.66.66.0/24 | grep -oP '\d+\.\d+\.\d+\.\d+');do echo -e "$(ssh -qi ~/.ssh/ansible.key -o StrictHostKeyChecking=no $ip hostname -s) ansible_host=$ip"|tee -a /tmp/inventory-tmp.txt;done

Check and execution

  • Checking syntax
ansible-playbook --private-key=~/.ssh/ansible.key -vi inventory-tmp.ini first-playbook.yml --syntax-check -vvv
  • Executing/Running
ansible-playbook --private-key=~/.ssh/ansible.key -vi inventory-tmp.ini first-playbook.yml

ec2 credentials for Object Storage

  • Load environment variables from openrc file
source ~/Downloads/app-cred-cli-myproject-openrc.sh
  • Create ec2 credentials
openstack ec2 credentials create
  • View ec2 credentials
openstack ec2 credentials list

Tree

$ tree
.
├── date-configuration.yaml
├── ec2_credentials.j2
├── kernel-parameters.yaml
├── LICENSE
├── memcache-setup.yaml
├── network-interface-change.yaml
├── object-storage-mountpoint.yaml
├── openstack-inventory.ini
├── packages-and-update-playbook.yaml
├── packages-openstack.yaml
├── README.md
└── selinux-disabling.yaml

About

Repo objective is to understand essential knowledge of Ansible targeting OpenStack.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages