From: root Date: Wed, 15 Oct 2014 04:11:32 +0000 (-0400) Subject: User and role creation ansible playbook template X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8c45be8ab90848660b19e4ef931428c738231816;hp=43549cbb0c79e52c4bd61b832f7bb22fdab78d68;p=plstackapi.git User and role creation ansible playbook template --- diff --git a/planetstack/openstack_observer/steps/sync_user_deployments.yaml b/planetstack/openstack_observer/steps/sync_user_deployments.yaml new file mode 100644 index 0000000..ae54a85 --- /dev/null +++ b/planetstack/openstack_observer/steps/sync_user_deployments.yaml @@ -0,0 +1,8 @@ +--- +- hosts: 127.0.0.1 + connection: local + tasks: + - keystone_user: endpoint={{ endpoint }} user="{{ name }}" email={{ email }} password={{ password }} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} tenant={{ tenant }} + {% for role in roles %} + - keystone_user: endpoint={{ endpoint}} login_user={{ admin_user }} login_password={{ admin_password }} login_tenant_name={{ admin_tenant }} user="{{ name }}" role={{ role }} tenant={{ tenant }} + {% endfor %}