From 5a1b0008f2e05ea439eab52db5707e623cb1b3ae Mon Sep 17 00:00:00 2001 From: Fang Fenghua <449171342@qq.com> Date: Sat, 2 May 2015 22:45:36 +0800 Subject: [PATCH] Add auth role to ansible Add a auth role so ansible can deploy keystone. Change-Id: I3f41fe150654451aae6271cce59ddeb807945043 --- ansible/inventory/all-in-one | 3 +++ ansible/roles/keystone/tasks/main.yml | 7 +++++++ ansible/site.yml | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 ansible/roles/keystone/tasks/main.yml diff --git a/ansible/inventory/all-in-one b/ansible/inventory/all-in-one index 246ce4e921..570c4b645c 100644 --- a/ansible/inventory/all-in-one +++ b/ansible/inventory/all-in-one @@ -6,3 +6,6 @@ support [message-broker:children] support + +[keystone:children] +support diff --git a/ansible/roles/keystone/tasks/main.yml b/ansible/roles/keystone/tasks/main.yml new file mode 100644 index 0000000000..29a7fef520 --- /dev/null +++ b/ansible/roles/keystone/tasks/main.yml @@ -0,0 +1,7 @@ +--- +- name: Bringing up keystone service(s) + docker_compose: + project_name: keystone + compose_file: "{{ koalla_directory }}/compose/keystone.yml" + command: up + no_recreate: true diff --git a/ansible/site.yml b/ansible/site.yml index feccbb0b38..f741695708 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -8,3 +8,8 @@ roles: - message-broker tags: message-broker + +- hosts: keystone + roles: + - keystone + tags: keystone