summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-07-12 11:52:11 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-07-12 11:52:11 +0200
commit25a2d4f772d735bc31e7a891e16e3d7d7002cd68 (patch)
tree4db9ae45b96db3604dec2435e7970d726bc162a9 /playbooks/provisioning/openstack
parent7d92318da75c0f1599465e02d58496e470725796 (diff)
downloadopenshift-25a2d4f772d735bc31e7a891e16e3d7d7002cd68.tar.gz
openshift-25a2d4f772d735bc31e7a891e16e3d7d7002cd68.tar.bz2
openshift-25a2d4f772d735bc31e7a891e16e3d7d7002cd68.tar.xz
openshift-25a2d4f772d735bc31e7a891e16e3d7d7002cd68.zip
Install DNS roles from casl-infra with galaxy (#529)
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'playbooks/provisioning/openstack')
-rw-r--r--playbooks/provisioning/openstack/README.md19
-rw-r--r--playbooks/provisioning/openstack/galaxy-requirements.yaml6
-rw-r--r--playbooks/provisioning/openstack/post-provision-openstack.yml4
3 files changed, 26 insertions, 3 deletions
diff --git a/playbooks/provisioning/openstack/README.md b/playbooks/provisioning/openstack/README.md
index 34b548b9b..05e7e791a 100644
--- a/playbooks/provisioning/openstack/README.md
+++ b/playbooks/provisioning/openstack/README.md
@@ -4,10 +4,10 @@ This repository contains playbooks and Heat templates to provision
OpenStack resources (servers, networking, volumes, security groups,
etc.). The result is an environment ready for openshift-ansible.
-
## Dependencies for localhost (ansible control/admin node)
* [Ansible 2.3](https://pypi.python.org/pypi/ansible)
+* [Ansible-galaxy](https://pypi.python.org/pypi/ansible-galaxy-local-deps)
* [jinja2](http://jinja.pocoo.org/docs/2.9/)
* [shade](https://pypi.python.org/pypi/shade)
* python-dns / [dnspython](https://pypi.python.org/pypi/dnspython)
@@ -19,6 +19,23 @@ There are no additional dependencies for the cluster nodes. Required
configuration steps are done by Heat given a specific user data config
that normally should not be changed.
+## Required galaxy modules
+
+In order to pull in external dependencies for DNS configuration steps,
+the following commads need to be executed:
+
+ ansible-galaxy install \
+ -r openshift-ansible-contrib/playbooks/provisioning/openstack/galaxy-requirements.yaml \
+ -p openshift-ansible-contrib/roles
+
+Alternatively you can install directly from github:
+
+ ansible-galaxy install git+https://github.com/redhat-cop/infra-ansible,master \
+ -p openshift-ansible-contrib/roles
+
+Note, this assumes we're in the directory that contains the clonned
+openshift-ansible-contrib repo in its root path.
+
## What does it do
* Create Nova servers with floating IP addresses attached
diff --git a/playbooks/provisioning/openstack/galaxy-requirements.yaml b/playbooks/provisioning/openstack/galaxy-requirements.yaml
new file mode 100644
index 000000000..93dd14ec2
--- /dev/null
+++ b/playbooks/provisioning/openstack/galaxy-requirements.yaml
@@ -0,0 +1,6 @@
+---
+# This is the Ansible Galaxy requirements file to pull in the correct roles
+
+# From 'infra-ansible'
+- src: https://github.com/redhat-cop/infra-ansible
+ version: master
diff --git a/playbooks/provisioning/openstack/post-provision-openstack.yml b/playbooks/provisioning/openstack/post-provision-openstack.yml
index 412ccd221..8d4ba3c12 100644
--- a/playbooks/provisioning/openstack/post-provision-openstack.yml
+++ b/playbooks/provisioning/openstack/post-provision-openstack.yml
@@ -33,7 +33,7 @@
- name: "Generate dns-server views"
include: openstack_dns_views.yml
roles:
- - role: dns-server
+ - role: infra-ansible/roles/dns-server
- name: Build and process DNS Records
hosts: localhost
@@ -44,7 +44,7 @@
- name: "Generate dns records"
include: openstack_dns_records.yml
roles:
- - role: dns
+ - role: infra-ansible/roles/dns
- name: Switch the stack subnet to the configured private DNS server
hosts: localhost