Vagrant file to bring up VM using Puppet

0 votes
I'm trying to provision a VM using vagrant and puppet. How should my vagrant file look?
Mar 12, 2019 in Puppet by Nisha
1,087 views

1 answer to this question.

0 votes

You vagrant file should look something like this, make the required.

config.vm.define "db" do |db|   
  db.vm.hostname = "db"    
  db.vm.network "private_network", ip: "10.11.1.201", virtualbox__intnet: true
  db.vm.provider "virtualbox" do |v| 
      v.memory = 1024 
  end 

  db.vm.network "forwarded_port", guest: 22, host: 2221, id: 'ssh', auto_correct: true
    db.vm.network "forwarded_port", guest: 5432, host: 2222
  db.ssh.forward_agent = true

       config.vm.provision :shell do |shell|
 shell.inline = "mkdir -p /etc/puppet/modules;
                 puppet module install puppetlabs-postgresql"

  end
       config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "puppet/manifests"
    puppet.manifest_file = "site.pp"
    puppet.module_path = "puppet/modules"
  end
    end
end
answered Mar 12, 2019 by Barbara

Related Questions In Puppet

+5 votes
2 answers

How To Deploy Windows Server Using Puppet?

Deploying windows server through Puppet is similar ...READ MORE

answered Mar 27, 2018 in Puppet by shubham
• 7,340 points
1,918 views
0 votes
1 answer
0 votes
1 answer

Error while trying to instal mssql tools using puppet

When you use puppet, you don't use ...READ MORE

answered Feb 25, 2019 in Puppet by Nandita
1,815 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,065 views
+2 votes
1 answer
0 votes
0 answers
0 votes
1 answer

Puppet+Kubernetes: Should i install Docker inorder to start using puppetlabs/kubernetes module?

The puppetlabs/kubernetes module installs and configures Kubernetes. You need ...READ MORE

answered Aug 23, 2019 in Puppet by Sirajul
• 59,230 points
770 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP