-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathkitchen.vagrant.yml
More file actions
144 lines (122 loc) · 4.92 KB
/
kitchen.vagrant.yml
File metadata and controls
144 lines (122 loc) · 4.92 KB
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
---
# All the options for kitchen-vagrant enumerated and annotated
# options are illustrated where they most commonly would be set
driver:
name: vagrant
# If not set, check for the environment variable `VAGRANT_DEFAULT_PROVIDER`
# If that is unset, default to `virtualbox`
# provider: virtualbox
# If `true` check if the box is up-to-date
# box_check_update: nil
# If `true`, then SSL certificates from the server will not be verified.
# box_download_insecure: nil
# A relative path to a CA certificate bundle
# for verifying endpoints with custom certificates
# box_download_ca_cert: nil
# Integer for setting custom boot timeout
# boot_timeout: nil
# Hash for passing k/v options to specific
# providers for customization
# emtpy by default
# customize:
# memory: 1024
# cpuexecutioncap: 50
# If `true`, allows GUI mode for Vagrant providers
# that support this feature
# gui: nil
# If `true`, use "Linked Clones" or "Differencing Disk"
# options for providers that support this feature
# This can reduce disk usage and offer performance benefits.
# linked_clone: nil
# An Array of network customizations for the virtual machine.
# Each Array element is itself an Array of arguments to be passed to the
# config.vm.network method
# network: []
# An optional hook to run a command immediately prior to
# the `vagrant up --no-provisioner` command being executed.
# **CAUTION**
# pre_create_command: nil
# Enables Vagrant built-in provisioning
# Useful in conjunction with `vagrantfiles`
# provision: false
# Hash for passing k/v options to Vagrant's SSH
# configuration. Only needed for advanced/custom
# configuration. **CAUTION**
# ssh: {}
#
# Example: To use a custom SSH port inside the guest VM
# (useful when SSH daemon is configured to listen on a non-standard port):
# ssh:
# guest_port: 444
#
# This tells Vagrant that SSH is listening on port 444 inside the VM
# instead of the default port 22. Vagrant will still forward this to
# a high port on the host (e.g., 2222), but will connect to port 444
# inside the guest.
# An array of arrays that configure a synced folder
# This value is automatically configured if using
# the `cache_directory` option. Otherwise, empty.
# Options can be specified as a String (backward compatible) or Hash
# synced_folders:
# - ["data/%{instance_name}", "/opt/instance_data"]
# - ["/host_path", "/vm_path", "create: true, type: :nfs"]
# # For SMB shares (useful with Hyper-V), use Hash format:
# - ["C:\\local\\path", "C:\\remote\\path", {type: "smb", smb_username: "user", smb_password: "pass"}]
# This should only need to get set if the Vagrant binary
# isn't in the PATH or there is a specific location desired
# vagrant_binary: "vagrant"
# By default, use the Vagrantfile.erb that is part of the gem
# otherwise use whatever the user provides here. **CAUTION**
# vagrantfile_erb: Alt_Vagrantfile.erb
# An array of paths to Vagrantfiles
# Empty by default
# vagrantfiles: []
# An array of environment variables to set in the VM
# These are written to /etc/profile.d/kitchen.sh and are available
# to all users and processes including Chef runs
# Empty by default
# env:
# - AWS_REGION=<%= ENV['AWS_REGION'] %>
# - AWS_ACCESS_KEY_ID=<%= ENV['AWS_ACCESS_KEY_ID'] %>
# - AWS_SECRET_ACCESS_KEY=<%= ENV['AWS_SECRET_ACCESS_KEY'] %>
# We only set this to a path for a subset of known bento boxes
# driver.windows_os? ? "/omnibus/cache" : "/tmp/omnibus/cache"
# if set to `false` this will disable caching entirely
# cache_directory: /tmp/omnibus/cache
# Path to kitchen's global cache directory, primarily for caching
# chef-client downlaods
# Default is File.expand_path("~/.kitchen/cache")
# kitchen_cache_directory: /Users/cheeseplus/.kitchen/cache
# If `box` or `machine`, sets the respective value for
# config.cache.scope. Any other truthy value yields `box`
# cachier: nil
provisioner:
name: chef_zero
verifier:
name: inspec
platforms:
# We will grab boxes from bento on Vagrant Cloud
# for a set of common platforms
- name: ubuntu-20.04
- name: centos-8
# Otherwise for platforms we don't know, the box needs to exist locally
# and be known to Vagrant, otherwise provide `box` or `box_url`
- name: openbsd-5.6
driver:
# Versioned boxes from Vagrant Cloud can be utilized
# `box_version` only works when `box` uses the Vagrant Cloud syntax
# box: organization/openbsd-56
# box_version: 1.2.3
# If not using Vagrant Cloud, the box can be fetched
# remotely via `http(s)://` or locally via `file://`
# `box` requires a value
box: openbsd-5.6
box_url: http://url.tld/openbsd-5.6.box
suites:
- name: default
driver:
# If Windows, this is nil otherwise it's set to
# "#{driver.instance.name}.vagrantup.com"
# vm_hostname: "custom.tld"
run_list:
- recipe[cookbook::default]