使用puppet修复/ etc / default /中已禁用的服务?
我使用木偶来(理论上)让npcd在安装时启动,但是在Ubuntu上,这个服务安装在RUN =“no”的/ etc / default / npcd默认设置中: $ cat /etc/default/npcd # Default settings for the NPCD init script. # Should NPCD be started? ("yes" to enable) RUN="no" # Additional options that are passed to the daemon. DAEMON_OPTS="-d -f /etc/pnp4nagios/npcd.cfg" 我会认为这块木偶configuration会照顾的事情: service { "npcd": enable => true, ensure => "running", require => Package["pnp4nagios"], } 但是,可惜的是,它并没有实际重写/ etc […]