Xavier Beaudouin
2013-Mar-20 11:40 UTC
[Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Hello, Seems that file ressource gets a new idea of what to be given. I have the following recipe : class resolvconf { file { "/etc/resolv.conf": owner => root, group => wheel, mode => 644, source => "puppet:///puppet/dist/resolv.conf", } } When doing puppet agent --test I have this cryptic message : # puppet agent --test -D Info: Retrieving plugin Info: Caching catalog for puppet.local.oav.net Error: Failed to apply catalog: Attribute ''user'' or ''target'' is mandatory So I went into documentation, but user or target attribute is not the right for this kind of recipe... Or the documentation is not up to date. Is there any hint about this new error... Xavier -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-20 12:44 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Hi, what else is in your manifest? Does your node also declare a cron or ssh_authorized_key resource? Because that would make a lot more sense. Cheers, Felix On 03/20/2013 12:40 PM, Xavier Beaudouin wrote:> Hello, > > Seems that file ressource gets a new idea of what to be given. > > I have the following recipe : > > class resolvconf { > file { > "/etc/resolv.conf": > owner => root, > group => wheel, > mode => 644, > source => "puppet:///puppet/dist/resolv.conf", > } > } > > > When doing puppet agent --test I have this cryptic message : > > # puppet agent --test -D > Info: Retrieving plugin > Info: Caching catalog for puppet.local.oav.net > Error: Failed to apply catalog: Attribute ''user'' or ''target'' is mandatory > > So I went into documentation, but user or target attribute is not the right for this kind of recipe... Or the documentation is not up to date. > > Is there any hint about this new error... > > Xavier >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Xavier Beaudouin
2013-Mar-20 14:11 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Hi, My node is declaring (for now) only this classe node mail01 { include resolvconf } It was "working" on puppet 2.8 but in 3.0 and 3.1 -> now way... Xavier Le 20 mars 2013 à 13:44, Felix Frank <felix.frank@alumni.tu-berlin.de> a écrit :> Hi, > > what else is in your manifest? Does your node also declare a cron or > ssh_authorized_key resource? Because that would make a lot more sense. > > Cheers, > Felix > > On 03/20/2013 12:40 PM, Xavier Beaudouin wrote: >> Hello, >> >> Seems that file ressource gets a new idea of what to be given. >> >> I have the following recipe : >> >> class resolvconf { >> file { >> "/etc/resolv.conf": >> owner => root, >> group => wheel, >> mode => 644, >> source => "puppet:///puppet/dist/resolv.conf", >> } >> } >> >> >> When doing puppet agent --test I have this cryptic message : >> >> # puppet agent --test -D >> Info: Retrieving plugin >> Info: Caching catalog for puppet.local.oav.net >> Error: Failed to apply catalog: Attribute ''user'' or ''target'' is mandatory >> >> So I went into documentation, but user or target attribute is not the right for this kind of recipe... Or the documentation is not up to date. >> >> Is there any hint about this new error... >> >> Xavier >> > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-20 14:18 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
On 03/20/2013 03:11 PM, Xavier Beaudouin wrote:> Hi, > > My node is declaring (for now) only this classe > > node mail01 { > include resolvconf > } > > It was "working" on puppet 2.8 but in 3.0 and 3.1 -> now way...OK, then I suggest commenting out that include for the time being. Add a simple ''notify { "It works": }'' to the node and see if that runs. If yes, add a simple file resource etc. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Xavier Beaudouin
2013-Mar-20 14:44 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Hi, Le 20 mars 2013 à 15:18, Felix Frank <felix.frank@alumni.tu-berlin.de> a écrit :> On 03/20/2013 03:11 PM, Xavier Beaudouin wrote: >> Hi, >> >> My node is declaring (for now) only this classe >> >> node mail01 { >> include resolvconf >> } >> >> It was "working" on puppet 2.8 but in 3.0 and 3.1 -> now way... > > OK, then I suggest commenting out that include for the time being. > > Add a simple ''notify { "It works": }'' to the node and see if that runs. > > If yes, add a simple file resource etc.This is what I did : node.pp : class resolvconf { file { "/etc/resolv.conf": owner => "root", group => "wheel", mode => "0644", source => "puppet:///puppet/dist/resolv.conf", } } node mail01 { include resolvconf } Is it very simple... Now WTF is broken ... Error: Failed to apply catalog: Attribute ''user'' or ''target'' is mandatory I tryed to use : user => "root" But puppet agent says : Invalid parameter ''user'' -> ok so the error is bloody stupdi When I try to add target => "puppet:///puppet/dist/resolv.conf" I get this stupid error : Error: Failed to apply catalog: You cannot specify more than one of content, source, target So does this things want ? Xavier -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-20 14:48 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
1. What''s in your site.pp then? 2. Please follow the advised steps. On 03/20/2013 03:44 PM, Xavier Beaudouin wrote:> This is what I did : > > node.pp : > > class resolvconf { > file { > "/etc/resolv.conf": > owner => "root", > group => "wheel", > mode => "0644", > source => "puppet:///puppet/dist/resolv.conf", > } > } > > node mail01 { > include resolvconf > } > > Is it very simple... Now WTF is broken ... > > Error: Failed to apply catalog: Attribute ''user'' or ''target'' is mandatory > > I tryed to use : > > user => "root" > > But puppet agent says : Invalid parameter ''user'' -> ok so the error is bloody stupdi > > When I try to add > target => "puppet:///puppet/dist/resolv.conf" > > I get this stupid error : Error: Failed to apply catalog: You cannot specify more than one of content, source, target > > So does this things want ? > > Xavier-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Xavier Beaudouin
2013-Mar-20 16:18 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Okay after fighting, seem that my class user that use ssh_authorized_key ressource is giving me this headache. So... I tried some stuff on this : http://pastealacon.com/32000 but I have no clues :( So bad the error is so "simple" that we can wastes hours just about a wrong class... Xavier -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Mar-21 09:14 UTC
Re: [Puppet Users] Puppet 3.1.1 and file… -> Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory
Gee, thanks for being this guy (http://thedailywtf.com/Articles/A-Misleading-Memory.aspx) Have you made sure that $1 $2 and $3 are available in the scope you are using them? That code is not very robust, you may want to wrap the ssh_authorized_key into a defined type with sane default parameters, so undefined variables will not hurt you in these exciting ways. On 03/20/2013 05:18 PM, Xavier Beaudouin wrote:> Okay after fighting, seem that my class user that use ssh_authorized_key ressource is giving me this headache. > > > So... I tried some stuff on this : http://pastealacon.com/32000 but I have no clues :( > > So bad the error is so "simple" that we can wastes hours just about a wrong class... > > Xavier-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.