Created
April 20, 2011 04:49
-
-
Save deploylinux/930399 to your computer and use it in GitHub Desktop.
trying to figure out how to dynamically expand puppet service resource subscriptions - this code compiles but is it correct/will it work?
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
if $imagemagick_php { | |
$phpimagick = 'pecl-imagick' | |
} else { | |
$phpimagick = '' | |
} | |
$phpfpmsub = [ File['/etc/php/fpm-php5.3/php-fpm.conf','/etc/php/fpm-php5.3/php.ini'], Package['php',$phpimagick], ] | |
service {"php-fpm": | |
name => "php-fpm", | |
enable => "true", | |
ensure => "running", | |
hasstatus => "true", | |
subscribe => $phpfpmsub, | |
} |
barn
commented
Apr 20, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment