Gent's

 

I' currently got the following problem:

 

Every time cfengine run's it restarts the ssh daemon even when nothing is 
changed.

How do I change this behaviour?

 

bundle agent sshd_config {

    files:
        linux::
        # Copy the sshd server configuration file
            "/etc/ssh/sshd_config"
                handle => "update_policy",
                perms => usystem("0644"),
                classes => satisfied("sshd_ready"),
                copy_from => 
umycopy("$(g.masterfiles)/PROD/repl/root/etc/ssh/linux_sshd_config");

 

        commands:

                # Restart sshd daemon when configuration changed
                sshd_ready::
                "/etc/init.d/sshd restart";
}

 

Regards,

Patrick
 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to