blob: ee6798a171e8e73750075003aff48405a25a3a96 [file] [log] [blame]
Petr Michalece9a6c2a2017-03-05 20:14:34 +01001---
2driver:
3 name: docker
4 hostname: keystone.ci.local
Filip Pytloun87031292017-05-03 15:08:01 +02005 use_sudo: false
Petr Michalece9a6c2a2017-03-05 20:14:34 +01006
7provisioner:
8 name: salt_solo
9 salt_install: bootstrap
10 salt_bootstrap_url: https://bootstrap.saltstack.com
Martin Polreich757410e2018-12-17 16:00:42 +010011 salt_version: latest
Petr Michalece9a6c2a2017-03-05 20:14:34 +010012 require_chef: false
Martin Polreich962dfdd2017-06-08 14:04:14 +020013 log_level: error
Petr Michalece9a6c2a2017-03-05 20:14:34 +010014 formula: keystone
15 grains:
Vasyl Saienko778efdd2018-08-06 08:55:21 +000016 noservices: True
Petr Michalece9a6c2a2017-03-05 20:14:34 +010017 dependencies:
18 - name: linux
19 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020020 source: https://gerrit.mcp.mirantis.com/salt-formulas/linux
Martin Polreich266b8c12019-04-10 08:21:44 +020021 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +010022 - name: apache
23 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020024 source: https://gerrit.mcp.mirantis.com/salt-formulas/apache
Martin Polreich266b8c12019-04-10 08:21:44 +020025 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +010026 - name: memcached
27 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020028 source: https://gerrit.mcp.mirantis.com/salt-formulas/memcached
Martin Polreich266b8c12019-04-10 08:21:44 +020029 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +010030 - name: rabbitmq
31 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020032 source: https://gerrit.mcp.mirantis.com/salt-formulas/rabbitmq
Martin Polreich266b8c12019-04-10 08:21:44 +020033 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
sgarbuz96532ba2018-11-16 13:14:57 +020034 - name: oslo_templates
35 repo: git
36 source: https://gerrit.mcp.mirantis.com/salt-formulas/oslo-templates
Martin Polreich266b8c12019-04-10 08:21:44 +020037 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
sgarbuz96532ba2018-11-16 13:14:57 +020038 - name: mysql
39 repo: git
40 source: https://gerrit.mcp.mirantis.com/salt-formulas/mysql
Martin Polreich266b8c12019-04-10 08:21:44 +020041 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +010042 state_top:
43 base:
44 "*":
45 - linux
Petr Michalece9a6c2a2017-03-05 20:14:34 +010046 - keystone
47 pillars:
sgarbuz96532ba2018-11-16 13:14:57 +020048 ssl.sls:
49 keystone:
50 server:
51 identity:
52 protocol: https
53 database:
54 x509:
55 enabled: True
56 ca_file: /etc/keystone/ssl/mysql/ca-cert.pem
57 key_file: /etc/keystone/ssl/mysql/client-key.pem
58 cert_file: /etc/keystone/ssl/mysql/client-cert.pem
59 cacert: |
60 -----BEGIN CERTIFICATE-----
61 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
62 -----END CERTIFICATE-----
63 cert: |
64 -----BEGIN CERTIFICATE-----
65 MIIGSjCCBDKgAwIBAgIJAIHRPs2rZbLvMA0GCSqGSIb3DQEBCwUAMEoxCzAJBgNV
66 -----END CERTIFICATE-----
67 key: |
68 -----BEGIN RSA PRIVATE KEY-----
69 MIIJKQIBAAKCAgEAq0m4kOIITliYea07yJnlSRNY0o6NaykiteSfHGauiub4lNQJ
70 -----END RSA PRIVATE KEY-----
71 ssl:
72 enabled: True
73 cacert_file: /etc/keystone/ssl/mysql/ca-cert.pem
74 cacert: |
75 -----BEGIN CERTIFICATE-----
76 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
77 -----END CERTIFICATE-----
78 message_queue:
79 port: 5671
80 ssl:
81 enabled: True
82 cacert_file: /etc/keystone/ssl/mysql/ca-cert.pem
83 cacert: |
84 -----BEGIN CERTIFICATE-----
85 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
86 -----END CERTIFICATE-----
Petr Michalece9a6c2a2017-03-05 20:14:34 +010087 top.sls:
88 base:
89 "*":
90 - linux_repo_openstack
91 - keystone
sgarbuz96532ba2018-11-16 13:14:57 +020092 - release
Petr Michalece9a6c2a2017-03-05 20:14:34 +010093
94verifier:
95 name: inspec
96 sudo: true
97
Martin Polreich757410e2018-12-17 16:00:42 +010098docker_images:
Martin Polreich5b026d72019-10-14 18:38:48 +020099 - &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/mirantis/drivetrain/salt-formulas-ci/salt-formulas-ci-xenial-2017.7:latest'%>
Martin Polreich757410e2018-12-17 16:00:42 +0100100
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100101platforms:
Martin Polreich757410e2018-12-17 16:00:42 +0100102 - name: xenial-2017.7
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100103 driver_config:
Martin Polreich757410e2018-12-17 16:00:42 +0100104 image: *xenial-20177
105 platform: ubuntu
106
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100107suites:
Martin Polreich5b026d72019-10-14 18:38:48 +0200108<% for os_version in ['pike','queens','rocky'] %>
Martin Polreich757410e2018-12-17 16:00:42 +0100109<% for mysql_version in ['5.7'] %>
110 - name: single_<%=mysql_version%>_<%=os_version%>
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100111 provisioner:
112 pillars-from-files:
113 keystone.sls: tests/pillar/single.sls
Martin Polreich757410e2018-12-17 16:00:42 +0100114 linux_repo_openstack.sls: tests/pillar/repo_mcp_openstack_<%=os_version%>.sls
sgarbuzc4b6ed92019-01-15 11:53:08 +0200115 state_top:
116 base:
117 "*":
118 - linux
119 - mysql
120 - apache
121 - keystone
sgarbuz96532ba2018-11-16 13:14:57 +0200122 pillars:
Martin Polreich757410e2018-12-17 16:00:42 +0100123 mysql_platform_specific.sls:
124 mysql:
125 server:
126 version: "<%=mysql_version%>"
sgarbuzc4b6ed92019-01-15 11:53:08 +0200127 release.sls:
128 keystone:
129 server:
130 version: <%=os_version%>
131 verifier:
132 inspec_tests:
133 - tests/integration/<%=os_version%>/single
Martin Polreich757410e2018-12-17 16:00:42 +0100134
135 - name: single_ssl_<%=mysql_version%>_<%=os_version%>
136 provisioner:
137 pillars-from-files:
138 keystone.sls: tests/pillar/single.sls
139 linux_repo_openstack.sls: tests/pillar/repo_mcp_openstack_<%=os_version%>.sls
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100140 state_top:
141 base:
142 "*":
143 - linux
144 - mysql
145 - apache
146 - keystone
Martin Polreich757410e2018-12-17 16:00:42 +0100147 pillars:
148 mysql_platform_specific.sls:
149 mysql:
150 server:
151 version: "<%=mysql_version%>"
sgarbuzc4b6ed92019-01-15 11:53:08 +0200152 top.sls:
153 base:
154 "*":
155 - linux_repo_openstack
156 - keystone
157 - release
158 - ssl
159 release.sls:
160 keystone:
161 server:
162 version: <%=os_version%>
163 verifier:
164 inspec_tests:
165 - tests/integration/<%=os_version%>/single
166 attributes:
167 ssl: true
Martin Polreich757410e2018-12-17 16:00:42 +0100168<% end %>
169<% end %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100170# vim: ft=yaml sw=2 ts=2 sts=2 tw=125