Skip to content

Instantly share code, notes, and snippets.

@sebnash
Last active December 15, 2015 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebnash/5185721 to your computer and use it in GitHub Desktop.
Save sebnash/5185721 to your computer and use it in GitHub Desktop.
ladmin 3 (for Getting Started With Puppet 3 repost)
node puppetclient {
user { 'ladmin':
ensure => 'present',
comment => 'Local Admin',
gid => '20',
groups => ['_appserveradm', '_appserverusr', '_lpadmin', 'admin'],
home => '/var/ladmin',
iteration => '21881',
password => '401e3aa796b3bfff2c8e929a003b727be1bd548aa0f0b0e131f0d11f3953162be210200a70872734a28be747a933e12e2458ffdcc60d209eab9e006a9f4042dc883148070e6e8ad05f4a5e5d44bd0ddfc9494482f0d16c9d5eb1de086183db1b89df9982d2856eeed431d65e03ff99177c3185aa61bc926b1a0020c49621ddd8',
salt => '0c3cd42b97d0b0df45542fcb5961a2920f2fd6204aa151bf08d762d9dd44fd0c',
shell => '/bin/bash',
uid => '404',
notify => Exec['Hide sub-500 users'],
}
exec {'Hide sub-500 users':
command => "/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE",
refreshonly => true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment