On 19/02/18 14:36, jmp242 wrote:
> I've been on that page, but it doesn't really tell me what to do. I'm
> not using r10k, nor pe. I don't have a |.resource_types directory
> pro|bably because I can't get the isolation to do anything.
Probably. The .resource_types is created if needed by the command
if there are something to write.
Check that your environments are where you expect them to be and that
they have the correct modulepath and that all modules are where they are
supposed to be.
You could experiment with the setting for environmentpath (one or
several directories that puppet will search for environment directories).
Best,
- henrik
> Notice:Nocustom 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 4root root 35Nov204:12environments
> drwxr-xr-x 2root root 6Nov204:12modules
> drwxr-xr-x 3root root 29Feb1615:33production
> |
>
> 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 4root root 38Nov1515:43dev
> drwxr-xr-x 6root root 93Dec2111:36production
>
> |
>
> 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...@googlegroups.com <javascript:>.
> <
https://groups.google.com/d/msgid/puppet-users/553bda68-7d45-447e-b4fd-890af7ce47df%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <
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...@googlegroups.com
> <mailto:
puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/fbe255a3-4830-4b1e-aeee-b4a32fc7c786%40googlegroups.com
> <
https://groups.google.com/d/msgid/puppet-users/fbe255a3-4830-4b1e-aeee-b4a32fc7c786%40googlegroups.com?utm_medium=email&utm_source=footer>.
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/