So I originally conflated 2 different issues, and the one was fixed with 
the bugfix referenced in my previous thread. So this one is still happening.

I have an updated module to test (a forked reboot module) which I have 
deployed in my dev environment and code to use the new parameter, however 
when I try and apply the manifest I get errors - again 500 on server, this 
time that the new parameter doesn't exist. I'm wondering if this is also an 
issue with pluginsync or something like that so the client doesn't see the 
new module?

So it was suggested that I needed environment isolation per: 
https://puppet.com/docs/puppet/5.3/environment_isolation.html

I tried it and got:
puppet generate types --environment production
Notice: No custom types were found.


puppet generate types --environment dev
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in 
`get!': 
Could not find a directory environment named 'dev' anywhere in the path: 
/etc/puppetlabs/code. Does the directory exist? 
(Puppet::Environments::EnvironmentNotFound)
        from 
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application_support.rb:29:in 
`push_application_context'
        from 
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:346:in 
`run'
        from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/
command_line.rb:132:in `run'
        from 
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in 
`execute'
        from /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'

So:
ll /etc/puppetlabs/code
total 0
drwxr-xr-x 4 root root 35 Nov  2 04:12 environments
drwxr-xr-x 2 root root  6 Nov  2 04:12 modules
drwxr-xr-x 3 root root 29 Feb 16 15:33 production

Now all our modules are in what used to be called directory environments, 
as sub directories of environments. 
ll /etc/puppetlabs/code/production/
total 0

ll /etc/puppetlabs/code/environments/
total 0
drwxr-xr-x 4 root root 38 Nov 15 15:43 dev
drwxr-xr-x 6 root root 93 Dec 21 11:36 production


So I'm pretty confused how to fix all of this.

-- 
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/553bda68-7d45-447e-b4fd-890af7ce47df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to