Defined Type: planet::apachesite

Defined in:
modules/planet/manifests/apachesite.pp

Overview

defined type: an apache site config for a planet language version

Parameters:

  • domain_name (Stdlib::Fqdn) (defaults to: $domain_name)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/planet/manifests/apachesite.pp', line 2

define planet::apachesite (
    Stdlib::Fqdn $domain_name = $domain_name,
){

    if $title == 'en' {
        $priority = 10
    } else {
        $priority = 50
    }

    httpd::site { "${title}.planet.${domain_name}":
        content  => template('planet/apache/planet-language.erb'),
        priority => $priority,
    }

}