>> You want uid => undef >> >> --Paul >
Thanks Paul - this is the lead I needed to get to at least a work around. Given: === EXHIBIT A === define user_test() { user { $title: ensure => present, uid => undef } } node "server" { user_test { 'boogy': } } === EXHIBIT B === define user_test(uid = undef) { user { $title: ensure => present, uid => $uid } } node "server" { user_test { 'boogy': } } === EXHIBIT C === define user_test(uid = undef) { user { $title: ensure => present, uid => $uid ? { undef => undef, default => $uid } } } node "server" { user_test { 'boogy': } } === EXHIBIT D === define user_test(uid = false) { user { $title: ensure => present, uid => $uid ? { false => undef, default => $uid } } } node "server" { user_test { 'boogy': } } === END EXHIBITS === === OUTPUT FROM EXHIBIT B === puppetd --test info: Caching catalog at /var/puppet/state/localconfig.yaml notice: Starting catalog run err: //Node[server]/User_test[boogy]/User[boogy]/uid: change from 511 to failed: Could not set uid on user[boogy]: Execution of '/usr/sbin/ usermod -u boogy' returned 4: usermod: uid 0 is not unique notice: Finished catalog run in 5.80 seconds === END OUTPUT === Results: EXHIBIT A: works (except I can't specify uid, naturally) EXHIBIT B: fails (see OUTPUT FROM EXHIBIT B) EXHIBIT C: fails (similar to OUTPUT FROM EXHIBIT B) EXHIBIT D: works! So, apparently you can't assign undef to a variable. I'm thinking this is a bug. Thoughts, anyone? Thanks, Tim --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---