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
|
||||
security.pam.services.sshd.makeHomeDir = true;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
# somehow ssh from runner to this fails
|
||||
tags = ["active-firewall"];
|
||||
|
|
|
@ -26,7 +26,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-core"];
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active"];
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-core"];
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-gitlab"];
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-core"];
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-core"];
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active"];
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
};
|
||||
|
||||
# these two are to be able to add the rules for firewall and dns
|
||||
|
|
|
@ -28,7 +28,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
# this one is manually deployed
|
||||
tags = ["active-ext"];
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-dns" "dns"];
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-dns" "dns"];
|
||||
};
|
||||
|
|
|
@ -26,7 +26,7 @@ in {
|
|||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
targetUser = null;
|
||||
|
||||
tags = ["active-gitlab"];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue