From: Tom Hughes Date: Mon, 14 Sep 2020 16:25:21 +0000 (+0100) Subject: Strip trailing newline from public key X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/1339d82c4c3b3d37bd51172845ec2df9b77cad6a Strip trailing newline from public key --- 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