Right now when you try to manage the `pipeline.yaml` or
`event_pipeline.yaml` via Puppet, notification-agent can't start
because it can't read the file because it has by default root:root
permissions. This enforces to have root:ceilometer and mode rw-r-----
to allow the daemon read the pipeline files
Change-Id: Ia97821135a2d51377514f2bcf389126254209e76
path => $::ceilometer::params::event_pipeline,
content => template('ceilometer/event_pipeline.yaml.erb'),
selinux_ignore_defaults => true,
+ mode => '0640',
+ owner => 'root',
+ group => 'ceilometer',
tag => 'ceilometer-yamls',
}
}
path => $::ceilometer::params::pipeline,
content => template('ceilometer/pipeline.yaml.erb'),
selinux_ignore_defaults => true,
+ mode => '0640',
+ owner => 'root',
+ group => 'ceilometer',
tag => 'ceilometer-yamls',
}
}
) }
it { is_expected.to contain_file('event_pipeline').with(
- 'path' => '/etc/ceilometer/event_pipeline.yaml',
+ 'path' => '/etc/ceilometer/event_pipeline.yaml',
+ 'owner' => 'root',
+ 'group' => 'ceilometer',
+ 'mode' => '0640',
) }
it { 'configures event_pipeline with the default notifier'
it { is_expected.to contain_file('pipeline').with(
'path' => '/etc/ceilometer/pipeline.yaml',
+ 'mode' => '0640',
+ 'owner' => 'root',
+ 'group' => 'ceilometer',
) }
end