From 23c665573aae0f77433ad3dc132b81aefa644f20 Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Thu, 3 Oct 2019 11:58:22 -0700 Subject: [PATCH] fb_ssh: add verifier, fix principals bug --- cookbooks/fb_ssh/recipes/default.rb | 1 + cookbooks/fb_ssh/resources/authorization.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/fb_ssh/recipes/default.rb b/cookbooks/fb_ssh/recipes/default.rb index 73be7504..91e4ba0a 100644 --- a/cookbooks/fb_ssh/recipes/default.rb +++ b/cookbooks/fb_ssh/recipes/default.rb @@ -62,6 +62,7 @@ group 'root' mode '0644' variables({ :type => 'sshd_config' }) + verify '/usr/sbin/sshd -t -f %{path}' notifies :restart, 'service[ssh]' end diff --git a/cookbooks/fb_ssh/resources/authorization.rb b/cookbooks/fb_ssh/resources/authorization.rb index 0a7f497d..23cc8a38 100644 --- a/cookbooks/fb_ssh/resources/authorization.rb +++ b/cookbooks/fb_ssh/resources/authorization.rb @@ -75,5 +75,5 @@ def manage(type) end action :manage_principals do - manager('principals') + manage('principals') end