demo/digitalocean: packer parent dir must exist, fix upstart
This commit is contained in:
parent
75c81d90d1
commit
38d9f2f9ae
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue