Changeset View
Changeset View
Standalone View
Standalone View
Vagrantfile
Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | Vagrant.configure("2") do |global_config| | ||||
end | end | ||||
global_config.vm.define :"pergamon" do |config| | global_config.vm.define :"pergamon" do |config| | ||||
# config.ssh.insert_key = false | # config.ssh.insert_key = false | ||||
config.vm.box = $global_debian10_box | config.vm.box = $global_debian10_box | ||||
config.vm.box_url = $global_debian10_box_url | config.vm.box_url = $global_debian10_box_url | ||||
config.vm.box_check_update = false | config.vm.box_check_update = false | ||||
config.vm.hostname = "pergamon.internal.softwareheritage.org" | config.vm.hostname = "pergamon.softwareheritage.org" | ||||
config.vm.network :private_network, ip: "10.168.100.29", netmask: "255.255.0.0" | config.vm.network :private_network, ip: "10.168.100.29", netmask: "255.255.0.0" | ||||
config.vm.synced_folder "/tmp/puppet/", "/tmp/puppet", type: 'nfs' | config.vm.synced_folder "/tmp/puppet/", "/tmp/puppet", type: 'nfs' | ||||
# ssl certificates share | # ssl certificates share | ||||
# As a puppet master, the path is different compared to the other servers | # As a puppet master, the path is different compared to the other servers | ||||
config.vm.synced_folder "vagrant/le_certs", "/var/lib/puppet/letsencrypt_exports", type: 'nfs' | config.vm.synced_folder "vagrant/le_certs", "/var/lib/puppet/letsencrypt_exports", type: 'nfs' | ||||
config.vm.synced_folder "/tmp/puppet/", "/etc/puppet/code", type: 'nfs' | |||||
config.vm.provider :libvirt do |provider| | config.vm.provider :libvirt do |provider| | ||||
provider.memory = 512 | provider.memory = 512 | ||||
provider.cpus = 2 | provider.cpus = 2 | ||||
# local test run: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/45 | # local test run: https://github.com/vagrant-libvirt/vagrant-libvirt/issues/45 | ||||
provider.driver = 'kvm' | provider.driver = 'kvm' | ||||
end | end | ||||
config.vm.provision "puppet" do |puppet| | config.vm.provision "puppet" do |puppet| | ||||
puppet.environment_path = "#{environment_path}" | puppet.environment_path = "#{environment_path}" | ||||
puppet.environment = "production" | puppet.environment = "production" | ||||
puppet.hiera_config_path = "#{puppet.environment_path}/#{puppet.environment}/hiera.yaml" | puppet.hiera_config_path = "#{puppet.environment_path}/#{puppet.environment}/hiera.yaml" | ||||
puppet.manifest_file = "#{manifest_file}" | puppet.manifest_file = "#{manifest_file}" | ||||
puppet.manifests_path = "#{manifests_path}" | puppet.manifests_path = "#{manifests_path}" | ||||
puppet.options = "#{puppet_options}" | puppet.options = "#{puppet_options}" | ||||
puppet.facter = puppet_staging_facts | puppet.facter = puppet_production_facts | ||||
puppet.synced_folder_type = 'nfs' | puppet.synced_folder_type = 'nfs' | ||||
end | end | ||||
end | end | ||||
################ | ################ | ||||
## PRODUCTION | ## PRODUCTION | ||||
################ | ################ | ||||
global_config.vm.define :"prod-worker01" do |config| | global_config.vm.define :"prod-worker01" do |config| | ||||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |