User and role creation ansible playbook template
authorroot <root@ip-172-31-38-128.ec2.internal>
Wed, 15 Oct 2014 04:11:32 +0000 (00:11 -0400)
committerroot <root@ip-172-31-38-128.ec2.internal>
Wed, 15 Oct 2014 04:11:32 +0000 (00:11 -0400)
planetstack/openstack_observer/steps/sync_user_deployments.yaml [new file with mode: 0644]

diff --git a/planetstack/openstack_observer/steps/sync_user_deployments.yaml b/planetstack/openstack_observer/steps/sync_user_deployments.yaml
new file mode 100644 (file)
index 0000000..ae54a85
--- /dev/null
@@ -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 %}