aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2017-02-16 16:35:44 +0000
committerMark Goddard <mark@stackhpc.com>2017-03-15 16:51:14 +0000
commit00a1bd3ae5b307368efb918d8db751572be20cce (patch)
treee4a43048406ef402159018ab8b92a5c9a61a377c /ansible
parent8a18a3b72b649846696e72bb8b5747eb6c1e6ba4 (diff)
downloadkolla-ansible-00a1bd3ae5b307368efb918d8db751572be20cce.tar.gz
kolla-ansible-00a1bd3ae5b307368efb918d8db751572be20cce.zip
Add an Ansible group for bifrost
It is not currently possible to deploy Bifrost on a host other than the Ansible control host. A deployer may want to manage an Ansible control environment remotely from the Bifrost deployment host but is currently unable to. This change adds a new top level 'deployment' Ansible group and a 'bifrost' Ansible group containing the 'deployment' group. The Ansible play in ansible/bifrost.yml is now targeted at the hosts in the 'bifrost' group. For backwards compatibility, the all-in-one and multinode inventories add localhost to the deployment group. This allows a deployer to deploy Bifrost on a remote host by modifying the hosts in the deployment or bifrost groups. Change-Id: I76808feab5dd67dff63379ed9c7d08a105636acf Closes-bug: #1665373
Diffstat (limited to 'ansible')
-rw-r--r--ansible/bifrost.yml2
-rw-r--r--ansible/inventory/all-in-one6
-rw-r--r--ansible/inventory/multinode6
3 files changed, 13 insertions, 1 deletions
diff --git a/ansible/bifrost.yml b/ansible/bifrost.yml
index a567ddfdc..ad02f0539 100644
--- a/ansible/bifrost.yml
+++ b/ansible/bifrost.yml
@@ -1,6 +1,6 @@
---
- name: Apply role bifrost
- hosts: localhost
+ hosts: bifrost
roles:
- { role: bifrost,
tags: bifrost}
diff --git a/ansible/inventory/all-in-one b/ansible/inventory/all-in-one
index e42742d23..9e76b1288 100644
--- a/ansible/inventory/all-in-one
+++ b/ansible/inventory/all-in-one
@@ -15,6 +15,9 @@ localhost ansible_connection=local
[monitoring]
localhost ansible_connection=local
+[deployment]
+localhost ansible_connection=local
+
# You can explicitly specify which hosts run each project by updating the
# groups in the sections below. Common services are grouped together.
[chrony-server:children]
@@ -178,6 +181,9 @@ control
[placement:children]
control
+[bifrost:children]
+deployment
+
# Additional control implemented here. These groups allow you to control which
# services run on which hosts at a per-service level.
#
diff --git a/ansible/inventory/multinode b/ansible/inventory/multinode
index 37484dc49..5e61b0c1f 100644
--- a/ansible/inventory/multinode
+++ b/ansible/inventory/multinode
@@ -27,6 +27,9 @@ monitoring01
[storage]
storage01
+[deployment]
+localhost ansible_connection=local
+
[baremetal:children]
control
network
@@ -195,6 +198,9 @@ control
[placement:children]
control
+[bifrost:children]
+deployment
+
# Additional control implemented here. These groups allow you to control which
# services run on which hosts at a per-service level.
#