}
}
- # We should run master nodes web server behind an HTTPS proxy
- $nodo_https_proxy = 'yes'
-
# These should be included after puppetmaster
include nodo::vserver
include database
class websites::setup {
+ # Third-party hosted nodes generally aren't behind an https proxy
+ $hosting_type = hiera('nodo::vserver::hosting_type', 'direct')
+
# Include apache
class { 'apache':
- https_proxy => $nodo_https_proxy,
+ https_proxy => ? $hosting_type {
+ 'direct' => 'yes',
+ default => false,
+ },
}
# The needed apache modules
dohwinfo => false,
}
- $hosting_type = $node_hosting_type ? {
- '' => "direct",
- default => "$node_hosting_type",
- }
+ $hosting_type = hiera('nodo::vserver::hosting_type', 'direct')
case $hosting_type {
"direct": {
# for directly hosted nodes.
Munin_node <<| title == $::hostname |>>
Monkeysphere_host <<| title == $::hostname |>>
-
- # Set proxy configuration
- $nodo_https_proxy = 'yes'
}
"third-party": {
# Apply munin and monkeysphere configuration for
# nodes hosted by third-parties.
munin_node { "${::hostname}": }
monkeysphere_host { "${::hostname}":
- port => $node_ssh_port,
+ port => hiera('nodo::vserver::ssh_port', '22'),
}
# Nagios configuration