blob: eee6cdf2abb7fb4b101686d5c05a186f67387e7c [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
Petr Michalece9a6c2a2017-03-05 20:14:34 +010021 - name: apache
22 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020023 source: https://gerrit.mcp.mirantis.com/salt-formulas/apache
Petr Michalece9a6c2a2017-03-05 20:14:34 +010024 - name: memcached
25 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020026 source: https://gerrit.mcp.mirantis.com/salt-formulas/memcached
Petr Michalece9a6c2a2017-03-05 20:14:34 +010027 - name: rabbitmq
28 repo: git
sgarbuz96532ba2018-11-16 13:14:57 +020029 source: https://gerrit.mcp.mirantis.com/salt-formulas/rabbitmq
30 - name: oslo_templates
31 repo: git
32 source: https://gerrit.mcp.mirantis.com/salt-formulas/oslo-templates
33 - name: mysql
34 repo: git
35 source: https://gerrit.mcp.mirantis.com/salt-formulas/mysql
Petr Michalece9a6c2a2017-03-05 20:14:34 +010036 state_top:
37 base:
38 "*":
39 - linux
Petr Michalece9a6c2a2017-03-05 20:14:34 +010040 - keystone
41 pillars:
sgarbuz96532ba2018-11-16 13:14:57 +020042 ssl.sls:
43 keystone:
44 server:
45 identity:
46 protocol: https
47 database:
48 x509:
49 enabled: True
50 ca_file: /etc/keystone/ssl/mysql/ca-cert.pem
51 key_file: /etc/keystone/ssl/mysql/client-key.pem
52 cert_file: /etc/keystone/ssl/mysql/client-cert.pem
53 cacert: |
54 -----BEGIN CERTIFICATE-----
55 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
56 -----END CERTIFICATE-----
57 cert: |
58 -----BEGIN CERTIFICATE-----
59 MIIGSjCCBDKgAwIBAgIJAIHRPs2rZbLvMA0GCSqGSIb3DQEBCwUAMEoxCzAJBgNV
60 -----END CERTIFICATE-----
61 key: |
62 -----BEGIN RSA PRIVATE KEY-----
63 MIIJKQIBAAKCAgEAq0m4kOIITliYea07yJnlSRNY0o6NaykiteSfHGauiub4lNQJ
64 -----END RSA PRIVATE KEY-----
65 ssl:
66 enabled: True
67 cacert_file: /etc/keystone/ssl/mysql/ca-cert.pem
68 cacert: |
69 -----BEGIN CERTIFICATE-----
70 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
71 -----END CERTIFICATE-----
72 message_queue:
73 port: 5671
74 ssl:
75 enabled: True
76 cacert_file: /etc/keystone/ssl/mysql/ca-cert.pem
77 cacert: |
78 -----BEGIN CERTIFICATE-----
79 MIIFzzCCA7egAwIBAgIIe7zZ8hCvkgowDQYJKoZIhvcNAQELBQAwSjELMAkGA1UE
80 -----END CERTIFICATE-----
Petr Michalece9a6c2a2017-03-05 20:14:34 +010081 top.sls:
82 base:
83 "*":
84 - linux_repo_openstack
85 - keystone
sgarbuz96532ba2018-11-16 13:14:57 +020086 - release
Petr Michalece9a6c2a2017-03-05 20:14:34 +010087
88verifier:
89 name: inspec
90 sudo: true
91
Martin Polreich757410e2018-12-17 16:00:42 +010092docker_images:
93 - &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19'%>
94 - &xenial-stable <%=ENV['IMAGE_XENIAL_STABLE'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%>
95
Petr Michalece9a6c2a2017-03-05 20:14:34 +010096platforms:
Martin Polreich757410e2018-12-17 16:00:42 +010097 - name: xenial-2017.7
Petr Michalece9a6c2a2017-03-05 20:14:34 +010098 driver_config:
Martin Polreich757410e2018-12-17 16:00:42 +010099 image: *xenial-20177
100 platform: ubuntu
101
102 - name: xenial-stable
103 driver_config:
104 image: *xenial-stable
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100105 platform: ubuntu
Petr Michalece9a6c2a2017-03-05 20:14:34 +0100106
107suites:
Martin Polreich757410e2018-12-17 16:00:42 +0100108<% for os_version in ['ocata','pike','queens','rocky'] %>
109<% 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