Commit cd15e5b9 authored by mh's avatar mh
Browse files

change the fact everywhere

parent f1d478bc
......@@ -10,7 +10,7 @@ define php::install(
$target_mode = 'absent'
){
require ::php::pear::common::cli
case $::osfamily {
case $facts['os']['family'] {
'RedHat': {
# this is here as a blocker to enforce common best practices
if versioncmp($::operatingsystemmajrelease,'6') > 0 {
......@@ -65,7 +65,7 @@ define php::install(
}
default: { fail("no such ensure: ${ensure} for php::install") }
}
case $::osfamily {
case $facts['os']['family'] {
'RedHat': {
Exec["php_${mode}_${name}"]{
require => [ Package['php'], Package['php-common'] ],
......
......@@ -9,7 +9,7 @@ define php::package(
ensure => $ensure,
require => Package['php'],
}
if $::osfamily == 'RedHat' {
if $facts['os']['family'] == 'RedHat' {
if $mode == 'direct' {
Package["php${phpversion}-${name}"]{
name => "php${phpversion}-${name}",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment