summaryrefslogtreecommitdiff
path: root/manifests/daemon/disable.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:24 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:24 -0400
commita0341282c3eef05cf19c10e10f783e3c5536c8b0 (patch)
tree59ffbcee037e3a3b6393dac5a16ca0545d233e91 /manifests/daemon/disable.pp
Squashed 'puppet/modules/git/' content from commit ba5dd8d
git-subtree-dir: puppet/modules/git git-subtree-split: ba5dd8d5c8e09d521ff49f1ebc753601e449f828
Diffstat (limited to 'manifests/daemon/disable.pp')
-rw-r--r--manifests/daemon/disable.pp33
1 files changed, 33 insertions, 0 deletions
diff --git a/manifests/daemon/disable.pp b/manifests/daemon/disable.pp
new file mode 100644
index 00000000..c044e962
--- /dev/null
+++ b/manifests/daemon/disable.pp
@@ -0,0 +1,33 @@
+class git::daemon::disable inherits git::daemon::base {
+
+ if defined(Package['git-daemon']) {
+ Package['git-daemon'] {
+ ensure => absent,
+ }
+ }
+
+ File['git-daemon_initscript'] {
+ ensure => absent,
+ }
+
+ File['git-daemon_config'] {
+ ensure => absent,
+ }
+
+ Service['git-daemon'] {
+ ensure => stopped,
+ enable => false,
+ require => undef,
+ before => File['git-daemon_initscript'],
+ }
+
+ if $use_shorewall {
+ include shorewall::rules::gitdaemon::absent
+ }
+
+ if $use_nagios {
+ nagios::service { "git-daemon": check_command => "check_git!${fqdn}", ensure => absent; }
+ }
+}
+
+