blob: f7a31a01b6362644ee5606814b2494b802cde7a4 [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:
99 - &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19'%>
100 - &xenial-stable <%=ENV['IMAGE_XENIAL_STABLE'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%>
101
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100102platforms:
Martin Polreich757410e2018-12-17 16:00:42 +0100103 - name: xenial-2017.7
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100104 driver_config:
Martin Polreich757410e2018-12-17 16:00:42 +0100105 image: *xenial-20177
106 platform: ubuntu
107
108 - name: xenial-stable
109 driver_config:
110 image: *xenial-stable
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100111 platform: ubuntu
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100112
113suites:
Martin Polreich757410e2018-12-17 16:00:42 +0100114<% for os_version in ['ocata','pike','queens','rocky'] %>
115<% for mysql_version in ['5.7'] %>
116 - name: single_<%=mysql_version%>_<%=os_version%>
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100117 provisioner:
118 pillars-from-files:
119 keystone.sls: tests/pillar/single.sls
Martin Polreich757410e2018-12-17 16:00:42 +0100120 linux_repo_openstack.sls: tests/pillar/repo_mcp_openstack_<%=os_version%>.sls
sgarbuzc4b6ed92019-01-15 11:53:08 +0200121 state_top:
122 base:
123 "*":
124 - linux
125 - mysql
126 - apache
127 - keystone
sgarbuz96532ba2018-11-16 13:14:57 +0200128 pillars:
Martin Polreich757410e2018-12-17 16:00:42 +0100129 mysql_platform_specific.sls:
130 mysql:
131 server:
132 version: "<%=mysql_version%>"
sgarbuzc4b6ed92019-01-15 11:53:08 +0200133 release.sls:
134 keystone:
135 server:
136 version: <%=os_version%>
137 verifier:
138 inspec_tests:
139 - tests/integration/<%=os_version%>/single
Martin Polreich757410e2018-12-17 16:00:42 +0100140
141 - name: single_ssl_<%=mysql_version%>_<%=os_version%>
142 provisioner:
143 pillars-from-files:
144 keystone.sls: tests/pillar/single.sls
145 linux_repo_openstack.sls: tests/pillar/repo_mcp_openstack_<%=os_version%>.sls
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100146 state_top:
147 base:
148 "*":
149 - linux
150 - mysql
151 - apache
152 - keystone
Martin Polreich757410e2018-12-17 16:00:42 +0100153 pillars:
154 mysql_platform_specific.sls:
155 mysql:
156 server:
157 version: "<%=mysql_version%>"
sgarbuzc4b6ed92019-01-15 11:53:08 +0200158 top.sls:
159 base:
160 "*":
161 - linux_repo_openstack
162 - keystone
163 - release
164 - ssl
165 release.sls:
166 keystone:
167 server:
168 version: <%=os_version%>
169 verifier:
170 inspec_tests:
171 - tests/integration/<%=os_version%>/single
172 attributes:
173 ssl: true
Martin Polreich757410e2018-12-17 16:00:42 +0100174<% end %>
175<% end %>
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100176# vim: ft=yaml sw=2 ts=2 sts=2 tw=125