Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Write custom file to client

I need to configure cents 7 to auth to AD. I have to write custom sssd.conf From init.pp config class is called: class { '::realmd::sssd::config': }~> in config class i need to set contents of sssd.conf :class realmd::sssd::config {

$_sssd_config = $::realmd::sssd_config

file { $::realmd::sssd_config_file:
  content => file('realmd/files/sssd.conf'),
  owner   => 'root',
  group   => 'root',
  mode    => '0600',
  notify  => Exec['force_config_cache_rebuild'],
}
exec { 'force_config_cache_rebuild':
  command     => "/usr/bin/rm -f ${::realmd::sssd_config_cache_file}",
  refreshonly => true,

} }

But on client side I get Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find any files from realmd/files/sssd.conf at...

It is obvious I have no clue what I am doing here, but be nice to get this working

Thank you