github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/jobspec/test-fixtures/basic_wrong_key.hcl (about) 1 job "binstore-storagelocker" { 2 region = "global" 3 type = "service" 4 priority = 50 5 all_at_once = true 6 datacenters = ["us2", "eu1"] 7 vault_token = "foo" 8 9 meta { 10 foo = "bar" 11 } 12 13 constraint { 14 attribute = "kernel.os" 15 value = "windows" 16 } 17 18 update { 19 stagger = "60s" 20 max_parallel = 2 21 } 22 23 task "outside" { 24 driver = "java" 25 26 config { 27 jar_path = "s3://my-cool-store/foo.jar" 28 } 29 30 meta { 31 my-cool-key = "foobar" 32 } 33 } 34 35 group "binsl" { 36 count = 5 37 38 restart { 39 attempts = 5 40 interval = "10m" 41 delay = "15s" 42 mode = "delay" 43 } 44 45 task "binstore" { 46 driver = "docker" 47 48 config { 49 image = "hashicorp/binstore" 50 } 51 52 logs { 53 max_files = 10 54 max_file_size = 100 55 } 56 57 env { 58 HELLO = "world" 59 LOREM = "ipsum" 60 } 61 62 service { 63 name = "foo" 64 tags = ["foo", "bar"] 65 port = "http" 66 67 check { 68 name = "check-name" 69 type = "tcp" 70 nterval = "10s" 71 timeout = "2s" 72 } 73 } 74 75 resources { 76 cpu = 500 77 memory = 128 78 79 network { 80 mbits = "100" 81 82 port "one" { 83 static = 1 84 } 85 86 port "two" { 87 static = 2 88 } 89 90 port "three" { 91 static = 3 92 } 93 94 port "http" { 95 } 96 97 port "https" { 98 } 99 100 port "admin" { 101 } 102 } 103 } 104 105 kill_timeout = "22s" 106 } 107 108 task "storagelocker" { 109 driver = "docker" 110 111 config { 112 image = "hashicorp/storagelocker" 113 } 114 115 resources { 116 cpu = 500 117 memory = 128 118 iops = 30 119 } 120 121 constraint { 122 attribute = "kernel.arch" 123 value = "amd64" 124 } 125 } 126 127 constraint { 128 attribute = "kernel.os" 129 value = "linux" 130 } 131 132 meta { 133 elb_mode = "tcp" 134 elb_interval = 10 135 elb_checks = 3 136 } 137 } 138 }