-
Notifications
You must be signed in to change notification settings - Fork 0
/
VagrantMachines.yml
84 lines (82 loc) · 2.54 KB
/
VagrantMachines.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
# VagrantMachine.yml
#
# List of hosts to be created by Vagrant.
# This file controls the Vagrant settings, specifically host name and network settings.
# You should at least have a `name:`.
# Other optional settings that can be specified:
#
# * `hostname`:
# Specify the hostname for the machine
#
# * `box`:
# by default the vagrant box ubuntu/xenial64 will be used.
# If you want a different box, specify it.
#
# * `cpus`:
# by default the vagrnat box will be configured with 1 cpu
# If more are required, specify the count.
#
# * `memory`:
# by default the vagrnat box will be configured with 512 mb
# If more is required, specify the size in mb.
#
# * `forwarded_ports`:
# A list of forwarded ports. Required items are `host` and 'guest`
# For the possible options, see the Vagrant documentation[1].
#
# * `shell_always`:
# a list of shell scripts to be run after boot of the machine.
# For the possible options, see the Vagrant documentation[2].
# Required field is `cmd` having the path
#
# * `synced_folders`:
# A list of dicts that specify synced folders.
# `src` and `dest` are mandatory, `options:` are optional.
# For the possible options, see the Vagrant documentation[3].
# Keys of options should be prefixed with a colon, e.g. `:owner:`.
#
# * `network`:
# specify config for public or private network configuration
# each network type will accept the following parameters.
#
# * `address`:
# by default, an IP will be assigned by DHCP.
# If you want a fixed address, specify it.
#
# * `netmask`:
# by default, the network mask is `255.255.255.0`.
# If you want another one, it should be specified.
#
# * `mac`:
# The MAC address to be assigned to the NIC.
# Several notations are accepted
# "Linux-style" (`00:11:22:33:44:55`)
# "Windows-style" (`00-11-22-33-44-55`).
# The separator characters can be omitted altogether (`001122334455`).
#
# * `intnet`:
# If set to `true`, the network interface will be attached to an
# internal network rather than a host-only adapter.
#
# * `auto_config`:
# If set to `false`, Vagrant will not attempt to configure the network interface.
#
# [1] https://www.vagrantup.com/docs/networking/forwarded_ports.html
# [2] https://www.vagrantup.com/docs/provisioning/shell.html
# [3] https://www.vagrantup.com/docs/synced-folders/basic_usage.html
---
- box: "bento/ubuntu-16.10"
cpus: "2"
memory: "1024"
hostname: "node01"
vb_group: "/devops"
debops_groups:
- "debops_all_hosts"
network:
public:
address: "192.168.1.191"
gateway: "192.168.1.1"
netmask: "255.255.255.0"
private:
type: dhcp
intnet: true