Puppet 3.7 Directory Environments and Vagrant Configuration

84 views
Skip to first unread message

Brendan Murtagh

unread,
Sep 28, 2014, 8:43:49 PM9/28/14
to puppet...@googlegroups.com

Hello,

I am having trouble trying to configure my Vagrant & Puppet 3.7 to use Directory Environments for development. I haven't found a guide to help update Vagrant to utilize Directory Environments. I'm unsure what I'm missing. Any help is appreciated. My current Vagrantfile, my provision output, and puppet.conf are Gist'd below.

https://gist.github.com/bmurtagh/418080e5779357eb8515

Thanks,

Brendan

Aaron Russo

unread,
Oct 2, 2014, 4:49:40 PM10/2/14
to puppet...@googlegroups.com
Hey Brendan,

I did notice you aren't setting environmentpath in the config section in your gist. Maybe try setting environmentpath in vagrant? See below for what I would try.

@@ -31,6 +31,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
       puppet.options = "--config /vagrant/puppet.conf --fileserverconfig=/vagrant/fileserver.conf"
       puppet.module_path = ['/Users/bmurtagh/Dropbox/renan/puppet/environments/vagrant', '/Users/bmurtagh/Dropbox/renan/puppet/modules']
       puppet.hiera_config_path = 'hiera.yaml'
+      puppet.environmentpath = '/Users/bmurtagh/Dropbox/renan/puppet/environments/'
       puppet.facter = { 
         "fqdn" => 'centos65.renan.com'
       }

Otherwise, I believe puppet is going to look in the default location for the directory environments, and it's not clear to me that you're populating /etc/puppet/environments/vagrant nor syncing it from your filesystem anywhere.

This doesn't give you a friendly guide, but I did update my vagrant environment to Puppet 3.7 + Directory Environments a week or so ago. Although I think I elected to not use directory environments since I didn't need them, I started off going that route and it did work.

Might be of use if you don't mind digging through the code a bit and you're still stuck.


Something to note is I have a bootstrap process to bring up a real puppet master that subsequent vagrant boxes will connect to.

Best,

Aaron

--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1ff7733a-d5ea-496f-a2ae-4e3c81ad6b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages