Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proper IAMv2p1 machines to deployment farm #406

Merged
merged 3 commits into from
May 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ module "single_local_iamv2_fresh_install_deploy" {
# Automate Install
channel = "${var.channel}"
deployment_type = "local"
iam_version = "v2.1"
iam_version = "v2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# A simple local install of A2 with IAMv2p1 using the chef-automate CLI. It is rebuilt everytime we run `terraform apply`.
#

module "single_local_iamv2p1_fresh_install" {
source = "[email protected]:chef/es-terraform.git//modules/cd_instance_v2"

# DNS components ( a2-iamv2p1-local-fresh-install-{{channel}}.cd.chef.co )
subdomain = "a2-iamv2p1-local-fresh-install"
subdomain_suffix = "-${var.dns_suffix}"

# Metadata
meta_title = "Single Local (Fresh Install) with IAMv2p1"
meta_description = "A2 stack with IAMv2p1 (using SAML) deployed locally as Habitat packages on a single host using the chef-automate CLI."
meta_type = "habitat"

# AWS Instance Configuration
vpc = "${var.environment}"
platform = "ubuntu-16.04"
key_name = "cd-infrastructure"
instance_type = "m5.large"
root_volume_gb = "50"
always_rebuild = "true"

# Required AWS Tags
tag_dept = "CoreEng"
tag_contact = "${var.aws_tag_contact}"
tag_application = "a2"

additional_tags = {
X-Package-Type = "habitat"
X-Install-Utility = "chef-automate-cli"
X-Install-Strategy = "fresh-install"
X-Topology = "single"
X-Deployment-Type = "local"
X-Channel = "${var.channel}"
}
}

module "single_local_iamv2p1_fresh_install_deploy" {
source = "../modules/chef_automate_install"

instance_id = "${module.single_local_iamv2p1_fresh_install.instance_id}"
instance_fqdn = "${module.single_local_iamv2p1_fresh_install.fqdn}"
ssh_username = "${module.single_local_iamv2p1_fresh_install.ssh_username}"

journald_system_max_use = "${var.channel == "acceptance" ? "20G" : "6G"}"

# Chef Baseline
enable_monitoring = "false"
chef_environment = "${var.chef_environment}"

# Automate Install
channel = "${var.channel}"
deployment_type = "local"
iam_version = "v2.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# A simple local install of A2 with IAMv2 using the chef-automate CLI. It currently uses a pseudo-inplace upgrade.
#

module "single_local_iamv2p1_inplace_upgrade" {
source = "[email protected]:chef/es-terraform.git//modules/cd_instance_v2"

# DNS components ( a2-iamv2p1-local-inplace-upgrade-{{channel}}.cd.chef.co )
subdomain = "a2-iamv2p1-local-inplace-upgrade"
subdomain_suffix = "-${var.dns_suffix}"

# Metadata
meta_title = "Single Local (Inplace Upgrade) with IAMv2p1"
meta_description = "A2 stack with IAMv2p1 (using SAML) deployed locally as Habitat packages on a single host using the chef-automate CLI."
meta_type = "habitat"

# AWS Instance Configuration
vpc = "${var.environment}"
platform = "ubuntu-16.04"
key_name = "cd-infrastructure"
instance_type = "m5.large"
root_volume_gb = "200"

# Required AWS Tags
tag_dept = "CoreEng"
tag_contact = "${var.aws_tag_contact}"
tag_application = "a2"

additional_tags = {
X-Package-Type = "habitat"
X-Install-Utility = "chef-automate-cli"
X-Install-Strategy = "inplace-upgrade"
X-Topology = "single"
X-Deployment-Type = "local"
X-Channel = "${var.channel}"
}
}

module "single_local_iamv2p1_inplace_upgrade_deploy" {
source = "../modules/chef_automate_install"

instance_id = "${module.single_local_iamv2p1_inplace_upgrade.instance_id}"
instance_fqdn = "${module.single_local_iamv2p1_inplace_upgrade.fqdn}"
ssh_username = "${module.single_local_iamv2p1_inplace_upgrade.ssh_username}"

journald_system_max_use = "${var.channel == "acceptance" ? "20G" : "6G"}"

# Chef Baseline
enable_monitoring = "true"
chef_environment = "${var.chef_environment}"

# Automate Install
channel = "${var.channel}"
deployment_type = "local"
upgrade = "true"
iam_version = "v2.1"
}