我想使用傀儡来安装apache并启用一些模块,所以我安装了puppetlabs/apache模块,并尝试使用它。
Apache安装得很好,但是模块根本没有启用。我试过了,就像自述的那样
class { 'apache': }
class { 'apache::mod::ssl': }
class { 'apache::mod::fcgid': }
class { 'apache::mod::suexec': }也像这样
include apache
a2mod { "Enable ssl":
name => "ssl",
ensure => "present"
}
...既没有安装模块(libasache2-mod-fcgid、apache2-suexec),也没有启用它们。
服务器为Ubuntu12.04
更新:--debug输出
/Stage[main]/Apache::Mod::Suexec/Apache::Mod[suexec]/Package[apache2-suexec]/require: requires Package[httpd]
/Stage[main]/Apache::Mod::Suexec/Apache::Mod[suexec]/Package[apache2-suexec]/before: requires A2mod[suexec]
/Stage[main]/Apache::Mod::Fcgid/Apache::Mod[fcgid]/A2mod[fcgid]/require: requires Package[httpd]
/Stage[main]/Apache::Mod::Fcgid/Apache::Mod[fcgid]/A2mod[fcgid]/notify: subscribes to Service[httpd]
/Stage[main]/Apache::Mod::Suexec/Apache::Mod[suexec]/A2mod[suexec]/require: requires Package[httpd]
/Stage[main]/Apache::Mod::Suexec/Apache::Mod[suexec]/A2mod[suexec]/notify: subscribes to Service[httpd]
/Stage[main]/Apache::Mod::Ssl/Apache::Mod[ssl]/A2mod[ssl]/require: requires Package[httpd]
/Stage[main]/Apache::Mod::Ssl/Apache::Mod[ssl]/A2mod[ssl]/notify: subscribes to Service[httpd]更新:现在已经安装了fcgid和suexec所需的包,fcgid模块甚至已经启用,但是suexec和ssl mods仍然是禁用的。
发布于 2013-04-03 21:49:23
我遇到了同样的问题,最后尝试了一下这个例子42/apache模块。就像一种魅力。
就我而言:
class { "apache": }
apache::module { 'ldap':
install_package => false,
}https://serverfault.com/questions/471569
复制相似问题