demo/digitalocean: updates
This commit is contained in:
parent
673eb0c8f5
commit
c8f9f2912a
|
@ -1,14 +1,5 @@
|
|||
data_dir = "/tmp/nomad"
|
||||
data_dir = "/opt/nomad"
|
||||
log_level = "DEBUG"
|
||||
enable_debug = true
|
||||
bind_addr = "0.0.0.0"
|
||||
disable_update_check = true
|
||||
server {
|
||||
enabled = true
|
||||
bootstrap_expect = 1
|
||||
}
|
||||
client {
|
||||
enabled = true
|
||||
servers = ["127.0.0.1:4647"]
|
||||
node_class = "linux-64bit"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"variables": {
|
||||
"role": "{{ env `NOMAD_ROLE` }}",
|
||||
"bin_url": "{{ env `NOMAD_URL` }}"
|
||||
},
|
||||
"builders": [
|
||||
|
@ -8,7 +7,8 @@
|
|||
"type": "digitalocean",
|
||||
"image": "ubuntu-12-04-x64",
|
||||
"region": "nyc3",
|
||||
"size": "512mb"
|
||||
"size": "512mb",
|
||||
"snapshot_name": "nomad-{{timestamp}}"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
|
@ -36,7 +36,7 @@
|
|||
{
|
||||
"type": "file",
|
||||
"source": "default.hcl",
|
||||
"destination": "/usr/local/etc/nomad.hcl"
|
||||
"destination": "/usr/local/etc/nomad/nomad.hcl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -6,5 +6,7 @@ stop on runlevel [!2345]
|
|||
respawn
|
||||
|
||||
script
|
||||
exec /usr/local/bin/nomad -config /usr/local/etc/nomad.hcl >> /var/log/nomad.log 2>&1
|
||||
CONFIG_DIR=/usr/local/etc/nomad
|
||||
mkdir -p $CONFIG_DIR
|
||||
exec /usr/local/bin/nomad -config $CONFIG_DIR >> /var/log/nomad.log 2>&1
|
||||
end script
|
||||
|
|
Loading…
Reference in New Issue