Puppet Class: sapient_test_apache

Defined in:
manifests/init.pp

Overview

Parameters:

  • puppetmaster (Any) (defaults to: "puppetmaster.sapient.com")


1
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
27
28
29
30
31
32
33
34
# File 'manifests/init.pp', line 1

class sapient_test_apache ($puppetmaster = "puppetmaster.sapient.com")
{
package { 'httpd':
        ensure => installed,
        }
file    { 'httpd':
        path    => '/etc/sysconfig/httpd',
        ensure  => file,
        content => 'HTTPD=/usr/sbin/httpd.worker',
        replace => true,
        }
file    { 'dispatcher-apache2.2-4.1.5.so':
        path    => '/etc/httpd/modules/dispatcher-apache2.2-4.1.5.so',
        ensure  => file,
        source  => "puppet://$puppetmaster/modules/test_apache_config/dispatcher-apache2.2-4.1.5.so",
        replace => false,
        }
file    { 'mod_dispatcher.so':
        path    => '/etc/httpd/modules/mod_dispatcher.so',
        ensure  => link,  
        target  => "/etc/httpd/modules/dispatcher-apache2.2-4.1.5.so",
        replace => false,
        }   
file    { 'dispatcher.conf':
        path    => '/etc/httpd/conf.d/dispatcher.conf',
        ensure  => file,
        source  => "puppet://$puppetmaster/modules/test_apache_config/dispatcher.conf",
        replace => false,
        owner  => "root",
        group  => "root",
        mode   => "0644",
        notify => Service["httpd"],
        }
}