1 class profile::wireguard (
3 $password_seed = lookup("base_installation::puppet_pass_seed")
5 ensure_packages(["linux-headers"], { before => Package["wireguard-dkms"] })
6 ensure_packages(["wireguard-tools", "wireguard-dkms"])
8 $host = $facts["ldapvar"]["self"]
9 if has_key($host["vars"], "wireguard_ip") {
10 $ips = $host["vars"]["wireguard_ip"]
15 $private_key = generate_password(32, $password_seed, "wireguard", "curve25519", true)
17 file { "/etc/wireguard/network.conf":
20 content => template("profile/wireguard/network.conf.erb"),
21 require => [Package["wireguard-tools"], Package["wireguard-dkms"]],
24 service { "wg-quick@network":