File tree 6 files changed +15
-20
lines changed 6 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,9 @@ example Systemd service: [./terraform/resources/ssh-key-agent.service](./terrafo
33
33
34
34
Repository includes a terraform module, for use instructions have a look at
35
35
[ ./terraform/README.md] ( ./terraform/README.md )
36
+
37
+ ### releasing
38
+
39
+ Before creating a tag / release in Github, please update the Docker image
40
+ reference in
41
+ [ ./terraform/variables.tf] ( ./terraform/variables.tf )
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ module "ssh_key_agent" {
19
19
20
20
]
21
21
22
- ssh_key_agent_version = "1.0.4"
23
22
uri = "https://s3-eu-west-1.amazonaws.com/example-keys-cache/authmap"
24
23
}
25
24
```
Original file line number Diff line number Diff line change 1
- data "template_file" "ssh-key-agent" {
2
- template = " ${ file (" ${ path . module } /resources/ssh-key-agent.service" )} "
3
-
4
- vars = {
5
- uri = var.uri
6
- groups = " ${ join (" ," , var. groups )} "
7
- version = var.ssh_key_agent_version
8
- }
9
- }
10
-
11
1
data "ignition_systemd_unit" "ssh-key-agent" {
12
2
name = " ssh-key-agent.service"
13
3
enabled = var. enabled
14
- content = data. template_file . ssh-key-agent . rendered
4
+ content = templatefile (" ${ path . module } /resources/ssh-key-agent.service" ,
5
+ {
6
+ uri = var.uri
7
+ groups = " ${ join (" ," , var. groups )} "
8
+ version = var.docker_image_version
9
+ }
10
+ )
15
11
}
Original file line number Diff line number Diff line change 1
1
output "id" {
2
2
value = data. ignition_systemd_unit . ssh-key-agent . id
3
3
}
4
-
5
- output "template_rendered" {
6
- value = data. template_file . ssh-key-agent . rendered
7
- }
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ variable "groups" {
8
8
description = " A list of allowed google groups"
9
9
}
10
10
11
- variable "ssh_key_agent_version " {
11
+ variable "docker_image_version " {
12
12
type = string
13
+ default = " 1.0.6"
13
14
description = " The ssh-key-agent version"
14
15
}
15
16
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ terraform {
3
3
ignition = {
4
4
source = " terraform-providers/ignition"
5
5
}
6
- template = {
7
- source = " hashicorp/template"
8
- }
9
6
}
10
7
required_version = " >= 0.13"
11
8
}
You can’t perform that action at this time.
0 commit comments