Hi all,

is there a way to avoid changing the state (present/absent) of a user? In my 
case I just want to do a kind of 'check' if the user is present. If so, I will 
do some file-resource stuff on him. If not, nothing should be done at all.

Example:

# create the user resource
user { 'someuser':
  ...
}

# copy file if user exists
# do nothing if not
file { "/home/someuser/.bashrc":
  require => "someuser",
  ...
}

Obviously I cannot use 'ensure => present|absent' for the user, since this 
would change its state. And I'm not sure if it's OK just to omit the 'ensure' 
attribute. Any ideas?

Thanks Bernd 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to