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
|
class wordpress(
$folder = '/var/www/data',
$locale = hiera('wordpress::locale', '')
) {
$real_wordpress_locale = $locale ? {
'' => '',
default => "-${locale}"
}
file { "/usr/local/sbin/wordpress":
ensure => present,
content => template('wordpress/wordpress.sh.erb'),
owner => root,
group => root,
mode => 755,
}
file { "/usr/local/sbin/wp":
ensure => '/usr/local/sbin/wordpress',
owner => root,
group => root,
}
vcsrepo { "/usr/local/share/wp-cli":
ensure => present,
provider => git,
source => 'git://github.com/wp-cli/wp-cli.git',
revision => '27a2ff1e94ccb924d24a978c78fb3b1a9520ee25',
owner => 'root',
group => 'root',
}
}
|