summaryrefslogtreecommitdiff
path: root/manifests/service.pp
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2013-07-30 12:58:59 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2013-07-30 12:58:59 -0400
commit7fbbbd0796caf0145b46887b55a7e2fd17a3ebb0 (patch)
tree74d02b102d856018620be812fc86fc557a374400 /manifests/service.pp
parent768e4dc230f7d81d4ae836396bcd458d7a1bff7a (diff)
Convert some classes to not be parameterized.
We're following (where possible) the pattern of having parameters only exist on interface classes. As ntp::config and ntp::install are just internal, private, classes, these don't make sense to allow changes to.
Diffstat (limited to 'manifests/service.pp')
-rw-r--r--manifests/service.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/manifests/service.pp b/manifests/service.pp
index 741e65b..2b1eee0 100644
--- a/manifests/service.pp
+++ b/manifests/service.pp
@@ -1,9 +1,10 @@
-class ntp::service (
- $service_enable = $ntp::service_enable,
- $service_ensure = $ntp::service_ensure,
- $service_manage = $ntp::service_manage,
- $service_name = $ntp::service_name,
-) inherits ntp {
+#
+class ntp::service {
+
+ $service_enable = $ntp::service_enable
+ $service_ensure = $ntp::service_ensure
+ $service_manage = $ntp::service_manage
+ $service_name = $ntp::service_name
if ! ($service_ensure in [ 'running', 'stopped' ]) {
fail('service_ensure parameter must be running or stopped')