From 1339d82c4c3b3d37bd51172845ec2df9b77cad6a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 14 Sep 2020 17:25:21 +0100 Subject: [PATCH] Strip trailing newline from public key --- cookbooks/networking/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index ac847bfc7..117a1e3f3 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -210,7 +210,7 @@ if node[:networking][:wireguard][:enabled] compile_time true end - node.default[:networking][:wireguard][:public_key] = %x(wg pubkey < /var/lib/systemd/wireguard/private.key) + node.default[:networking][:wireguard][:public_key] = %x(wg pubkey < /var/lib/systemd/wireguard/private.key).chomp file "/var/lib/systemd/wireguard/preshared.key" do action :create_if_missing -- 2.43.2