summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorR. Tyler Croy <tyler@monkeypox.org>2012-07-08 21:38:34 -0700
committerR. Tyler Croy <tyler@monkeypox.org>2012-07-08 21:38:50 -0700
commitc409a0953552107f4ad4c6535392071980d9e33b (patch)
tree13dba3ce794a59f4a05e13930eda76df129c86ae /manifests/init.pp
parentf9e56b6d4308da2b298b6b616313ecc553a5b6dc (diff)
Fix some, but by no means all, of puppet-lint's complaining
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp17
1 files changed, 11 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a0f5265..8005aec 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -45,7 +45,12 @@
# 'stats' => 'enable',
# 'option' => 'redispatch',
# 'retries' => '3',
-# 'timeout' => ['http-request 10s', 'queue 1m', 'connect 10s', 'client 1m', 'server 1m', 'check 10s'],
+# 'timeout' => ['http-request 10s',
+# 'queue 1m',
+# 'connect 10s',
+# 'client 1m',
+# 'server 1m',
+# 'check 10s'],
# 'maxconn' => '8000'
# },
#
@@ -63,13 +68,13 @@ class haproxy (
include concat::setup
package { 'haproxy':
- ensure => $enable ? {
+ ensure => $enable ? {
true => present,
false => absent,
},
- name => 'haproxy',
+ name => 'haproxy',
}
-
+
if $enable {
concat { '/etc/haproxy/haproxy.cfg':
owner => '0',
@@ -95,11 +100,11 @@ class haproxy (
}
service { 'haproxy':
- ensure => $enable ? {
+ ensure => $enable ? {
true => running,
false => stopped,
},
- enable => $enable ? {
+ enable => $enable ? {
true => true,
false => false,
},