I guess I was wrong, looking at the code I dont think that you can remove an alias, just replace it to something else.
funny, if you put the word absent as an alias, puppet think there is no alias. sounds like a bug to me as the absent key word is translated into absent alias value. On Thu, Jan 14, 2010 at 4:15 PM, Ohad Levy <[email protected]> wrote: > ensure => absent > > On Thu, Jan 14, 2010 at 3:11 PM, Peter <[email protected]> wrote: > >> Hi, >> >> I'm trying to create a host entry and want puppet to remove the alias >> if is exists for that host in the host file. >> >> If alias is not set aliases are left as they are for that host. >> >> If alias is set to undef aliases are left as they are. >> >> If alias is set to '' is constantly changes the host file on each run. >> >> Is ther a way of achieving this? >> >> Thanks >> >> Peter >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<puppet-users%[email protected]> >> . >> 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 [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
