# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "ubuntu/xenial64" config.vm.box_url = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box" config.vm.network "forwarded_port", guest: 9090, host: 9090 config.vm.network "forwarded_port", guest: 3000, host: 3000 config.vm.network "forwarded_port", guest: 8000, host: 8000 config.vm.network "forwarded_port", guest: 8001, host: 8001 config.vm.provision "shell" do |s| s.inline = "cd /tmp &&/usr/bin/apt-get -y install unzip wget && /usr/bin/wget -q https://apt.puppetlabs.com/puppet-release-xenial.deb -O /tmp/puppet-release-xenial.deb && /usr/bin/dpkg -i /tmp/puppet-release-xenial.deb && /usr/bin/apt update && /usr/bin/apt -y install puppet-agent" end config.vm.provision :puppet do |puppet| puppet.hiera_config_path = "puppet/ext/hiera.yaml" puppet.manifest_file = "puppet/site.pp" puppet.manifests_path = "puppet/" puppet.module_path = "puppet/modules" puppet.manifest_file = "site.pp" end config.vm.provision "shell" do |s| s.inline = "wget -q 'https://bintray.com/kong/kong-community-edition-deb/download_file?file_path=dists/kong-community-edition-0.13.0.xenial.all.deb' -O /tmp/kong.deb && sudo dpkg -i /tmp/kong.deb ; wget -q 'https://github.com/prometheus/statsd_exporter/releases/download/v0.6.0/statsd_exporter-0.6.0.linux-amd64.tar.gz' -O /tmp/statsd_exporter.tar.gz; tar -zxvf /tmp/statsd_exporter.tar.gz" end end