1.服务资源的特性
class dnspod::service { service { "dnspod": name => "dnspod-sr", ensure => running, enable => true, hasrestart => true, hasstatus => true, path => "/etc/init.d", require => Class["dnspod::install"], subscribe => File["/usr/local/dnspod-sr/conf/sr.conf"], } }
原文:https://www.cnblogs.com/pycode/p/9495836.html