Skip to content

Commit

Permalink
Add more agents in default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Mar 8, 2019
1 parent 1ec311c commit 2391107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 7 additions & 5 deletions deploy/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ resource "aws_iam_instance_profile" "qed-profile" {

module "qed" {
source = "./modules/qed"
count = 3

name = "qed"
count = 3
instance_type = "m5.2xlarge"
iam_instance_profile = "${aws_iam_instance_profile.qed-profile.name}"
volume_size = "20"
Expand All @@ -67,7 +67,9 @@ module "inmemory-storage" {

module "agent-publisher" {
source = "./modules/agent"
count = 2

role = "publisher"
name = "agent-publisher"
instance_type = "m5.large"
iam_instance_profile = "${aws_iam_instance_profile.qed-profile.name}"
Expand All @@ -76,27 +78,28 @@ module "agent-publisher" {
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"
role = "publisher"
}

module "agent-monitor" {
source = "./modules/agent"
count = 2

role = "monitor"
name = "agent-monitor"
count = 1
instance_type = "m5.large"
iam_instance_profile = "${aws_iam_instance_profile.qed-profile.name}"
volume_size = "20"
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"
role = "monitor"
}

module "agent-auditor" {
source = "./modules/agent"
count = 2

role = "auditor"
name = "agent-auditor"
instance_type = "m5.large"
iam_instance_profile = "${aws_iam_instance_profile.qed-profile.name}"
Expand All @@ -105,7 +108,6 @@ module "agent-auditor" {
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
key_name = "${aws_key_pair.qed.key_name}"
key_path = "${var.keypath}"
role = "auditor"
}

module "prometheus" {
Expand Down
4 changes: 1 addition & 3 deletions deploy/aws/modules/agent/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ variable "key_path" {}

variable "name" {}

variable "role" {
default = "agent"
}
variable "role" {}

variable "path" {
default = "/var/tmp/qed"
Expand Down

0 comments on commit 2391107

Please sign in to comment.