diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-05 19:07:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-05 19:07:00 -0300 |
commit | 7581a6b6e243e6c7237e3e9bb92e7591710d4d21 (patch) | |
tree | 3d1081eed29288c50e968c4bbf08f97738fdfbbe | |
parent | 7382b3a86ba9ad9688e9da70c293e2a17d9c8724 (diff) | |
download | puppet-php-7581a6b6e243e6c7237e3e9bb92e7591710d4d21.tar.gz puppet-php-7581a6b6e243e6c7237e3e9bb92e7591710d4d21.tar.bz2 |
Changes for puppet 4 compatibility
-rw-r--r-- | manifests/config.pp | 2 | ||||
-rw-r--r-- | manifests/init.pp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 817790a..b92ea26 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -3,7 +3,7 @@ define php::config($order = '20', $value, $ensure = 'present', $sapi = 'apache2' ensure => $ensure, owner => root, group => root, - mode => 0644, + mode => '0644', content => "${name}=${value}\n", require => File["${::php::folder}/${sapi}/conf.d"], notify => $sapi ? { diff --git a/manifests/init.pp b/manifests/init.pp index ade50f0..c654076 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -35,7 +35,7 @@ class php($hardened = true) { ensure => directory, owner => root, group => root, - mode => 0755, + mode => '0755', require => Package['php5'], } @@ -43,7 +43,7 @@ class php($hardened = true) { # ensure => present, # owner => root, # group => root, - # mode => 0644, + # mode => '0644', # source => [ "puppet:///modules/site_php/cli/${::fqdn}/php.ini", # "puppet:///modules/site_php/cli/${::domain}/php.ini", # "puppet:///modules/php/cli/php.${::operatingsystem}_${::lsbdistcodename}.ini", @@ -56,7 +56,7 @@ class php($hardened = true) { # ensure => present, # owner => root, # group => root, - # mode => 0644, + # mode => '0644', # source => [ "puppet:///modules/site_php/apache2/${::fqdn}/php.ini", # "puppet:///modules/site_php/apache2/${::domain}/php.ini", # "puppet:///modules/php/apache2/php.${::operatingsystem}_${::lsbdistcodename}.ini", |