Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maze
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rafael László
Maze
Commits
45276b3f
Commit
45276b3f
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Fix ssh in router and add missing unpriviligized flag
parent
38a594c5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/router/tasks/main.yaml
+8
-3
8 additions, 3 deletions
ansible/router/tasks/main.yaml
terraform/router.tf
+3
-0
3 additions, 0 deletions
terraform/router.tf
with
11 additions
and
3 deletions
ansible/router/tasks/main.yaml
+
8
−
3
View file @
45276b3f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
terraform/router.tf
+
3
−
0
View file @
45276b3f
...
...
@@ -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"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment