Here is a working example, try to see what you can pull from it - https://github.com/ferventcoder/dayofdevops/tree/master/lab02-firehose
Also, unless you are using multi-machine configuration, there is no reason to do config.vm.define. Note this line to provide you more information: config.vm.provision :puppet, :options => ["--debug --trace --verbose"] do |puppet| If you are still running into problems, try setting the VAGRANT_LOG variable for more information - see http://docs.vagrantup.com/v2/other/debugging.html On Tue, May 20, 2014 at 11:10 AM, Rafaella Keury <[email protected]>wrote: > Hi Felix! > Thanks a lot for your answer, but it still doesn't work and I get the same > error. > > Em terça-feira, 20 de maio de 2014 08h26min49s UTC-7, Felix Massem > escreveu: > >> HeyRafaella, >> >> try this in your Vagrant File >> >> # provisioning with puppet >> server.vm.provision "puppet" do |puppet| >> puppet.manifests_path = "manifests" >> puppet.manifest_file = "db.pp" >> puppet.module_path = "modules" >> end >> >> cheers felix >> >> Am Dienstag, 20. Mai 2014 16:06:20 UTC+2 schrieb Rafaella Keury: >>> >>> Hello, >>> I'm using Vagrant and i'm trying to use Puppet as a tool for >>> provisioning one of my virtual machines. >>> I created a folder named 'manifests' in the same directory of my >>> VagrantFile. Inside the 'manifests' folder I created a file named db.pp >>> with the following content: >>> "exec { "apt-update": >>> command => "/usr/bin/apt-get update" >>> } >>> package { "mysql-server": >>> ensure => installed, >>> require => Exec["apt-update"], >>> }" >>> >>> My VagrantFile looks like this: >>> "VAGRANTFILE_API_VERSION = "2" >>> Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| >>> config.vm.box = "hashicorp/precise32" >>> config.vm.define :db do |db_config| >>> db_config.vm.network :private_network, :ip => "192.168.33.10" >>> db_config.vm.provision "puppet" do |puppet| >>> puppet.manifest_file = "db.pp" >>> end >>> end" >>> >>> But when I type vagrant up db on command line, I receive the following >>> error message: >>> "The configured puppet manifest is missing. Please specify a path to an >>> existing manifest" >>> Does anyone know what is it? >>> My OS is Windows 7. >>> Thanks a lot! >>> >> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/a5487105-5cb9-43b9-8f44-009f9bf8d8d5%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/a5487105-5cb9-43b9-8f44-009f9bf8d8d5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2014 <http://puppetconf.com>**, September 23-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount <http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK6%3DgGHn1EX_kv-ytEmT8KX8eKZ_Uzrf%2Byj9wxAQ9t0kJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
