demo/digitalocean: packer parent dir must exist, fix upstart

This commit is contained in:
Ryan Uber 2015-09-23 17:55:31 -07:00
parent 75c81d90d1
commit 38d9f2f9ae
3 changed files with 3 additions and 7 deletions

View file

@ -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"
]
},
{

View file

@ -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

View file

@ -1,5 +0,0 @@
datacenter = "${datacenter}"
server {
enabled = true
bootstrap_expect = 3
}