open-nomad/ui/app/utils/default-job-templates.js
2023-04-10 15:36:59 +00:00

68 lines
1.5 KiB
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import helloWorld from './default_jobs/hello-world';
import parameterized from './default_jobs/parameterized';
import serviceDiscovery from './default_jobs/service-discovery';
import variables from './default_jobs/variables';
export default [
{
id: 'nomad/job-templates/default/hello-world',
keyValues: [
{
key: 'template',
value: helloWorld,
},
{
key: 'description',
value: 'A simple job that runs a single task on a single node',
},
],
},
{
id: 'nomad/job-templates/default/parameterized-job',
keyValues: [
{
key: 'template',
value: parameterized,
},
{
key: 'description',
value:
'A job that can be dispatched multiple times with different payloads and meta values',
},
],
},
{
id: 'nomad/job-templates/default/service-discovery',
keyValues: [
{
key: 'template',
value: serviceDiscovery,
},
{
key: 'description',
value:
'Registers a service in one group, and discovers it in another. Provides a recurring check to ensure the service is healthy',
},
],
},
{
id: 'nomad/job-templates/default/variables',
keyValues: [
{
key: 'template',
value: variables,
},
{
key: 'description',
value:
'Use Nomad Variables to configure the output of a simple HTML page',
},
],
},
];