Merge "Add advanced keystone AIO model" into stable/queens
diff --git a/classes/cluster/virtual-mcp11-aio-advanced-keystone/.env b/classes/cluster/virtual-mcp11-aio-advanced-keystone/.env
new file mode 100644
index 0000000..f81f12f
--- /dev/null
+++ b/classes/cluster/virtual-mcp11-aio-advanced-keystone/.env
@@ -0,0 +1 @@
+FORMULAS_SALT_MASTER+=(docker java openssh ntp nginx collectd sensu heka sphinx mysql galera grafana libvirt rsyslog glusterfs xtrabackup prometheus telegraf elasticsearch kibana rundeck devops-portal libvirt rsyslog memcached rabbitmq apache keystone glance nova neutron cinder heat horizon ironic tftpd-hpa bind powerdns designate iptables runtest artifactory logrotate auditd openscap)
diff --git a/classes/cluster/virtual-mcp11-aio-advanced-keystone/infra/config.yml b/classes/cluster/virtual-mcp11-aio-advanced-keystone/infra/config.yml
new file mode 100644
index 0000000..1cbf4a7
--- /dev/null
+++ b/classes/cluster/virtual-mcp11-aio-advanced-keystone/infra/config.yml
@@ -0,0 +1,31 @@
+classes:
+- system.linux.system.repo.mcp.apt_mirantis.docker
+- system.docker.host
+- system.docker.client
+- system.docker.swarm.master
+- system.docker.swarm.stack.ldap
+- cluster.virtual-mcp11-aio-advanced-keystone
+- cluster.virtual-mcp11-aio.infra.config
+parameters:
+  _param:
+    mcp_docker_registry: docker-prod-local.docker.mirantis.net
+    openldap_organisation: Example
+    openldap_dn: "dc=example,dc=com"
+    openldap_domain: example.com
+    openldap_admin_password: workshop
+    openldap_config_password: workshop
+    openldap_readonly_password: workshop
+  docker:
+    host:
+      insecure_registries:
+      - ${_param:mcp_docker_registry}
+      options:
+        bridge: none
+    client:
+      stack:
+        ldap:
+          service:
+            server:
+              ~ports:
+                - 389:389
+                - 636:636
diff --git a/classes/cluster/virtual-mcp11-aio-advanced-keystone/init.yml b/classes/cluster/virtual-mcp11-aio-advanced-keystone/init.yml
new file mode 100755
index 0000000..aa01f6f
--- /dev/null
+++ b/classes/cluster/virtual-mcp11-aio-advanced-keystone/init.yml
@@ -0,0 +1,4 @@
+classes:
+- cluster.virtual-mcp11-aio-advanced-keystone.openstack
+- cluster.virtual-mcp11-aio
+- cluster.overrides
diff --git a/classes/cluster/virtual-mcp11-aio-advanced-keystone/openstack/init.yml b/classes/cluster/virtual-mcp11-aio-advanced-keystone/openstack/init.yml
new file mode 100755
index 0000000..7145bb0
--- /dev/null
+++ b/classes/cluster/virtual-mcp11-aio-advanced-keystone/openstack/init.yml
@@ -0,0 +1,26 @@
+classes:
+- cluster.virtual-mcp11-aio.openstack
+parameters:
+  keystone:
+    server:
+      domain:
+        example.com:
+          assignment:
+            backend: sql
+            driver: ldap
+          identity:
+            driver: ldap
+          backend: ldap
+          description: Testing domain
+          ldap:
+            auth: true
+            password: workshop
+            bind_user: cn=admin,dc=example,dc=com
+            suffix: dc=example,dc=com
+            url: ldap://localhost
+    client:
+      resources:
+        v3:
+          domains:
+            example.com:
+              description: Example domain
\ No newline at end of file