summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2010-02-17 17:34:20 -0200
committerdrebs <drebs@riseup.net>2010-02-17 17:34:20 -0200
commit18b47a893743d0418b38a4db07519b019e738e81 (patch)
treeb90d5d033f98cdce4418e9e23fb080c93fcba945 /manifests
parentbf1863829dc4ca789c627d245305042eb87d83ac (diff)
downloadpuppet-puppet-18b47a893743d0418b38a4db07519b019e738e81.tar.gz
puppet-puppet-18b47a893743d0418b38a4db07519b019e738e81.tar.bz2
Fixing syntax problems.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/puppetmasterd.pp55
1 files changed, 28 insertions, 27 deletions
diff --git a/manifests/puppetmasterd.pp b/manifests/puppetmasterd.pp
index c0474fe..a13070c 100644
--- a/manifests/puppetmasterd.pp
+++ b/manifests/puppetmasterd.pp
@@ -40,36 +40,37 @@ class puppetmasterd {
notify => Service['puppetmaster'],
}
- if $puppetmaster_servertype == 'mongrel' {
- if !defined(Package["mongrel"]) {
- package { "mongrel":
- ensure => installed,
+ case $puppetmaster_servertype {
+ 'mongrel': {
+ case defined(Package["mongrel"]) {
+ false: { package { "mongrel": ensure => installed, } }
+ }
+
+ service { "puppetmaster":
+ enable => true,
+ ensure => running,
+ hasrestart => true,
+ require => [ Package['puppetmaster'], Package['mongrel'] ],
}
- }
-
- service { "puppetmaster":
- enable => true,
- ensure => running,
- hasrestart => true,
- require => Package['puppetmaster'], Package['mongrel'],
- }
- nginx::puppetmaster::proxy{ "puppet.$domain":
- $worker_processes => 4,
- $worker_connections => 1024,
- $ssl_port => 8140,
- $non_ssl_port => 8141,
- $puppetmaster_servers => [ "127.0.0.1:18140",
- "127.0.0.1:18141",
- "127.0.0.1:18142",
- "127.0.0.1:18143", ],
+ nginx::puppetmaster::proxy{ "puppet.$domain":
+ worker_processes => 4,
+ worker_connections => 1024,
+ ssl_port => 8140,
+ non_ssl_port => 8141,
+ puppetmaster_servers => [ "127.0.0.1:18140",
+ "127.0.0.1:18141",
+ "127.0.0.1:18142",
+ "127.0.0.1:18143" ],
+ }
}
- } else {
- service { "puppetmaster":
- enable => true,
- ensure => running,
- hasrestart => true,
- require => Package['puppetmaster'],
+ default: {
+ service { "puppetmaster":
+ enable => true,
+ ensure => running,
+ hasrestart => true,
+ require => Package['puppetmaster'],
+ }
}
}