aboutsummaryrefslogtreecommitdiffstats
path: root/modules/php/manifests/init.pp
blob: 56477df14626b5156d40faccd6d18c3bfb0fcf3d (plain)
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
class php {
    class base {
        $php_sender_email = "root@$domain"

        package {"php-ini":
	    ensure => installed,
	}

	file { "/etc/php.ini":
	    ensure => present,
	    owner => root,
	    group => root,
	    mode => 755,
	    require => Package['php-ini'],
	    content => template('php/php.ini'),
	}
    }

    class php_cli inherits base {
	package {"php-cli":
	    ensure => installed,
	}
    }

    # if you want to use apache-mod_php, include apache::mod_php
}