mirror of
https://gh.wpcy.net/https://github.com/Chassis/puppet-wp.git
synced 2026-05-27 10:40:41 +08:00
24 lines
648 B
Puppet
24 lines
648 B
Puppet
# A class for parameters we might need to use.
|
|
class wp::params {
|
|
$user = $facts['os']['family'] ? {
|
|
'windows' => undef,
|
|
default => 'www-data',
|
|
}
|
|
$bin_path = '/usr/local/bin'
|
|
$executable_filename = $facts['os']['family'] ? {
|
|
'windows' => 'wp.bat',
|
|
default => 'wp',
|
|
}
|
|
$php_package = $facts['os']['family'] ? {
|
|
/^(Debian|Ubuntu)$/ => 'php5-cli',
|
|
'windows' => 'php',
|
|
default => 'php-cli',
|
|
}
|
|
$php_executable_path = $facts['os']['family'] ? {
|
|
'windows' => 'C:/tools/php80/php.exe',
|
|
default => '/usr/bin/php',
|
|
}
|
|
$manage_php_package = true
|
|
$manage_curl_package = true
|
|
$manage_git_package = true
|
|
}
|