diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 423b3ba..9af4b97 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,29 +1,30 @@ -class wordpress( - $folder = '/var/www/data', - $locale = hiera('wordpress::locale', '') -) { - - $real_wordpress_locale = $locale ? { - '' => '', - default => "-${locale}" - } - +class wordpress { file { "/usr/local/sbin/wordpress": ensure => present, - content => template('wordpress/wordpress.sh.erb'), + source => "puppet:///modules/wordpress/wordpress.sh", owner => root, group => root, mode => 755, } + # Composer + exec { 'getwp': + command => '/usr/bin/wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wp-cli', + user => 'root', + cwd => '/tmp', + creates => '/usr/local/bin/wp-cli', + } + + # TODO: remove in the future file { "/usr/local/sbin/wp": - ensure => '/usr/local/sbin/wordpress', + ensure => absent, owner => root, group => root, } + # TODO: remove in the future vcsrepo { "/usr/local/share/wp-cli": - ensure => present, + ensure => absent, provider => git, source => 'git://github.com/wp-cli/wp-cli.git', revision => 'b30a0745ef5ffe1c9f2a4d9a021aef213a78c867', |