X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e683209e4f70c3ef4c859ebcd287544174cd760a..ec1ecc81ad6c862db39f4bfd0fd830f44909b61a:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index d638d9132..053d98b78 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -202,11 +202,11 @@ if node[:networking][:wireguard][:enabled] owner "root" group "systemd-network" mode "640" - content %x{wg genkey} + content %x(wg genkey) 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) file "/var/lib/systemd/wireguard/preshared.key" do action :create_if_missing