-
Notifications
You must be signed in to change notification settings - Fork 1
/
modules-jedis.tf
55 lines (48 loc) · 1.66 KB
/
modules-jedis.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#### Create Test nodes
#### Ansible playbooks configure Test node with Redis and Memtier
module "nodes-config-jedis-1" {
source = "./modules/nodes-config-jedis"
providers = {
aws = aws.a
}
ssh_key_name = var.ssh_key_name1
ssh_key_path = var.ssh_key_path1
test-node-count = var.test-node-count
### vars pulled from previous modules
## from vpc module outputs
vpc_name = module.vpc1.vpc-name
vpc_id = module.vpc1.vpc-id
aws_eips = module.nodes-tester1.node-eips
crdb_endpoint_cluster1 = module.create-crdbs.crdb_endpoint_cluster1
crdb_endpoint_cluster2 = module.create-crdbs.crdb_endpoint_cluster2
crdb_port = var.crdb_port
crdb_db_password = var.crdb_db_password
depends_on = [
module.nodes-tester1,
module.nodes-config-redisoss-1,
module.create-crdbs
]
}
output "mvn_command1" {
value = module.nodes-config-jedis-1.mvn_command
}
#### Create Test nodes
#### Ansible playbooks configure Test node with Redis and Memtier
module "run-jedis1" {
source = "./modules/run-jedis"
providers = {
aws = aws.a
}
test-node-count = var.test-node-count
vpc_name = module.vpc1.vpc-name
ssh_key_path = var.ssh_key_path1
mvn_command = module.nodes-config-jedis-1.mvn_command
depends_on = [
module.nodes-tester1,
module.nodes-config-redisoss-1,
module.nodes-config-jedis-1
]
}
output "jedis-failover-ansible-playbook-cmd1" {
value = module.run-jedis1.jedis-failover-ansible-playbook-cmd
}