From f8bb5413ac50d17073afc557e3e9b00a54135374 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 19 Dec 2012 09:44:22 +0100 Subject: [PATCH] Ignore staticsync's ssh keys on static* hosts --- modules/samhain/templates/samhainrc.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/samhain/templates/samhainrc.erb b/modules/samhain/templates/samhainrc.erb index d25138fb6..0f227ed7b 100644 --- a/modules/samhain/templates/samhainrc.erb +++ b/modules/samhain/templates/samhainrc.erb @@ -156,6 +156,10 @@ file=/etc/ferm/dsa.d file=/etc/rc.local file=/etc/unbound file=/etc/dsa +<% if scope.lookupvar('site::nodeinfo')['static_mirror'] or scope.lookupvar('site::nodeinfo')['static_source'] or scope.lookupvar('site::nodeinfo')['static_master'] -%> +file=/etc/ssh/userkeys +file=/etc/ssh/userkeys/staticsync +<% end -%> [LogFiles] ## -- 2.20.1