Skip to content

Commit 4e53cba

Browse files
committed
added installation script for wireguard in system-vm pipeline
1 parent 9c6f2a9 commit 4e53cba

File tree

7 files changed

+33
-0
lines changed

7 files changed

+33
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Restart WireGuard
3+
After=network.target
4+
5+
[Service]
6+
Type=oneshot
7+
ExecStart=/usr/bin/systemctl restart [email protected]
8+
9+
[Install]
10+
RequiredBy=wg-config-watch.path
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=Watch /etc/wireguard/wg0.conf for changes
3+
4+
[Path]
5+
PathModified=/etc/wireguard/wg0.conf
6+
7+
[Install]
8+
WantedBy=multi-user.target
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
### Placeholder ###
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
function install_wg_srv() {
7+
apt-get install -y wireguard
8+
}
9+
10+
## main ##
11+
install_wg_srv

tools/appliance/systemvmtemplate/template-base_aarch64-target_aarch64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"scripts/configure_networking.sh",
7979
"scripts/configure_acpid.sh",
8080
"scripts/install_systemvm_packages.sh",
81+
"scripts/install_wg.sh",
8182
"scripts/configure_conntrack.sh",
8283
"scripts/authorized_keys.sh",
8384
"scripts/configure_persistent_config.sh",

tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"scripts/configure_networking.sh",
7777
"scripts/configure_acpid.sh",
7878
"scripts/install_systemvm_packages.sh",
79+
"scripts/install_wg.sh",
7980
"scripts/configure_conntrack.sh",
8081
"scripts/authorized_keys.sh",
8182
"scripts/configure_persistent_config.sh",

tools/appliance/systemvmtemplate/template-base_x86_64-target_x86_64.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"scripts/configure_networking.sh",
6161
"scripts/configure_acpid.sh",
6262
"scripts/install_systemvm_packages.sh",
63+
"scripts/install_wg.sh",
6364
"scripts/configure_conntrack.sh",
6465
"scripts/authorized_keys.sh",
6566
"scripts/configure_persistent_config.sh",

0 commit comments

Comments
 (0)