Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahogony
php
Commits
cd15e5b9
Commit
cd15e5b9
authored
Oct 22, 2017
by
mh
Browse files
change the fact everywhere
parent
f1d478bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/install.pp
View file @
cd15e5b9
...
...
@@ -10,7 +10,7 @@ define php::install(
$target_mode
=
'absent'
){
require
::
php::pear::common::cli
case
$
::os
family
{
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
$
::os
family
{
case
$
facts
[
'os'
][
'
family
'
]
{
'RedHat'
:
{
Exec
[
"php_
${mode}
_
${name}
"
]{
require
=>
[
Package
[
'php'
],
Package
[
'php-common'
]
],
...
...
manifests/package.pp
View file @
cd15e5b9
...
...
@@ -9,7 +9,7 @@ define php::package(
ensure
=>
$ensure
,
require
=>
Package
[
'php'
],
}
if
$
::os
family
==
'RedHat'
{
if
$
facts
[
'os'
][
'
family
'
]
==
'RedHat'
{
if
$mode
==
'direct'
{
Package
[
"php
${phpversion}
-
${name}
"
]{
name
=>
"php
${phpversion}
-
${name}
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment