我需要确保puppet使用带有'--with-xsl'标志的LibXML安装Php。
我有以下所有关于php的课程:
class php {
package { "php5-cli": ensure => present }
package { "php5-dev": ensure => present }
package { "php5-mysql": ensure => present }
package { "php-pear": ensure => present }
package { "php5-common": ensure => present}
package { "php5-fpm": ensure => present}
package { "php5-cgi": ensure => present}
package { "php-apc": ensure => present}
exec { "pear upgrade":
command => "/usr/bin/pear upgrade",
require => Package["php-pear"],
}
}
不知道如何在这里使用标志。 非常感谢提前。
答案 0 :(得分:0)
如果要为所有这些标记安装--with-xsl
标记,可以尝试此操作:
all_php_packages = ["php5-cli","php5-dev","php5-mysql","php-pear",
"php5-common","php5-fpm","php5-cgi","php-apc"]
package{ $all_php_packages :
ensure => present,
install_options => ["--with-xsl","--some-other-option",],
}