-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
38 lines (29 loc) · 1.08 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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-22.04"
config.vm.box_url = "https://app.vagrantup.com/bento/boxes/ubuntu-22.04"
config.vm.synced_folder ".", "/etc/puppetlabs/code/environments/production/modules/jq"
config.vm.provision :shell, inline: <<-EOF
readonly source_file="puppet8-release-jammy.deb"
readonly source_url="https://apt.puppetlabs.com/"
if [ -f ${source_file} ]; then
echo "File ${source_file} exists."
else
echo "File ${source_file} does not exist."
echo "Downloading it from ${source_url}${source_file}"
apt-get install -y wget
wget ${source_url}${source_file}
dpkg -i ${source_file}
apt-get update
apt-get install -y puppet-agent
fi
puppet module install puppetlabs/stdlib
EOF
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "examples"
puppet.manifest_file = "init.pp"
# puppet.module_path = ["."]
# puppet.options = "../"
# puppet.options = "--verbose --debug"
end
end