Defined Type: planet::config

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

Overview

defined type: a config dir and file for a planet language version

Parameters:

  • domain_name (Stdlib::Fqdn) (defaults to: $domain_name)
  • config_path (Stdlib::Unixpath) (defaults to: '/etc/rawdog')
  • config_file (String) (defaults to: 'config')
  • feed_src (String) (defaults to: 'feeds')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/planet/manifests/config.pp', line 2

define planet::config (
    Stdlib::Fqdn $domain_name = $domain_name,
    Stdlib::Unixpath $config_path = '/etc/rawdog',
    String $config_file = 'config',
    String $feed_src    = 'feeds',
){


    file { "${config_path}/${title}":
        ensure => 'directory',
        path   => "${config_path}/${title}",
        mode   => '0755',
        owner  => 'planet',
        group  => 'planet',
    }

    file { "${config_path}/${title}/${config_file}":
        ensure  => 'present',
        path    => "${config_path}/${title}/${config_file}",
        owner   => 'planet',
        group   => 'planet',
        mode    => '0444',
        content => template("planet/${feed_src}/${title}_config.erb"),
    }
}