mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
moved scripts/* under scripts/ubuntu to add support for other platforms
This commit is contained in:
parent
5226e29a69
commit
7c76a5d816
@ -16,12 +16,12 @@ resource "aws_instance" "server" {
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = "${path.module}/scripts/upstart.conf"
|
||||
source = "${path.module}/scripts/${var.platform}/upstart.conf"
|
||||
destination = "/tmp/upstart.conf"
|
||||
}
|
||||
|
||||
provisioner "file" {
|
||||
source = "${path.module}/scripts/upstart-join.conf"
|
||||
source = "${path.module}/scripts/${var.platform}/upstart-join.conf"
|
||||
destination = "/tmp/upstart-join.conf"
|
||||
}
|
||||
|
||||
@ -34,9 +34,9 @@ resource "aws_instance" "server" {
|
||||
|
||||
provisioner "remote-exec" {
|
||||
scripts = [
|
||||
"${path.module}/scripts/install.sh",
|
||||
"${path.module}/scripts/server.sh",
|
||||
"${path.module}/scripts/service.sh",
|
||||
"${path.module}/scripts/${var.platform}/install.sh",
|
||||
"${path.module}/scripts/${var.platform}/server.sh",
|
||||
"${path.module}/scripts/${var.platform}/service.sh",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,13 @@ variable "instance_type" {
|
||||
default = "m1.small"
|
||||
description = "The instance type to launch."
|
||||
}
|
||||
|
||||
variable "tagName" {
|
||||
default = "consul"
|
||||
description = "Name tag for the servers"
|
||||
}
|
||||
|
||||
variable "platform" {
|
||||
default = "ubuntu"
|
||||
description = "The OS Platform"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user