Defined Type: pulp::apache_plugin

Defined in:
manifests/apache_plugin.pp

Overview

Define a the Apache config for a plugin

Parameters:

  • confd (Any) (defaults to: true)
  • vhosts80 (Any) (defaults to: true)


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

define pulp::apache_plugin ($confd = true, $vhosts80 = true) {
  include apache

  if $confd {
    file { "${apache::confd_dir}/pulp_${name}.conf":
      ensure  => file,
      content => template("pulp/etc/httpd/conf.d/pulp_${name}.conf.erb"),
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
      notify  => Service['httpd'],
    }
  }

  if $vhosts80 {
    file { "${apache::confd_dir}/pulp-vhosts80/${name}.conf":
      ensure  => file,
      content => template("pulp/vhosts80/${name}.conf"),
      owner   => 'apache',
      group   => 'apache',
      mode    => '0600',
      notify  => Service['httpd'],
    }
  }
}