How to use this box with Vagrant:

Vagrant.configure("2") do |config|
  config.vm.box = "gutocarvalho/centos7x64puppetserver5"
end
vagrant init gutocarvalho/centos7x64puppetserver5
vagrant up

This version was created about 2 months ago.

CentOS 7.4.1708 64Bits with Puppet 5.2.0 and Puppet Server 5.1.0 for development and test.

Source

https://gitlab.com/gutocarvalho/packer-centos7-puppetserver
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (725 MB)

This version was created about 1 year ago.

CentOS 7.3.1611 64Bits with Puppet 5.0.0 and Puppet Server 5.0.0 for development and test.

Source

https://gitlab.com/gutocarvalho/packer-centos7-puppetserver
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (688 MB)

This version was created 10 months ago.

CentOS 7.3.1611 64Bits with Puppet 4.9.0 and Puppet Server 2.7.2 for development and test.

Use o vagrantfile abaixo.

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.hostname = "puppetserver.hacklab"
  config.vm.box = "gutocarvalho/centos7x64-puppetserver"
  config.vm.network "private_network", ip: "192.168.250.46"
  config.vm.provider "virtualbox" do |virtualbox|
    virtualbox.customize [ "modifyvm", :id, "--cpus", "2" ]
    virtualbox.customize [ "modifyvm", :id, "--memory", "4096" ]
  end
end

Mantenha o nome da VM puppetserver.hacklab pois com esse nome o serviço já funciona com um simples vagrant up.

Se você quiser trocar o nome vai ter que regerar os certificados do master, será necessário rodar os comandos abaixo após o vagrant up.

server puppetserver stop
rm -rf /etc/puppetlabs/puppet/ssl
echo IP fqdn hostname puppet >> /etc/hosts
service puppetserver start
1 provider for this version.
  • virtualbox Hosted by Vagrant Cloud (634 MB)