mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
Move scripts to a shared directory
This commit is contained in:
parent
5023c4add1
commit
5170dd7308
@ -16,7 +16,7 @@ resource "aws_instance" "server" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
source = "${path.module}/scripts/${lookup(var.service_conf, var.platform)}"
|
source = "${path.module}/../shared/scripts/${lookup(var.service_conf, var.platform)}"
|
||||||
destination = "/tmp/${lookup(var.service_conf_dest, var.platform)}"
|
destination = "/tmp/${lookup(var.service_conf_dest, var.platform)}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,9 +30,9 @@ resource "aws_instance" "server" {
|
|||||||
|
|
||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
scripts = [
|
scripts = [
|
||||||
"${path.module}/scripts/install.sh",
|
"${path.module}/../shared/scripts/install.sh",
|
||||||
"${path.module}/scripts/service.sh",
|
"${path.module}/../shared/scripts/service.sh",
|
||||||
"${path.module}/scripts/ip_tables.sh",
|
"${path.module}/../shared/scripts/ip_tables.sh",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ script
|
|||||||
# Make sure to use all our CPUs, because Consul can block a scheduler thread
|
# Make sure to use all our CPUs, because Consul can block a scheduler thread
|
||||||
export GOMAXPROCS=`nproc`
|
export GOMAXPROCS=`nproc`
|
||||||
|
|
||||||
# Get the public IP
|
# Get the local IP
|
||||||
BIND=`ifconfig eth0 | grep "inet addr" | awk '{ print substr($2,6) }'`
|
BIND=`ifconfig eth0 | grep "inet addr" | awk '{ print substr($2,6) }'`
|
||||||
|
|
||||||
exec /usr/local/bin/consul agent \
|
exec /usr/local/bin/consul agent \
|
Loading…
x
Reference in New Issue
Block a user