1
嗨,大家好,我是傀儡新手,我想在客戶端使用puppet執行以下命令,以便在puppet客戶端上啓用快速cgi mod。 lighttpd的啓用-MOD的FastCGI在lighttpd中通過puppet啓用fastcgi mod
兩個傀儡服務器和客戶端的Ubuntu機器和我的lighttpd模塊的init.pp文件如下:
class lighttpd::install {
package { "lighttpd":
ensure => present,
}
}
class lighttpd::conf {
file { "/etc/lighttpd/lighttpd.conf":
ensure => present,
owner => 'root',
group => 'root',
mode => 0600,
source => "puppet:///modules/lighttpd/lighttpd.conf",
require => Class["lighttpd::install"],
}
}
class lighttpd::fastcgi {
file { "/etc/lighttpd/conf-available/10-fastcgi.conf":
ensure => present,
owner => 'root',
group => 'root',
mode => 0600,
source => "puppet:///modules/lighttpd/10-fastcgi.conf",
require => Class["lighttpd::install"],
}
}
class lighttpd {
include lighttpd::install, lighttpd::conf, lighttpd::fastcgi
}
請幫我在執行這個命令傀儡客戶。
感謝