File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ resource "null_resource" "nixos-rebuild" {
3
3
store_path = var.nixos_system
4
4
}
5
5
provisioner "local-exec" {
6
- command = " ${ path . module } /deploy.sh ${ var . nixos_system } root @${ var . target_host } ${ var . target_port } "
6
+ command = " ${ path . module } /deploy.sh ${ var . nixos_system } ${ var . target_user } @${ var . target_host } ${ var . target_port } "
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ variable "target_host" {
8
8
description = " DNS host to deploy to"
9
9
}
10
10
11
+ variable "target_user" {
12
+ type = string
13
+ default = " root"
14
+ description = " User to deploy as"
15
+ }
16
+
11
17
variable "target_port" {
12
18
type = number
13
19
description = " SSH port used to connect to the target_host"
You can’t perform that action at this time.
0 commit comments