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 <ohadl...@gmail.com> wrote: > ensure => absent > > On Thu, Jan 14, 2010 at 3:11 PM, Peter <pe...@netremedies.ca> 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 puppet-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.