forked from echohack/deltron
-
Notifications
You must be signed in to change notification settings - Fork 4
/
runners.tf
50 lines (49 loc) · 1.62 KB
/
runners.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
#
# resource "aws_instance" "build_nodes" {
# connection {
# user = "${var.aws_ami_user}"
# private_key = "${file(".keys/${var.aws_key_pair_name}.pem")}"
# }
#
# ami = "${data.aws_ami.centos.id}"
# instance_type = "${var.aws_build_node_instance_type}"
# key_name = "${var.aws_key_pair_name}"
# subnet_id = "${var.automate_subnet}"
# vpc_security_group_ids = ["${aws_security_group.build_nodes.id}"]
# ebs_optimized = false
# count = 3
#
# root_block_device {
# delete_on_termination = true
# volume_size = 100
# volume_type = "gp2"
# }
#
# tags {
# Name = "${format("${var.automate_tag}_build_node_%02d_${random_id.automate_instance_id.hex}", count.index + 1)}"
# X-Dept = "${var.tag_dept}"
# X-Contact = "${var.tag_contact}"
# }
#
# provisioner "chef" {
# attributes_json = <<-EOF
# {
# "tags": "delivery-build-node",
# "chef_automate": {
# "fqdn": "${aws_instance.chef_automate.public_dns}"
# },
# "chef_server": {
# "fqdn": "${aws_instance.chef_server.public_dns}"
# }
# }
# EOF
# environment = "_default"
# node_name = "build-node-${count.index + 1}"
# fetch_chef_certificates = true
# run_list = ["chef-services::install_build_nodes"]
# server_url = "https://${aws_instance.chef_server.public_dns}/organizations/delivery"
# user_name = "delivery-validator"
# user_key = "${data.template_file.delivery_validator.rendered}"
# client_options = ["trusted_certs_dir '/etc/chef/trusted_certs'"]
# }
# }