summaryrefslogtreecommitdiffstats
path: root/components/congress/puppet/manifests/service.pp
diff options
context:
space:
mode:
authorblsaws <bryan.sullivan@att.com>2016-05-11 21:22:03 -0700
committerblsaws <bs3131@att.com>2016-05-11 21:27:35 -0700
commit2928ffc921af0ec26ccfda1b973f7eebbc64d88f (patch)
tree7b38060b2e1e19f48c3f3eb4c92465b3e71735e3 /components/congress/puppet/manifests/service.pp
parent2f9c61889d640dce26a9d0350caa43bb2faae82e (diff)
Add baseline puppet module
JIRA: COPPER-2 Change-Id: Ieb773594917aeca48ceca4250de9b4aede9961a8 Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/puppet/manifests/service.pp')
-rw-r--r--components/congress/puppet/manifests/service.pp55
1 files changed, 55 insertions, 0 deletions
diff --git a/components/congress/puppet/manifests/service.pp b/components/congress/puppet/manifests/service.pp
new file mode 100644
index 0000000..f802e9a
--- /dev/null
+++ b/components/congress/puppet/manifests/service.pp
@@ -0,0 +1,55 @@
+# == Class congress::service
+#
+# Encapsulates the congress service to a class.
+# This allows resources that require congress to
+# require this class, which can optionally
+# validate that the service can actually accept
+# connections.
+#
+# === Parameters
+#
+# [*ensure*]
+# (optional) The desired state of the congress service
+# Defaults to undef
+#
+# [*service_name*]
+# (optional) The name of the congress service
+# Defaults to $::congress::params::service_name
+#
+# [*enable*]
+# (optional) Whether to enable the congress service
+# Defaults to true
+#
+# [*hasstatus*]
+# (optional) Whether the congress service has status
+# Defaults to true
+#
+# [*hasrestart*]
+# (optional) Whether the congress service has restart
+# Defaults to true
+#
+# [*provider*]
+# (optional) Provider for congress service
+# Defaults to $::congress::params::service_provider
+#
+class congress::service(
+ $ensure = undef,
+ $service_name = $::congress::params::service_name,
+ $enable = true,
+ $hasstatus = true,
+ $hasrestart = true,
+ $provider = $::congress::params::service_provider,
+) {
+ include ::congress::params
+
+ service { 'congress':
+ ensure => $ensure,
+ name => $service_name,
+ enable => $enable,
+ hasstatus => $hasstatus,
+ hasrestart => $hasrestart,
+ provider => $provider,
+ tag => 'congress-service',
+ }
+
+}