PBWebGuy
2011-May-31 15:34 UTC
[Puppet Users] ralsh - unable to pass alias array for host resource
I''m trying create an entry in the /etc/hosts file but when trying to use the ''alias'' parameter I''m getting a munge error because it can''t parse the array passed from the command-line. I''ve tried all sorts of ways to define the array but nothing seems to work. Does anyone know how to define the array on the command-line? Here is the command that I run and the output: # ralsh host puppet.domain.local ip=10.11.12.13 ensure=present alias=puppet Could not run: Parameter alias failed: Munging failed for value "puppet" in class alias: Cannot add aliases without a catalog TIA, John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dan Bode
2011-May-31 15:58 UTC
Re: [Puppet Users] ralsh - unable to pass alias array for host resource
On Tue, May 31, 2011 at 8:34 AM, PBWebGuy <pbwebguy@gmail.com> wrote:> I''m trying create an entry in the /etc/hosts file but when trying to > use the ''alias'' parameter I''m getting a munge error because it can''t > parse the array passed from the command-line. I''ve tried all sorts of > ways to define the array but nothing seems to work. Does anyone know > how to define the array on the command-line? > > Here is the command that I run and the output: > > # ralsh host puppet.domain.local ip=10.11.12.13 ensure=present > alias=puppet >alias was changed to host_aliases a while back b/c alias is a meta parameter Could not run: Parameter alias failed: Munging failed for value> "puppet" in class alias: Cannot add aliases without a catalog > > TIA, > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.