This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Downloads | |
unzip nomad_0.8.6_linux_amd64.zip | |
sudo mkdir -p /opt/nomad/0.8.6 | |
sudo mv nomad /opt/nomad/0.8.6 | |
cd /usr/bin | |
sudo ln -s /opt/nomad/0.8.6/nomad nomad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Downloads | |
unzip packer_1.3.3_linux_amd64.zip | |
sudo mkdir -p /opt/packer/1.3.3 | |
sudo mv packer /opt/packer/1.3.3 | |
cd /usr/bin | |
sudo ln -s /opt/packer/1.3.3/packer packer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Downloads | |
unzip terraform_0.11.11_linux_amd64.zip | |
sudo mkdir -p /opt/terraform/0.11.11 | |
sudo mv terraform /opt/terraform/0.11.11 | |
cd /usr/bin | |
sudo ln -s /opt/terraform/0.11.11/terraform terraform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "fail-service" { | |
datacenters = ["public-services"] | |
type = "service" | |
group "fail-service" { | |
count = 1 | |
restart { | |
interval = "10m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "fail-service" { | |
datacenters = ["public-services"] | |
type = "service" | |
# Documentation of the reshedule_stanza | |
# https://www.nomadproject.io/docs/job-specification/reschedule.html | |
reschedule { | |
delay = "2m" # Duration to wait before attempting to reschedule a failed task. | |
delay_function = "constant" # Function that is used to calculate subsequent reschedule delays. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "fail-service" { | |
datacenters = ["public-services"] | |
type = "service" | |
reschedule { | |
delay = "30s" | |
delay_function = "constant" | |
unlimited = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "fail-service" { | |
datacenters = ["public-services"] | |
type = "service" | |
reschedule { | |
delay = "2m" | |
delay_function = "constant" | |
unlimited = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"NomadDockerJobSrv": { | |
"prefix": "nomad-docker-service", | |
"scope": "hcl", | |
"body": [ | |
"# https://www.nomadproject.io/docs/job-specification/job.html", | |
"job \"${1:service-name}\" {", | |
" datacenters = [${2:\"public-services\"}]", | |
"", | |
" type = \"service\"", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"NomadDockerJobSrv": { | |
"prefix": "nomad-docker-service", | |
"body": [ | |
"# https://www.nomadproject.io/docs/job-specification/job.html", | |
"job \"${1:service-name}\" {", | |
" datacenters = [${2:\"public-services\"}]", | |
"", | |
" type = \"service\"", | |
"", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.hcl': | |
'NomadDockerJobSrv': | |
'prefix': 'nomad-docker-service' | |
'body': """ | |
# https://www.nomadproject.io/docs/job-specification/job.html | |
job \"${1:service-name}\" { | |
datacenters = [${2:\"public-services\"}] | |
type = \"service\" |
OlderNewer