-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the ability to load other php5-centric packages, including a d…
…efault list with add/remove similar to the apache2 modules.
- Loading branch information
Showing
3 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
define apache2::php::package | ||
( | ||
$packageName = $name, | ||
$ensure = latest | ||
) | ||
{ | ||
include apache2::params | ||
|
||
validate_string( $packageName ) | ||
validate_string( $ensure ) | ||
|
||
# if the name doesn't already start with php5-, make it so. | ||
if ( $packageName =~ /^php5-/ ) { | ||
$fixedPackageName = $packageName | ||
} | ||
else { | ||
$fixedPackageName = "php5-$packageName" | ||
} | ||
|
||
package { $fixedPackageName : | ||
ensure => $ensure, | ||
require => Package[ $params::phpPackageName ], | ||
} | ||
|
||
} |