github.com/hernad/nomad@v1.6.112/ui/app/utils/default-job-templates.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import helloWorld from './default_jobs/hello-world'; 7 import parameterized from './default_jobs/parameterized'; 8 import serviceDiscovery from './default_jobs/service-discovery'; 9 import variables from './default_jobs/variables'; 10 11 export default [ 12 { 13 id: 'nomad/job-templates/default/hello-world', 14 keyValues: [ 15 { 16 key: 'template', 17 value: helloWorld, 18 }, 19 { 20 key: 'description', 21 value: 'A simple job that runs a single task on a single node', 22 }, 23 ], 24 }, 25 { 26 id: 'nomad/job-templates/default/parameterized-job', 27 keyValues: [ 28 { 29 key: 'template', 30 value: parameterized, 31 }, 32 { 33 key: 'description', 34 value: 35 'A job that can be dispatched multiple times with different payloads and meta values', 36 }, 37 ], 38 }, 39 { 40 id: 'nomad/job-templates/default/service-discovery', 41 keyValues: [ 42 { 43 key: 'template', 44 value: serviceDiscovery, 45 }, 46 { 47 key: 'description', 48 value: 49 'Registers a service in one group, and discovers it in another. Provides a recurring check to ensure the service is healthy', 50 }, 51 ], 52 }, 53 { 54 id: 'nomad/job-templates/default/variables', 55 keyValues: [ 56 { 57 key: 'template', 58 value: variables, 59 }, 60 { 61 key: 'description', 62 value: 63 'Use Nomad Variables to configure the output of a simple HTML page', 64 }, 65 ], 66 }, 67 ];