Hi

I have around 20 servers using puppet. I recently made a change to a module 
that adds an sshd_config file. Originally this was shipped to servers as a 
file however i swapped it over to become a template as a few of a servers 
required an addition to sshd_config. When puppet agent was run all servers 
were fine with this change however just 2 of them fail with the following 
error:

Error: Failed to apply catalog: Validation of File[/etc/ssh/sshd_config] 
failed: You cannot specify more than one of content, source, target at 
/etc/puppet/environments/production/modules/baseconfig/manifests/ssh.pp:21

There are no references in the module to another content source or target. 
I have tried to run puppet agent with ignorecache and even rebooted both 
the server with the error and the puppet master but still the same error 
occurs. The module looks like:

        file { '/etc/ssh/sshd_config':
                ensure  => file,
                owner   => root,
                group   => root,
                mode    => 0600,
                content => template('baseconfig/sshd_config.erb'),
                notify =>  Service['sshd'],
        }


Any ideas why only 2 servers are affected by this? FYI i'm using Foreman as 
an ENC.

Thanks!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/37405ded-dd3c-496e-86c2-fac405d8f471%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to