Skip to content

Commit

Permalink
Switch mock class to use puppetlabs::account
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff McCune <jeff@puppetlabs.com>
  • Loading branch information
Jeff McCune committed Aug 7, 2010
1 parent 9796f06 commit 3da0347
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions suite/share/modules/puppetlabs/manifests/mock.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,17 @@
$module = "puppetlabs"
$class = "${module}::mock"

puppetlabs::rcfiles {
puppetlabs::account {
"mock":
homedir => "/var/lib/mock",
require => [ User["mock"], Group["mock"] ],
uid => 201,
gid => 201,
comment => "Fedora Mock Build",
password => '!!';
}
user {
"mock":
ensure => "present",
gid => "mock",
home => "/var/lib/mock",
comment => "Fedora Mock Build",
shell => "/bin/bash",
}
group { "mock": ensure => "present" }
package {
"mock":
ensure => "installed",
require => [ User["mock"], Group["mock"] ],
require => [ Puppetlabs::Account["mock"] ];
}
}

0 comments on commit 3da0347

Please sign in to comment.