What about just not setting the uid? It sounds like that's what you are trying to do.
On Jul 22, 2010, at 12:30 PM, Don Harden wrote: > > Hi Folks, > > Ive been trying to figure this out on Puppet 2.5.5 but just upgraded > to 2.6 > > I have this in a module to make sure zabbix is installed, configured > and running: > > class zabbix_agentd > { > user { "zabbix": > name => > 'zabbix', > ensure => > present, > comment => "Zabbix Monitoring > System", > home => "/var/lib/ > zabbix", > managehome => > false, > shell => "/sbin/ > nologin", > uid => > "109", > } > ..... rest of class. > > > This works great on puppet clients that do not have the user zabbix, > but on clients that already have zabbix I get error such as > > err: //zabbix_agentd/User[zabbix]/uid: change from 489 to 109 failed: > Could not set uid on user[zabbix]: Execution of '/usr/sbin/usermod -u > 109 zabbix' returned 8: usermod: user zabbix is currently logged in > > So it seems that I need some way of testing for user zabbix on the > clients, but I can't figure out how. This seems such a basic and > easy thing to do that I surprised that I have not already found the > answer. > > Thanks for any suggestions. > > Don > > -- > 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. > -- 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.