File tree 3 files changed +12
-9
lines changed
3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ module "vm" {
8
8
name = " algo-image_${ random_id . vm_suffix . hex } "
9
9
region = " us-east"
10
10
type = " g6-standard-1"
11
- algo_repo = " ${ var . algo_repo } "
11
+ algo_repo = var. algo_repo
12
12
source_image_id = " linode/ubuntu18.04"
13
- ssh_keys = [" ${ var . ssh_keys } " ]
14
- ssh_users = [" ${ var . ssh_users } " ]
13
+ ssh_keys = [var . ssh_keys ]
14
+ ssh_users = [var . ssh_users ]
15
15
}
16
16
17
17
resource "linode_image" "image" {
18
- linode_id = " ${ module . vm . linode_id } "
19
- disk_id = " ${ module . vm . disk_id } "
18
+ linode_id = module. vm . linode_id
19
+ disk_id = module. vm . disk_id
20
20
label = " algo-image"
21
21
description = " Created by Terraform"
22
22
}
23
+
Original file line number Diff line number Diff line change 1
1
output "image_id" {
2
- value = " ${ linode_image . image . id } "
2
+ value = linode_image. image . id
3
3
description = " ID of the Algo Image"
4
4
}
5
+
Original file line number Diff line number Diff line change 1
1
variable "algo_repo" {
2
- type = " string"
2
+ type = string
3
3
default = " https://github.com/akerl/algo"
4
4
description = " Repo to use for Algo code"
5
5
}
6
6
7
7
variable "ssh_keys" {
8
- type = " list"
8
+ type = list ( string )
9
9
description = " SSH public keys used to log in as root to the server"
10
10
default = []
11
11
}
12
12
13
13
variable "ssh_users" {
14
- type = " list"
14
+ type = list ( string )
15
15
description = " List of authorized users (Linode usernames, must have keys already assigned via Linode API)"
16
16
default = []
17
17
}
18
+
You can’t perform that action at this time.
0 commit comments