发送不止一个文件给木偶客户端
我该如何configuration“init.pp”文件才能在同一个类中发送多个文件? 我所做的是这样的: class nagios { file { ['/usr/lib64/nagios/plugins/']: path => '/usr/lib64/nagios/plugins/', ensure => directory, notify => Service['nrpe'], source => ["puppet:///modules/mymodule/check_mem.sh", 'puppet:///modules/mymodule/check_mountpoint.sh'], sourceselect => all, } service { 'nrpe': ensure => 'running', enable => true, } } 我正在尝试发送两个不同的文件到同一个远程文件夹,然后重新启动服务。 但是,当我在客户端运行puppet时,出现这些错误: […] Error: Could not set 'file' on ensure: Is a directory – (/usr/lib64/nagios/plugins20170306-28992-j54k6x, /usr/lib64/nagios/plugins) at 153:/etc/puppet/modules/mymodule/manifests/init.pp […] […]