forked from Fediversity/Fediversity
note that, other than being easier to call, this maintains the TF deployment's status of remaining a glorified wrapper of the SSH deployment.
54 lines
1.2 KiB
HCL
54 lines
1.2 KiB
HCL
variable "system" {
|
|
description = "The architecture of the system to deploy to."
|
|
type = string
|
|
default = "x86_64-linux"
|
|
}
|
|
|
|
variable "username" {
|
|
description = "the SSH user to use"
|
|
type = string
|
|
default = "root"
|
|
}
|
|
|
|
variable "host" {
|
|
description = "the host to access by SSH"
|
|
type = string
|
|
}
|
|
|
|
variable "module" {
|
|
description = "The module to call to obtain the NixOS configuration from."
|
|
type = string
|
|
}
|
|
|
|
variable "args" {
|
|
description = "The arguments with which to call the module to obtain the NixOS configuration."
|
|
type = string
|
|
default = "{}"
|
|
}
|
|
|
|
variable "key_file" {
|
|
description = "path to the user's SSH private key"
|
|
type = string
|
|
}
|
|
|
|
variable "deployment_name" {
|
|
description = "The name of the deployment for which to obtain the NixOS configuration."
|
|
type = string
|
|
}
|
|
|
|
variable "root_path" {
|
|
description = "The path to the root of the repository."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_opts" {
|
|
description = "Extra SSH options (`-o`) to use."
|
|
type = string
|
|
default = "[]"
|
|
}
|
|
|
|
variable "deployment_type" {
|
|
description = "A `deployment-type` from the Fediversity data model, for grabbing the desired NixOS configuration."
|
|
type = string
|
|
default = "tf-host"
|
|
}
|