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 => 'f93b73ca35350e48c727fc5a6862d3f7e2c31b33', owner => 'root', group => 'root', } }