blob: 8c4881adaeeb922bde2ef6314df401b4fcffff0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class wordpress {
$wp_cli = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar'
file { "/usr/local/sbin/wordpress":
ensure => present,
source => "puppet:///modules/wordpress/wordpress.sh",
owner => root,
group => root,
mode => 755,
}
# Composer
exec { 'getwp':
command => "/usr/bin/wget ${wp_cli} -O /usr/local/bin/wp-cli && chmod +x /usr/local/bin/wp-cli",
user => 'root',
cwd => '/tmp',
creates => '/usr/local/bin/wp-cli',
}
}
|