feat: move off of using root for deployment
This commit is contained in:
parent
c87fec1a65
commit
165c4645bf
14 changed files with 18 additions and 13 deletions
|
@ -69,6 +69,11 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [
|
||||||
|
"root"
|
||||||
|
"@skynet-admins-linux"
|
||||||
|
];
|
||||||
|
|
||||||
# give users a home dir
|
# give users a home dir
|
||||||
security.pam.services.sshd.makeHomeDir = true;
|
security.pam.services.sshd.makeHomeDir = true;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
# somehow ssh from runner to this fails
|
# somehow ssh from runner to this fails
|
||||||
tags = ["active-firewall"];
|
tags = ["active-firewall"];
|
||||||
|
|
|
@ -26,7 +26,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = ip_pub;
|
targetHost = ip_pub;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-core"];
|
tags = ["active-core"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active"];
|
tags = ["active"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-core"];
|
tags = ["active-core"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-gitlab"];
|
tags = ["active-gitlab"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-core"];
|
tags = ["active-core"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-core"];
|
tags = ["active-core"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active"];
|
tags = ["active"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,7 +30,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
# these two are to be able to add the rules for firewall and dns
|
# these two are to be able to add the rules for firewall and dns
|
||||||
|
|
|
@ -28,7 +28,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = ip_pub;
|
targetHost = ip_pub;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
# this one is manually deployed
|
# this one is manually deployed
|
||||||
tags = ["active-ext"];
|
tags = ["active-ext"];
|
||||||
|
|
|
@ -27,7 +27,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = ip_pub;
|
targetHost = ip_pub;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-dns" "dns"];
|
tags = ["active-dns" "dns"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,7 +24,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = ip_pub;
|
targetHost = ip_pub;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-dns" "dns"];
|
tags = ["active-dns" "dns"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,7 +26,7 @@ in {
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = hostname;
|
targetHost = hostname;
|
||||||
targetPort = 22;
|
targetPort = 22;
|
||||||
targetUser = "root";
|
targetUser = null;
|
||||||
|
|
||||||
tags = ["active-gitlab"];
|
tags = ["active-gitlab"];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue