-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkitchen.yml
86 lines (79 loc) · 2.9 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
---
driver:
name: azurerm
subscription_id: <%= ENV['AZURE_SUBSCRIPTION_ID'] %>
location: <%= ENV['AZURE_LOCATION'] || 'uksouth' %>
machine_size: Standard_D4s_v3
<%= ENV['RG_NAME'] ? format('explicit_resource_group_name: %s', ENV['RG_NAME']) : '' %>
transport:
ssh_key: ~/.ssh/id-kitchen-azurerm
provisioner:
name: chef_zero
log_level: <%= ENV['CHEF_LOG_LEVEL'] || 'info' %>
product_name: chef
product_version: 15
verifier:
name: inspec
reporter:
- cli
- junit:test/%{platform}_%{suite}_inspec.xml
platforms:
- name: ubuntu-18.04
driver:
image_urn: Canonical:UbuntuServer:18.04-LTS:latest
data_disks:
- lun: 0
disk_size_gb: 100
suites:
- name: automate
# Add lifecycle hook to handle the setup of the hosts file
# This configures the necessary alias to contact the local Automate instance to
# obtain a trial license
lifecycle:
post_create:
- remote: sudo sh -c 'echo "127.0.0.1 automate-gateway" >> /etc/hosts'
provisioner:
policyfile: policyfiles/server_setup.rb
attributes:
camsa:
clean: true
managed_app: <%= ENV['MANAGED_APP'] || false %>
automate:
download:
channel: <%= ENV['AUTOMATE_DOWNLOAD_CHANNEL'] || "current" %>
azure_functions:
camsa:
url: <%= ENV['AF_CAMSA_URL'] || ENV['AZDO_APIBASEURL'] %>
apikey: <%= ENV['AF_CAMSA_APIKEY'] || ENV['AZDO_FUNCTIONHOSTKEY'] %>
central:
url: <%= ENV['AF_CENTRAL_URL'] %>
apikey: <%= ENV['AF_CENTRAL_APIKEY'] %>
firstname: <%= ENV['CAMSA_FIRSTNAME'] || 'Foo' %>
lastname: <%= ENV['CAMSA_LASTNAME'] || 'Bar' %>
emailaddress: <%= ENV['CAMSA_EMAILADDRESS'] || '[email protected]' %>
username: <%= ENV['CAMSA_USERNAME'] || 'foobar' %>
password: <%= ENV['CAMSA_PASSWORD'] || 'Chef123!' %>
storage_account:
name: <%= ENV['SA_NAME'] || 'tkstorage' %>
access_key: <%= ENV['SA_ACCESS_KEY'] || 'bXl3b25kZXJmdWxpbnZhbGlkcGFzc3dvcmQK' %>
container_name: <%= ENV['SA_CONTAINER_NAME'] || 'backup' %>
chefserver:
org:
name: <%= ENV['CHEF_ORG'] || 'acme' %>
description: <%= ENV['CHEF_ORG_DESCRIPTION'] || 'Acme Ltd' %>
verifier:
inspec_tests:
- path: test/integration/camsa
attributes:
username: <%= ENV['CAMSA_USERNAME'] || 'foobar' %>
managed_app: <%= ENV['MANAGED_APP'] || false %>
automate_fqdn: <%= ENV['AUTOMATE_FQDN'] || 'tk-automate.managedautomate.io' %>
customer_name: <%=
firstname = ENV['CAMSA_FIRSTNAME'] || 'Foo'
lastname = ENV['CAMSA_LASTNAME'] || 'Bar'
'%s %s' % [firstname, lastname]
%>
driver:
vm_hostname: camsa-tk-automate
vm_tags:
x-pip-fqdn: <%= ENV['AUTOMATE_FQDN_PIP'] || 'camsa-tk-automate.westeurope.cloudapp.azure.com' %>