mirror of
https://github.com/kemko/nomad.git
synced 2026-01-14 22:35:42 +03:00
demo/digitalocean: packer parent dir must exist, fix upstart
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
"# Temporarily disabled until public release. Uncomment",
|
||||
"# and remove the above file provisioner.",
|
||||
"#curl -o /tmp/nomad.zip -L {{ user `bin_url` }}",
|
||||
"sudo unzip -d /usr/local/bin /tmp/nomad.zip"
|
||||
"sudo unzip -d /usr/local/bin /tmp/nomad.zip",
|
||||
"mkdir -p /usr/local/etc/nomad"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -8,5 +8,5 @@ respawn
|
||||
script
|
||||
CONFIG_DIR=/usr/local/etc/nomad
|
||||
mkdir -p $CONFIG_DIR
|
||||
exec /usr/local/bin/nomad -config $CONFIG_DIR >> /var/log/nomad.log 2>&1
|
||||
exec /usr/local/bin/nomad agent -config $CONFIG_DIR >> /var/log/nomad.log 2>&1
|
||||
end script
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
datacenter = "${datacenter}"
|
||||
server {
|
||||
enabled = true
|
||||
bootstrap_expect = 3
|
||||
}
|
||||
Reference in New Issue
Block a user