puppet create linux user/password, don't reset password

asked 2014-09-30 15:40:19 -0500

butterhand gravatar image

Basically I want puppet to stop resetting the user's passwords back to the default one setup in puppet if/when a user changes it.

There are multiple users like this, I was thinking of an array of use names but not sure how to writ it correctly or if there is a better way out there:

  user { 'default_user':
  ensure           => 'present',
  comment          => 'default_user',
  gid              => 'default_user',
  groups           => ['wheel','xyz'],
  home             => '/home/default_user',
  managehome        => 'true',
  password         => 'QyevAQye0/DRC.',
  password_max_age => '99999',
  password_min_age => '0',
  shell            => '/bin/bash',
  uid              => '1234',
}
edit retag flag offensive close merge delete