diff options
author | Ashley Penney <ashley.penney@puppetlabs.com> | 2013-07-05 17:55:31 -0400 |
---|---|---|
committer | Ashley Penney <ashley.penney@puppetlabs.com> | 2013-07-05 18:53:54 -0400 |
commit | 3ce96dafa278bcc49e4acafe72674342560f41c9 (patch) | |
tree | bc9633efa49c5aeae344a875754fd8453069ee2f /manifests | |
parent | c2df56745086606ba88f6824bd85211996a13662 (diff) |
Add ntp::install, a class to manage the ntp packages.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/install.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/install.pp b/manifests/install.pp new file mode 100644 index 0000000..beaf197 --- /dev/null +++ b/manifests/install.pp @@ -0,0 +1,18 @@ +class ntp::install( + $autoupdate = $ntp::autoupdate, + $package_name = $ntp::package_name, +) { + + validate_bool($autoupdate) + + $package_ensure = $autoupdate ? { + true => 'latest', + default => 'present', + } + + package { 'ntp': + ensure => $package_ensure, + name => $package_name, + } + +} |