I recall running into similar issues. I'm pretty sure that using 
apache/passenger removed the need to restart the puppet master process, but 
there was still a requirement of having the types/providers in the master's 
module dir.

Although, a quick search turned 
up http://projects.puppetlabs.com/issues/13858 - which looks to have solved 
the later issue.

-devon

On Tuesday, March 5, 2013 3:56:26 AM UTC-8, Gavin Williams wrote:
>
> Morning all
>
> Not sure if this is a bug, or just a configuration issue in the way I'm 
> using it... 
>
> Anyhow, I'm doing some work on one of my NetApp type/provider to add 
> additional properties etc... 
> As part of this, I've created a new copy of my module in a 'test' 
> environment folder as follows:
>
> Puppet.conf: 
>     modulepath = 
> /etc/puppet/environments/$environment/modules:/etc/puppet/modules
>
> Folder structure:
> -bash-4.1$ pwd
> /etc/puppet
> -bash-4.1$ ls -l environments/test/modules/
> total 8
> drwxr-xr-x. 6 puppet puppet 4096 Mar  4 15:41 fatmcgav-netapp
> -bash-4.1$
>
> The provider functionality loads correctly from this folder, however it 
> would appear that the type definitions are still loading from the main 
> module dir... 
> E.g.: 
> -bash-4.1$ pwd
> /etc/puppet/environments/test/modules/fatmcgav-netapp
> -bash-4.1$ diff 
> /etc/puppet/modules/fatmcgav-netapp/lib/puppet/type/netapp_export.rb 
> lib/puppet/type/netapp_export.rb
> 45d44
> <
> 46a46,53
> >   newproperty(:readonly) do
> >     desc "Export read-only hosts."
> >   end
> >
> >   newproperty(:readwrite) do
> >     desc "Export read-write hosts."
> >   end
> >
> -bash-4.1$
> -bash-4.1$ ./node.rb actint-star-nactl01
> ---
>   environment: test
>   parameters:
>     foreman_env: test
>     root_pw: xybxa6JUkz63w
>     puppetmaster: puppet
>   classes: {}
> -bash-4.1$ sudo puppet device --deviceconfig 
> devices/actint-star-nactl01.conf -v
> Info: starting applying configuration to actint-star-nactl01 at 
> actint-star-nactl01
> Warning: Local environment: "production" doesn't match server specified 
> node environment "test", switching agent to "test".
> Info: Retrieving plugin
> Info: Caching catalog for actint-star-nactl01
> Error: Failed to apply catalog: Invalid parameter readonly
> -bash-4.1$
> -bash-4.1$ diff 
> /etc/puppet/modules/fatmcgav-netapp/lib/puppet/type/netapp_export.rb 
> lib/puppet/type/netapp_export.rb
> -bash-4.1$ sudo service puppetmaster 
> restart                                                                       
>
> Stopping puppetmaster:                                     [  OK  ]
> Starting puppetmaster:                                     [  OK  ]
> -bash-4.1$
> -bash-4.1$ sudo puppet device --deviceconfig 
> devices/actint-star-nactl01.conf -v
> Info: starting applying configuration to actint-star-nactl01 at 
> actint-star-nactl01
> Info: Retrieving plugin
> Info: Caching catalog for actint-star-nactl01
> Info: Applying configuration version '1362484381'
> Notice: 
> /Stage[main]//Node[actint-star-nactl01]/Netapp_export[/vol/v_puppet_test20122012/q_puppet_test20122012]/readonly:
>  
> defined 'readonly' as 'all_hosts'
> Notice: Finished catalog run in 1.18 seconds
> -bash-4.1$
>
> Thoughts? 
>
> Regards
> Gavin 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to