Hi there,
i am new here and did not find any search form to first check whether this question have already been asked/solved. Very sorry if i missed something.
Here is my questions. Working on Ubuntu LTS 16.04 with puppet 3.8.5
I am trying to manage apparmor profiles with puppet. Therefore in my manifest i added the following line (in order to restart the apparmor service whenever the apache profile is modified (not sure yet it is i good idea) :
file { '/etc/apparmor.d/usr.sbin.apache2':
owner => root,
group => root,
mode => 644,
ensure => 'file',
source => 'puppet:///files/apparmor_profile_apache',
}
File['/etc/apparmor.d/usr.sbin.apache2'] ~> Service['apparmor']
When running the agent i know get this error message :
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource 'Service[apparmor]' for relationship from 'File[/etc/apparmor.d/usr.sbin.apache2]' on node xxxxxxxxxxxxxxxxxxx
while puppet seems to effectively know the apparmor service :
root@xxxxxxxxxxxxxx:/etc/apparmor.d# puppet resource service apparmor
service { 'apparmor':
ensure => 'running',
enable => 'true',
}
Any clue will be welcomed.
Thanks a lot.
With Regards
↧