forked from forseti-security/terraform-google-forseti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
177 lines (165 loc) · 5.42 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
platforms:
- name: local
provisioner:
name: terraform
suites:
- name: simple_example
driver:
name: terraform
root_module_directory: test/fixtures/simple_example
command_timeout: 1800
verifier:
name: terraform
color: false
systems:
- name: gcp
backend: gcp
controls:
- forseti
- name: server
backend: ssh
controls:
- server
hosts_output: forseti-server-vm-ip
user: ubuntu
key_files:
- test/fixtures/simple_example/sshkey
proxy_command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o LogLevel=ERROR -o ForwardAgent=no -i test/fixtures/bastion/tls_private_key ubuntu@<%= `terraform output -state test/fixtures/simple_example/terraform.tfstate.d/kitchen-terraform-simple-example-local/terraform.tfstate bastion_host`.strip %> -p 22 -W %h:%p
shell: true
shell_options: "--login"
- name: forseti-client
backend: ssh
controls:
- client
hosts_output: forseti-client-vm-ip
user: ubuntu
key_files:
- test/fixtures/simple_example/sshkey
proxy_command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o LogLevel=ERROR -o ForwardAgent=no -i test/fixtures/bastion/tls_private_key ubuntu@<%= `terraform output -state test/fixtures/simple_example/terraform.tfstate.d/kitchen-terraform-simple-example-local/terraform.tfstate bastion_host`.strip %> -p 22 -W %h:%p
shell: true
shell_options: "--login"
- name: org-iam
backend: local
controls:
- forseti-org-iam
lifecycle:
pre_verify:
- chmod go-rwx test/fixtures/bastion/tls_private_key
- name: shared_vpc
driver:
name: terraform
command_timeout: 1800
root_module_directory: test/fixtures/shared_vpc
verifier:
name: terraform
color: false
systems:
- name: shared_vpc
backend: gcp
shell: true
controls:
- forseti-service-project
- forseti-shared-project
- forseti-server
- forseti-client
- forseti-shared-firewall
- forseti
- name: gcloud
backend: local
controls:
- forseti-subnetwork
- forseti-org-iam
- name: server
backend: ssh
controls:
- forseti-command-server
- server
hosts_output: forseti-server-vm-public-ip
user: ubuntu
key_files:
- test/fixtures/shared_vpc/sshkey
shell: true
shell_options: "--login"
- name: forseti-client
backend: ssh
controls:
- forseti-command-client
- client
hosts_output: forseti-client-vm-public-ip
user: ubuntu
key_files:
- test/fixtures/shared_vpc/sshkey
shell: true
shell_options: "--login"
provisioner:
name: terraform
- name: real_time_enforcer_roles
driver:
name: terraform
root_module_directory: test/fixtures/real_time_enforcer_roles
command_timeout: 1800
verifier:
name: terraform
color: false
systems:
- name: local
backend: local
- name: real_time_enforcer
lifecycle:
pre_verify:
- local: test/fixtures/real_time_enforcer/modules/enforcer_target/helpers/create-enforcer-fixtures.sh
post_verify:
- local: test/fixtures/real_time_enforcer/modules/enforcer_target/helpers/destroy-enforcer-fixtures.sh
pre_destroy:
- local: test/fixtures/real_time_enforcer/modules/enforcer_target/helpers/destroy-enforcer-fixtures.sh
driver:
name: terraform
root_module_directory: test/fixtures/real_time_enforcer
command_timeout: 1800
verifier:
name: terraform
color: false
systems:
- name: gcp
backend: gcp
controls:
- real-time-enforcer-gcp
- real-time-enforcer-target-gcp
- name: real-time-enforcer-host
backend: ssh
controls:
- real-time-enforcer-host
hosts_output: forseti-rt-enforcer-vm-public-ip
user: ubuntu
key_files:
- test/fixtures/real_time_enforcer/sshkey
shell: true
shell_options: "--login"
- name: gcloud
backend: local
controls:
- real-time-enforcer-gcloud
- name: real_time_enforcer_sinks
driver:
name: terraform
command_timeout: 1800
root_module_directory: test/fixtures/real_time_enforcer_sinks
verifier:
name: terraform
color: false
systems:
- name: gcloud
backend: local