This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
EXAMPLE
63 lines (53 loc) · 1.59 KB
/
EXAMPLE
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Apache example
class my_php {
php::module { [
'gearman', 'curl', 'gd', 'gmagick', 'igbinary',
'inotify', 'mcrypt', 'memcached', 'mogilefs', 'mysql',
'pecl-http', 'proctitle', 'tidy', 'xhprof', 'intl', 'imap',
'oauth', 'sphinx',
]:
require => Apt::Sources_list['dotdeb-php53'],
notify => Service['apache'],
}
php::module { 'redis':
ensure => absent,
}
php::module { 'xcache':
content => 'global/etc/php5/conf.d/',
require => Apt::Sources_list['dotdeb-php53'],
notify => Service['apache'],
}
php::module { [ 'suhosin', 'xdebug', ]:
require => Apt::Sources_list['dotdeb-php53'],
notify => Service['apache'],
source => true,
}
php::conf { [ 'browscap', 'global', ]:
require => Apt::Sources_list['dotdeb-php53'],
notify => Service['apache'],
source => true,
}
php::conf { [ 'mysqli', 'pdo', 'pdo_mysql', ]:
require => Package['php-mysql'],
notify => Service['apache'],
}
php::extra { 'lite_php_browscap':
require => Php::Conf['browscap'],
notify => Service['apache'],
source => true,
}
}
# FPM example
class my_fpm_php {
php::module { [ 'curl', 'gd', 'mcrypt', 'mysql', 'suhosin', ]:
notify => Class['php::fpm::service'],
}
php::module { [ 'memcache', 'apc', ]:
notify => Class['php::fpm::service'],
source => true,
}
# Add a pool definition
php::fpm::pool { 'my_pool':
source => 'puppet:///files/path/to/your/pool',
}
}