Skip to content

Commit

Permalink
Stability Fix and Tagging AWS Resources (#14)
Browse files Browse the repository at this point in the history
* Adding tags to AWS resources

* Unpin git plugin to allow latest to install

* Removed unnecessary plugins in Jenkins

Co-authored-by: Aaron Miller <aaron.c.miller@saic.com>
  • Loading branch information
ac-miller and Aaron Miller authored Jan 12, 2021
1 parent 4aa9b77 commit 38e1c62
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
10 changes: 8 additions & 2 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ module "subnets" {
}

module "rke_rancher_master_cluster" {
source = "git::https://github.com/saic-oss/terraform-aws-rke-rancher-master-cluster.git?ref=tags/0.4.0"
source = "git::https://github.com/saic-oss/terraform-aws-rke-rancher-master-cluster.git?ref=tags/0.4.1"
additional_tag_map = {}
description = var.description
instance_type = var.controlplane_instance_type
kubernetes_version = var.master_cluster_kubernetes_version
name = var.name
namespace = var.namespace
owner = var.owner
repo = var.repo
node_group_1_subnet_id = module.subnets.public_subnet_ids[0]
node_group_2_subnet_id = module.subnets.public_subnet_ids[1]
node_group_3_subnet_id = module.subnets.public_subnet_ids[2]
Expand All @@ -93,11 +96,14 @@ module "rke_rancher_master_cluster" {
}

module "rancher-k8s-cluster" {
source = "git::https://github.com/saic-oss/terraform-aws-rancher-k8s-cluster.git?ref=tags/0.4.6"
source = "git::https://github.com/saic-oss/terraform-aws-rancher-k8s-cluster.git?ref=tags/0.4.7"
additional_tag_map = {}
description = var.description
kubernetes_version = var.worker_cluster_kubernetes_version
name = "${var.name}-workload"
namespace = var.namespace
owner = var.owner
repo = var.repo
stage = var.stage
region = var.region
letsencrypt_email = var.letsencrypt_email
Expand Down
2 changes: 2 additions & 0 deletions examples/complete/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ region = "us-east-1"
namespace = "saic-oss"
stage = "example"
name = "terraform-k8s-devsecops-sandbox"
repo = "https://github.com/saic-oss/terraform-k8s-devsecops-sandbox"
description = "Example deployment of the Rancher worker cluster"
controlplane_instance_type = "t3a.medium"
worker_instance_type = "t3a.large"
master_cluster_kubernetes_version = "v1.18.9-rancher1-1"
Expand Down
15 changes: 15 additions & 0 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ variable "name" {
description = "Solution name"
}

variable "repo" {
type = string
description = "Repo URL that is responsible for this resource"
}

variable "owner" {
type = string
description = "Email address of owner"
}

variable "description" {
type = string
description = "Short description of what/why this product exists"
}

variable "additional_tag_map" {
type = map(string)
description = "Map of additional tags to apply to every taggable resource. If you don't want any use an empty map - '{}'"
Expand Down
3 changes: 0 additions & 3 deletions helmfiles/subhelmfiles/jenkins.helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,11 @@ releases:
jenkinsAdminEmail: {{$jenkinsAdminEmail | quote}}
installPlugins:
- kubernetes:1.27.7
- ace-editor:1.1
- workflow-job:2.40
- workflow-aggregator:2.6
- workflow-cps-global-lib:2.17
- pipeline-stage-view:2.19
- credentials-binding:1.24
- font-awesome-api:5.15.1-1
- git:4.5.1
- gitlab-oauth:1.10
- gitlab-plugin:1.5.13
- matrix-auth:2.6.4
Expand Down

0 comments on commit 38e1c62

Please sign in to comment.