Skip to content

mrmoghadasi/openstack-easyadmin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openstack-easyadmin

Ansible playbooks and roles to automate openstack administrative tasks

if run on deployment we don't need openstack-sdk and can run playbook with openstack-ansilbe

Instalation

  1. install python3-openstacksdk: $ sudo apt install python3-openstacksdk

as openstacksdk package is installed for python version3 and above, so you should run playbooks with python3 interpreter and set it explicitly when running ansible-playbook command. so add "ansible_python_interpreter=/usr/bin/python3" to group_vars file, or run ansible playbooks like this:

$ ansible-playbook <playbook.yml> -e "ansible_python_interpreter=/usr/bin/python3"

Include Setup Configuration:

dependency role:

  • update and upgrade to latest version packages
  • set resovled system
  • install and remove neccessary packages for openstack ansible target hosts
  • delete config infra hosts

ntp role:

  • install chrony packages
  • set chrony clinet

network role:

  • setup all node include infra or compute with bridge or ovs manager

step 1

ansible-galaxy collection install -r requirements.yml

step 2

create hosts inventory files

host sample-->

[all]
infra1
infra2
infra3
compute1
compute2


[computes]
compute1
compute2

[infras]
infra1
infra2
infra3

[mon]
mon1

[ceph]
ceph1

step 3

for install with bridge port

ansible-playbook -i /path/to/hosts --tag infra -e 'machine=infras' pre-deploy.yml  
ansible-playbook -i /path/to/hosts --tag compute -e 'machine=computes' pre-deploy.yml

or for install with ovs port

ansible-playbook -i /path/to/hosts --tag ovs,ovs_infra -e 'machine=infras' pre-deploy.yml  
ansible-playbook -i /path/to/hosts --tag ovs,ovs_compute -e 'machine=computes' pre-deploy.yml

for install monitor node ceph

ansible-playbook -i /path/to/hosts --tag mon -e 'machine=mon' pre-deploy.yml

for install osd node ceph

ansible-playbook -i /path/to/hosts --tag osd -e 'machine=ceph' pre-deploy.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%