-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkitchen.vagrant.yml
40 lines (34 loc) · 1.04 KB
/
kitchen.vagrant.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
---
driver:
name: vagrant
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
chef_license: accept-no-persist
provision: true
provider: parallels
provisioner:
name: chef_zero
verifier:
name: inspec
# NOTE: Right now, only RHEL based distros support ENV variables being passed
# in by the lifecycle hooks. Also, RHEL 9 based distros have an issue with the
# test kitchen SSH connection. So, we are skipping RHEL 9 for now.
platforms:
- name: almalinux-8
- name: centos-7
suites:
- name: default
run_list:
- recipe[test::default]
verifier:
inspec_tests:
- test/integration/default
lifecycle:
post_create:
- remote: |
sudo tee "/etc/profile.d/vars.sh" > "/dev/null" <<EOF
export FALCON_CLIENT_ID=<%= ENV['FALCON_CLIENT_ID'] %>
export FALCON_CLIENT_SECRET=<%= ENV['FALCON_CLIENT_SECRET'] %>
export FALCON_CLOUD=<%= ENV['FALCON_CLOUD'] %>
export FALCON_CID=<%= ENV['FALCON_CID'] %>
export FALCON_VERSION=<%= ENV['FALCON_VERSION'] || '6.44.14108' %>
EOF