github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/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 tags = ["foo", "bar"] 64 port = "http" 65 66 check { 67 name = "check-name" 68 type = "tcp" 69 nterval = "10s" 70 timeout = "2s" 71 } 72 } 73 74 resources { 75 cpu = 500 76 memory = 128 77 78 network { 79 mbits = "100" 80 81 port "one" { 82 static = 1 83 } 84 85 port "two" { 86 static = 2 87 } 88 89 port "three" { 90 static = 3 91 } 92 93 port "http" { 94 } 95 96 port "https" { 97 } 98 99 port "admin" { 100 } 101 } 102 } 103 104 kill_timeout = "22s" 105 } 106 107 task "storagelocker" { 108 driver = "docker" 109 110 config { 111 image = "hashicorp/storagelocker" 112 } 113 114 resources { 115 cpu = 500 116 memory = 128 117 iops = 30 118 } 119 120 constraint { 121 attribute = "kernel.arch" 122 value = "amd64" 123 } 124 } 125 126 constraint { 127 attribute = "kernel.os" 128 value = "linux" 129 } 130 131 meta { 132 elb_mode = "tcp" 133 elb_interval = 10 134 elb_checks = 3 135 } 136 } 137 }