From 00a1bd3ae5b307368efb918d8db751572be20cce Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 16 Feb 2017 16:35:44 +0000 Subject: 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 --- ansible/bifrost.yml | 2 +- ansible/inventory/all-in-one | 6 ++++++ ansible/inventory/multinode | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'ansible') 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. # -- cgit v1.2.3