Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created January 29, 2013 14:51
Show Gist options
  • Save scottslowe/4664807 to your computer and use it in GitHub Desktop.
Save scottslowe/4664807 to your computer and use it in GitHub Desktop.
This Puppet code defines a virtual user resource, but includes a subclass dependency to ensure certain files are present before the account is defined.
# Used to define virtual users on Puppet-managed systems
# Includes subclass dependency on accounts::config
#
class accounts {
@accounts::virtual { 'johndoe':
uid => 1001,
realname => 'John Doe',
pass => '<password hash goes here>',
require => Class['accounts::config'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment