-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.pp
167 lines (143 loc) · 3.56 KB
/
manifest.pp
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
class minimal_centos_60 {
group { "puppet":
ensure => "present",
}
package { "epel-release":
provider => rpm,
ensure => installed,
source => "http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm"
}
package { "ius-release":
require => Package["epel-release"],
provider => rpm,
ensure => installed,
source => "http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-15.ius.el6.noarch.rpm"
}
exec { "upgrade-ca-certificates":
command => "/usr/bin/yum upgrade ca-certificates -y --disablerepo=epel",
require => Package["ius-release"],
}
package { "httpd":
ensure => latest,
}
package { "php56u":
require => [
Package["httpd"],
Exec["upgrade-ca-certificates"]
],
ensure => latest,
notify => Service["httpd"],
}
package { "php56u-devel":
require => Package["php56u"],
ensure => latest,
notify => Service["httpd"],
}
package { "php56u-pecl-apcu":
require => Package["php56u"],
ensure => latest,
notify => Service["httpd"],
}
package { "php56u-pear":
require => Package["php56u"],
ensure => latest,
notify => Service["httpd"],
}
package { "php56u-xml":
require => Package["php56u"],
ensure => latest,
notify => Service["httpd"],
}
package { "curl":
ensure => latest,
}
package { "git":
ensure => latest,
}
file { "/etc/environment":
ensure => file,
owner => root,
group => root,
mode => "0644",
source => "/vagrant/etc/environment",
notify => Service["httpd"],
}
file { "/etc/sysconfig/httpd":
ensure => file,
owner => root,
group => root,
mode => "0644",
source => "/vagrant/etc/sysconfig/httpd",
notify => Service["httpd"],
}
file { "/etc/php.ini":
require => Package["php56u"],
ensure => file,
owner => root,
group => root,
mode => "0644",
source => "/vagrant/etc/php.ini",
notify => Service["httpd"],
}
file { "/etc/php.d/xdebug.ini":
require => Package["php56u"],
ensure => file,
owner => root,
group => root,
mode => "0644",
source => "/vagrant/etc/php.d/xdebug.ini",
notify => Service["httpd"],
}
file { "/etc/httpd/conf/httpd.conf":
require => Package["httpd"],
ensure => file,
owner => root,
group => root,
mode => "0644",
source => "/vagrant/etc/httpd/conf/httpd.conf",
notify => Service["httpd"],
}
service { "httpd":
ensure => running,
require => [
Package["httpd"],
File["/etc/httpd/conf/httpd.conf"],
],
}
package { "php56u-pecl-xdebug":
require => Package["php56u"],
ensure => latest,
notify => Service["httpd"],
}
exec { "/usr/bin/pear channel-update pear.php.net":
require => Package["php56u-pear"],
timeout => 0,
}
exec { "/usr/bin/pear config-set auto_discover 1":
require => [
Package["php56u-pear"],
Exec["/usr/bin/pear channel-update pear.php.net"]
],
timeout => 0,
}
exec { "/usr/bin/pear upgrade pear.phing.info/phing":
require => [
Exec["/usr/bin/pear channel-update pear.php.net"],
Exec["/usr/bin/pear config-set auto_discover 1"]
],
timeout => 0,
}
exec { "/usr/bin/phing -f /vagrant/build.xml build":
logoutput => on_failure,
timeout => 0,
}
exec { "/usr/bin/php /vagrant/admin.php events:build":
require => Exec["/usr/bin/phing -f /vagrant/build.xml build"],
environment => [
"DATA_CACHE=/tmp/data",
],
logoutput => on_failure,
timeout => 0,
}
}
include minimal_centos_60