Okay, could be a couple of things here: Environments still require normal module layout. You have 'profile' set in manifests. Check modules section here: http://docs.puppetlabs.com/pe/latest/puppet_modules_manifests.html
Also when using environments you have to set --environment test when doing the agent run (otherwise it looks for production) Den > On 29 Jul 2014, at 16:46, Wijnand Wiersma <wijn...@videre.net> wrote: > > Hi, > > thank you for the responses. I should have pasted the relevant configs > instead of pointing to somewhere externally. > > Some more information: > /etc/puppet/puppet.conf > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > templatedir=$confdir/templates > environmentpath = $confdir/environments > ca_server = geppetto.mycorp.nl > report_server = geppetto.mycorp.nl > server = geppetto.mycorp.nl > > [master] > # These are needed when the puppetmaster is run by passenger > # and can safely be removed if webrick is used. > ssl_client_header = SSL_CLIENT_S_DN > ssl_client_verify_header = SSL_CLIENT_VERIFY > > [agent] > usecacheonfailure = true > configtimeout = 360 > show_diff = true > report = true > certname = geppetto.mycorp.nl > splay = false > environment = test > runinterval = 600 > > > # ls -ald /etc/puppet/ > drwxr-xr-x 5 puppet puppet 4096 Jul 29 06:32 /etc/puppet/ > # ls -ald /etc/puppet/environments/ > drwxr-xr-x 6 puppet puppet 4096 Jul 29 06:31 /etc/puppet/environments/ > # ls -ald /etc/puppet/environments/test/ > drwxr-xr-x 6 puppet puppet 4096 Jul 29 06:32 /etc/puppet/environments/test/ > # ls -ald /etc/puppet/environments/test/manifests/ > drwxr-xr-x 3 puppet puppet 4096 Jul 29 06:31 > /etc/puppet/environments/test/manifests/ > # ls -ald /etc/puppet/environments/test/manifests/profile/ > drwxr-xr-x 2 puppet puppet 4096 Jul 29 06:31 > /etc/puppet/environments/test/manifests/profile/ > # ls -ald /etc/puppet/environments/test/manifests/profile/base.pp > -rw-r--r-- 1 puppet puppet 45 Jul 29 06:31 > /etc/puppet/environments/test/manifests/profile/base.pp > # cat /etc/puppet/environments/test/manifests/profile/base.pp > class profile::base { > class { '::ntp': } > } > > # cat /etc/puppet/environments/test/environment.conf > manifest = site.pp > modulepath = modules:site > > # cat /etc/puppet/environments/test/site.pp > hiera_include('classes') > > # cat /etc/puppet/environments/test/hiera/common.yaml > --- > classes: > - 'profile::base' > > ntp::servers: > - 0.us.pool.ntp.org > - 1.us.pool.ntp.org > > > # puppet agent -t > Warning: Setting templatedir is deprecated. See > http://links.puppetlabs.com/env-settings-deprecations > (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1095:in `block in > issue_deprecations') > Info: Retrieving pluginfacts > Info: Retrieving plugin > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find class profile::base for geppetto.mycorp.nl on node > geppetto.mycorp.nl > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > > I have read the documentation but it just doesn't click why this setup does > not work. I am getting more confused by the minute (but that might be due to > the stress of course ;-) ) > > -- Wijnand > > ----- Oorspronkelijk bericht ----- >> You might like to read this: >> http://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html >> Also this: >> http://docs.puppetlabs.com/puppet/latest/reference/environments.html >> >> If you provide relevant puppet master puppet.conf and directory structure we >> may be able to help further. >> >> THT >> Den >> >>> On 29 Jul 2014, at 5:23, Christopher Wood <christopher_w...@pobox.com> >>> wrote: >>> >>>> On Mon, Jul 28, 2014 at 11:54:34AM -0700, Wijnand Wiersma wrote: >>>> Hi all, >>>> I am a bit in distress right now. I have to replicate a dead puppet >>>> server >>>> on a new server. I have all hiera files and manifests etc in git but I >>>> am >>>> not able to get a new puppet server to compile catalogs. >>>> The old server was 3.4 and the new server is 3.6.2 with directory >>>> environments enabled. >>>> To understand the whole process I even created a empty environment >>>> exactly >>>> like >>>> >>>> https://github.com/adrienthebo/r10k/blob/master/doc/dynamic-environments/quickstart.mkd >>>> I really copied and pasted everything in that quickstart. The tutorial >>>> misses a default node definition but that's ok, I understand that part. >>>> However, it fails to even load the one class I try to load: >>>> Error: Could not retrieve catalog from remote server: Error 400 on >>>> SERVER: >>>> Could not find class profile::base for geppetto.mycorp.nl on node >>>> geppetto.mycorp.nl >>> >>> I haven't read that tutorial and haven't yet used directory environments. >>> To find out what paths your puppetmaster is using to find files, run your >>> puppetmaster in the foreground in debug mode (add the path to your >>> puppetmaster config): >>> >>> su - puppet >>> puppet master --config /etc/puppet/puppet.conf --debug --no-daemonize 2>&1 >>> | tee /var/tmp/pm1.log >>> >>> That may give you some hints? >>> >>> http://docs.puppetlabs.com/guides/troubleshooting.html >>> >>>> What is this really minimal config missing for this to work? I fail to >>>> see >>>> where to put all my old manifests now and I have been trying for 2 days >>>> now. >>>> What piece of documentation did I miss? I am sorry if this is a >>>> frequently >>>> asked question, it currently is a bit hard to find anything regarding >>>> directory environments. >>>> -- Wijnand >>>> >>>> -- >>>> 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 [1]puppet-users+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> >>>> [2]https://groups.google.com/d/msgid/puppet-users/7a2d7480-65b0-4400-98ca-d20c4cb4a62a%40googlegroups.com. >>>> For more options, visit [3]https://groups.google.com/d/optout. >>>> >>>> References >>>> >>>> Visible links >>>> 1. mailto:puppet-users+unsubscr...@googlegroups.com >>>> 2. >>>> >>>> https://groups.google.com/d/msgid/puppet-users/7a2d7480-65b0-4400-98ca-d20c4cb4a62a%40googlegroups.com?utm_medium=email&utm_source=footer >>>> 3. https://groups.google.com/d/optout >>> >>> -- >>> 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+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/puppet-users/20140728192330.GB30396%40iniquitous.heresiarch.ca. >>> For more options, visit https://groups.google.com/d/optout. >> >> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/FA3C0B27-3496-4576-B4A3-AF0BA663F362%40gmail.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/80991743.48439604.1406616364960.JavaMail.zimbra%40videre.net. > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/F290E557-37CF-47C0-8DE9-ABBA0D17E305%40gmail.com. For more options, visit https://groups.google.com/d/optout.