-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
119 additions
and
172 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
.librarian | ||
.tmp | ||
.vagrant | ||
.yardoc | ||
Gemfile.lock | ||
Puppetfile.lock | ||
spec/fixtures | ||
spec/fixtures/manifests | ||
spec/fixtures/modules | ||
pkg | ||
log | ||
coverage |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
# Installs and manages Oddjob. | ||
# | ||
# @example Declaring the class | ||
# include ::dbus | ||
# include ::oddjob | ||
# | ||
# @param conf_dir Top-level configuration directory, usually | ||
# `/etc/oddjobd.conf.d`. | ||
# @param package_name The name of the package. | ||
# @param service_name The service name. | ||
# | ||
# @see puppet_classes::oddjob::mkhomedir ::oddjob::mkhomedir | ||
# @see puppet_defined_types::oddjob::helper ::oddjob::helper | ||
class oddjob ( | ||
$conf_dir = $::oddjob::params::conf_dir, | ||
$package_name = $::oddjob::params::package_name, | ||
$service_name = $::oddjob::params::service_name, | ||
Stdlib::Absolutepath $conf_dir = $::oddjob::params::conf_dir, | ||
String $package_name = $::oddjob::params::package_name, | ||
String $service_name = $::oddjob::params::service_name, | ||
) inherits ::oddjob::params { | ||
|
||
validate_absolute_path($conf_dir) | ||
validate_string($package_name) | ||
validate_string($service_name) | ||
|
||
include ::oddjob::install | ||
include ::oddjob::config | ||
include ::oddjob::service | ||
|
||
anchor { 'oddjob::begin': } | ||
anchor { 'oddjob::end': } | ||
contain ::oddjob::install | ||
contain ::oddjob::config | ||
contain ::oddjob::service | ||
|
||
Anchor['oddjob::begin'] -> Class['::oddjob::install'] | ||
-> Class['::oddjob::config'] ~> Class['::oddjob::service'] | ||
-> Anchor['oddjob::end'] | ||
Class['::oddjob::install'] -> Class['::oddjob::config'] | ||
~> Class['::oddjob::service'] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# | ||
# @!visibility private | ||
class oddjob::install { | ||
|
||
package { $::oddjob::package_name: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
# Installs the Oddjob mkhomedir job. | ||
# | ||
# @example Declaring the class | ||
# include ::dbus | ||
# include ::oddjob | ||
# include ::oddjob::mkhomedir | ||
# | ||
# @param package_name The name of the package. | ||
# | ||
# @see puppet_classes::oddjob ::oddjob | ||
class oddjob::mkhomedir ( | ||
$package_name = $::oddjob::params::mkhomedir_package_name, | ||
String $package_name = $::oddjob::params::mkhomedir_package_name, | ||
) inherits ::oddjob::params { | ||
|
||
if ! defined(Class['::oddjob']) { | ||
fail('You must include the oddjob base class before using the oddjob::mkhomedir class') | ||
} | ||
|
||
validate_string($package_name) | ||
|
||
include ::oddjob::mkhomedir::install | ||
include ::oddjob::mkhomedir::config | ||
|
||
anchor { 'oddjob::mkhomedir::begin': } | ||
anchor { 'oddjob::mkhomedir::end': } | ||
contain ::oddjob::mkhomedir::install | ||
contain ::oddjob::mkhomedir::config | ||
|
||
Anchor['oddjob::mkhomedir::begin'] -> Class['::oddjob::mkhomedir::install'] | ||
-> Class['::oddjob::mkhomedir::config'] -> Anchor['oddjob::mkhomedir::end'] | ||
Class['::oddjob::mkhomedir::install'] -> Class['::oddjob::mkhomedir::config'] | ||
} |
Oops, something went wrong.