Hello
First up the file type supports selinux roles etc so you might not need any of that.
If you did make the exec resource refreshonly and notify it from the file resource.
Anyway the parser is right the syntax is bad. Inside the curly its always like
type{'name':
var => value,
Followed by more of the same pairs
}
Neil
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e40a6bc4-170f-4be6-bacb-73e13c483ce9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi;This one should be easy; but, so far, it's eluding me.I would like to configure ssh to use a different directory for authorized keys files. I have the file resource which that works on its own. I want the file resource to call the exec to set the selinux type on the directory when needed.
Here's what I have:
file { $ssh::params::ssh_rootkeys:ensure => present,owner => root,group => sys,mode => '0750',source => 'puppet:///modules/ssh/authorized_keys.root',sshdir_selinux { },