Example Ansible Playbook for Packstack
Aim is to simplify the install of OpenStack via Packstack onto Red Hat Enterprise Linux 7 and Centos 7 environments
You'll need to specify your inventory hosts.rhel
file that contains the host you wish to packstack
[packstack]
openstack
Override the variable repo_host
to specify the location of your local yum repository.
To execute the playbook across my RHEL hosts
ansible-playbook -i hosts.rhel packstack.yaml
If I only want to enable my locally cached set of base OS RPMS
ansible-playbook -i hosts.rhel repos.yaml
The includes configure the local respositories on the packstack hosts
- local_repo.yaml - Base OS repositories
- local_openstack_repo.yaml - OpenStack specific repositories
These contain the local yum repositories config files to reduce internet traffic.
- Base RHEL or Centos repositories
- centos.repo.j2
- rhel.repo.j2
- Red Hat OpenStack or RDO repositories
- centos_rdo.repo.j2
- rhel_osp.repo.j2