【发布时间】:2015-07-13 00:30:31
【问题描述】:
我正在使用这个 CIS 模块arildjensen/cis-puppet
并且想要覆盖 CIS 模块上的 /etc/profile 文件声明
所以我创建了这个新清单,遵循这个post
class profile::hadoop::settings inherits cis {
file { '/etc/profile':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0600',
source => 'puppet:///modules/profile/hadoop/etc/profile',
}
}
但是这仍然给出错误
Error: Duplicate declaration: File[/etc/profile] is already declared in file /tmp/vagrant-puppet/modules-ab9b45e51a68912cdc576c81d46a2260/profile/manifests/hadoop/settings.pp:9; cannot redeclare at /tmp/vagrant-puppet/modules-ab9b45e51a68912cdc576c81d46a2260/cis/manifests/linuxcontrols/c0076.pp:12 on node server.localdomain
【问题讨论】:
标签: linux automation centos puppet