Vagrantfile 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. config.vm.box = "ubuntu/xenial64"
  5. config.vm.box_url = "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-vagrant.box"
  6. config.vm.network "forwarded_port", guest: 9090, host: 9090
  7. config.vm.network "forwarded_port", guest: 3000, host: 3000
  8. config.vm.network "forwarded_port", guest: 8000, host: 8000
  9. config.vm.network "forwarded_port", guest: 8001, host: 8001
  10. config.vm.provision "shell" do |s|
  11. 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"
  12. end
  13. config.vm.provision :puppet do |puppet|
  14. puppet.hiera_config_path = "puppet/ext/hiera.yaml"
  15. puppet.manifest_file = "puppet/site.pp"
  16. puppet.manifests_path = "puppet/"
  17. puppet.module_path = "puppet/modules"
  18. puppet.manifest_file = "site.pp"
  19. end
  20. config.vm.provision "shell" do |s|
  21. 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"
  22. end
  23. end