Skip to content
Snippets Groups Projects
Commit 45276b3f authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Fix ssh in router and add missing unpriviligized flag

parent 38a594c5
Branches
No related tags found
No related merge requests found
......@@ -22,12 +22,17 @@
dest: /etc/ssh/sshd_config
mode: 0600
- name: Ensure sshd is restarted and enabled to start at boot.
# disable the ssh.socket, otherwise it will collide with ssh.service
- name: Ensure ssh socket is disabled
service:
name: sshd
name: ssh.socket
enabled: no
- name: Ensure ssh is restarted and enabled to start at boot.
service:
name: ssh
state: restarted
enabled: yes
daemon_reload: yes
- name: Setup firewall
include_tasks: firewall.yaml
......@@ -13,6 +13,7 @@ resource "proxmox_lxc" "router" {
cores = 4
onboot = true
startup = "order=1"
unprivileged = true
ssh_public_keys = local.ssh_keys
......@@ -26,6 +27,7 @@ resource "proxmox_lxc" "router" {
bridge = "vmbr211"
ip = "152.66.211.122/24"
gw = "152.66.211.254"
hwaddr = "BE:7E:2B:F3:19:7A"
}
network {
......@@ -33,5 +35,6 @@ resource "proxmox_lxc" "router" {
bridge = "vmbr0"
ip = "192.168.99.254/22"
ip6 = "fd00::9:254/96"
hwaddr = "7A:9C:F7:A8:5D:1C"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment