Skip to content

Commit

Permalink
Updated mock setup script and class
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 e2881bf commit ce8d84d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
13 changes: 0 additions & 13 deletions bin/pb_setup_20_mock

This file was deleted.

1 change: 1 addition & 0 deletions bin/pb_setup_20_mock
1 change: 1 addition & 0 deletions manifests/pb_setup_20_mock.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include puppetlabs::mock
10 changes: 8 additions & 2 deletions suite/share/modules/puppetlabs/manifests/mock.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
#
class puppetlabs::mock {
$module = "puppetlabs"
# statements
$class = "${module}::mock"

rcfiles {
"mock":
homedir => "/var/lib/mock",
require => [ User["mock"], Group["mock"] ],
}
user {
"mock":
ensure => "present",
Expand All @@ -34,7 +40,7 @@
package {
"mock":
ensure => "installed",
require => [ User["mock"] ],
require => [ User["mock"], Group["mock"] ],
}
}

0 comments on commit ce8d84d

Please sign in to comment.