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