-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathenvironment.yml
122 lines (120 loc) · 3.51 KB
/
environment.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
---
# Global provisioners will run against every node in the order specified.
# These provisioners run after all node specific provisioners if defined.
#
# For node specific provisioners add at the node level
provisioners: []
# - type: shell
# inline: |
# if [ -f /etc/os-release ]; then
# os_name="$(awk -F= '/^NAME/{ print $2 }' /etc/os-release | sed 's/"//g')"
# os_version_id="$(awk -F= '/^VERSION_ID/{ print $2}' /etc/os-release | sed 's/"//g')"
# echo $os_name
# echo $os_version_id
# fi
# privileged: true
# - type: shell
# path:
# - scripts/test.sh
# privileged: false
# - type: ansible_local
# playbooks:
# - /vagrant/playbooks/test.yml
# - type: ansible
# playbooks:
# - playbooks/test.yml
# Synced folders
# Additional synced folders.
# By default scripts and playbooks are synced, and available in each node as:
# /playbooks, /scripts, /vagrant/playbooks, and /vagrant/scripts. They are
# duplicated because of the symlinks within /vagrant. This is as designed.
synced_folders:
[]
# - type: nfs
# src: example1/
# mountpoint: /example1
# - type: rsync
# src: example2/
# mountpoint: /example2
# Define nodes which are required for the environment you intend on creating.
nodes:
- name: node0
ansible_groups:
- test_nodes
box: mrlesmithjr/bionic64
# Defines if nodes guest OS is a desktop flavor
desktop: false
# Defines if synced folders should be disabled
disable_synced_folders: false
disks:
[]
# - size: 10
# controller: "SATA Controller"
# - size: 10
# controller: "SATA Controller"
# https://www.vagrantup.com/docs/vmware/configuration.html#functional_hgfs
functional_hgfs: true
interfaces:
[]
# - ip: 192.168.250.10
# auto_config: true
# method: static
# - ip: 192.168.1.10
# auto_config: false
# method: static
# network_name: network-1
linked_clone: true
mem: 512
# Defines whether or not nested virtualization is enabled
# Currently only works on VMware boxes
nested_virtualization: false
provision: false
# Node specific provisioners
# For Ansible, only ansible_local type will work
provisioners:
[]
# - type: shell
# inline: |
# if [ -f /etc/os-release ]; then
# os_name="$(awk -F= '/^NAME/{ print $2 }' /etc/os-release | sed 's/"//g')"
# os_version_id="$(awk -F= '/^VERSION_ID/{ print $2}' /etc/os-release | sed 's/"//g')"
# echo $os_name
# echo $os_version_id
# fi
# privileged: true
# - type: shell
# path:
# - scripts/test.sh
# privileged: false
# - type: ansible_local
# playbooks:
# - /vagrant/playbooks/test.yml
# https://www.vagrantup.com/docs/vmware/configuration.html#ssh_info_public
ssh_use_public_ip: false
vcpu: 1
port_forwards:
[]
# - guest: 80
# host: 8080
# - guest: 443
# host: 4433
# Defines if nodes guest OS is Windows
windows: false
# - name: node1
# ansible_groups:
# - test_nodes
# box: mrlesmithjr/bionic64
# desktop: false
# disks: []
# interfaces:
# - ip: 192.168.250.11
# auto_config: true
# method: static
# linked_clone: true
# mem: 512
# provision: true
# # Node specific provisioners
# provisioners: []
# vcpu: 1
# port_forwards: []
# windows: false