-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
41 lines (33 loc) · 1.13 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
# config.vm.box_check_update = false
# disable default shared folder
config.vm.synced_folder ".", "/vagrant", disabled: false
config.vm.define "awx" do |vm_config|
vm_config.vm.hostname = "awx"
vm_config.vm.network :private_network, ip: "192.168.33.11"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "site.yml"
ansible.groups = {
"training-awx" => [ "awx" ]
}
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.linked_clone = true
end
end
#
# View the documentation for the provider you are using for more
# information on available options.
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y apache2
# SHELL
end