我有一组配置文件,需要使用Puppet复制到目标位置;
$conf_files = ['krb5.conf', 'krb5.realms', 'ldap.ora', 'tnsnames.ora']
我尝试遵循此处https://stackoverflow.com/a/17176752/1069178所述的技术并定义了一个each
块;
each($conf_files) |$conf_file| {
file { "/target/path/${conf_file}":
ensure => file,
source => "source/path/${conf_file}",
}
}
但是我得到一个错误
The expression <krb5.conf> is not a valid type specification
我在做什么错了?