-
Notifications
You must be signed in to change notification settings - Fork 2
/
.kitchen.yml
65 lines (61 loc) · 2.2 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
<%
require 'yaml'
formula = YAML.load_file('metadata.yml')
formula_name = formula['name']
%>
---
driver:
name: vagrant
hostname: freebsd.ci.local
linked_clone: true
cache_directory: false
require_chef_omnibus: false
vagrantfiles:
- test/vagrant/network_config.rb
provisioner:
name: salt_solo
salt_install: bootstrap
salt_bootstrap_options: "-x python3 -X -p git -p curl -p ca_root_nss -p py37-pip -p python3 -p python37 git %s"
salt_version: 'v2019.2.5'
<% if ENV['SALT_BOOTSTRAP_URL'] %>
salt_bootstrap_url: <%= ENV['SALT_BOOTSTRAP_URL'] %>
<% end %>
salt_copy_filter:
- .kitchen
- .git
- .ssh
log_level: <%= ENV['SALT_DEBUG_LEVEL'] || 'info' %>
pillars-from-files:
<%= formula_name %>.sls: pillar.example
pillars:
top.sls:
base:
'*':
- <%= formula_name %>
log_level: <%= ENV['SALT_DEBUG_LEVEL'] || 'info' %>
formula: <%= formula_name %>
state_top:
base:
'*':
- <%= formula_name %>
platforms:
- name: freebsd-11.3
driver:
box: generic/freebsd11
- name: freebsd-12.1
driver:
box: generic/freebsd12
suites:
- name: default
driver:
provision: True
network:
<% if ENV['VAGRANT_DEFAULT_PROVIDER'] == 'libvirt' %>
- ["private_network", {adapter: 1, libvirt__adapter: 1, ip: "1.1.1.4", libvirt__forward_mode: "none", autostart: true, auto_config: false, virtualbox__intnet: "FREEBSD-FORMULA", libvirt__network_name: "FREEBSD-FORMULA"}]
- ["private_network", {adapter: 2, libvirt__adapter: 2, ip: "1.1.1.5", libvirt__forward_mode: "none", autostart: true, auto_config: false, virtualbox__intnet: "FREEBSD-FORMULA", libvirt__network_name: "FREEBSD-FORMULA"}]
- ["private_network", {adapter: 3, libvirt__adapter: 3, ip: "1.1.1.6", libvirt__forward_mode: "none", autostart: true, auto_config: false, virtualbox__intnet: "FREEBSD-FORMULA", libvirt__network_name: "FREEBSD-FORMULA"}]
<% else %>
- ["private_network", {":adapter => 2", virtualbox__intnet: "FREEBSD-FORMULA"}]
- ["private_network", {":adapter => 3", virtualbox__intnet: "FREEBSD-FORMULA"}]
- ["private_network", {":adapter => 4", virtualbox__intnet: "FREEBSD-FORMULA"}]
<% end %>