~damien/infrastructure

ref: b481ba41c3bbdf8d4f9c0393f87b495160adc414 infrastructure/jobs/cat-facts.nomad.erb -rw-r--r-- 740 bytes
b481ba41 — Damien Radtke Suppress cluster env output if non-interactive 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
job "cat-facts" {
	region = "global"

	datacenters = ["ca-central"]
	type = "batch"

	periodic {
	 	cron = "0 10 * * *"
	 	time_zone = "America/Chicago"
	}

	group "cat-facts" {
		task "cat-fact" {
			driver = "exec"
			config {
				command = "rusty-cat-fact"
			}

			artifact {
				source = "s3::http://45.33.126.243:9000/artifacts/rusty-cat-fact/target/debug/rusty-cat-fact"
				options {
					aws_access_key_id = "<%= secret('minio', 'access_key') %>"
					aws_access_key_secret = "<%= secret('minio', 'secret_key') %>"
				}
			}

			env {
				WEBHOOK_URL = "<%= secret('cat_facts', 'webhook_url') %>"
			}

			resources {
				cpu = 20  # MHz, the minimum value
				memory = 30  # MB
			}
		}
	}
}

// vim: set tabstop=4 shiftwidth=4: