Created
January 29, 2013 14:51
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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