Skip to content

Commit dab89f7

Browse files
authored
Merge pull request hashicorp#167 from kawsark/master
Minor updates for OpenShift cluster provisioning
2 parents ff35870 + 64b1fe7 commit dab89f7

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
policy "restrict-aws-region" {
2+
enforcement_level = "soft-mandatory"
3+
}

infrastructure-as-code/k8s-cluster-openshift-aws/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,6 @@ resource "vault_kubernetes_auth_backend_role" "role" {
203203
role_name = "demo"
204204
bound_service_account_names = ["cats-and-dogs"]
205205
bound_service_account_namespaces = ["default", "cats-and-dogs"]
206-
policies = ["${var.vault_user}"]
207-
ttl = 7200
206+
token_policies = ["${var.vault_user}"]
207+
token_ttl = 7200
208208
}

infrastructure-as-code/k8s-cluster-openshift-aws/modules/openshift/01-amis.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ data "aws_ami" "amazonlinux" {
4949

5050
filter {
5151
name = "name"
52-
values = ["amzn-ami-hvm-*"]
52+
values = ["amzn-ami-hvm-2018.03.0.20190611-x86_64-gp2"]
5353
}
5454
}

infrastructure-as-code/k8s-cluster-openshift-aws/scripts/postinstall-master.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Note: This script runs after the ansible install, use it to make configuration
44
# changes which would otherwise be overwritten by ansible.
55

6-
sleep 120
6+
sleep 180
77

88
# Create an htpasswd file, we'll use htpasswd auth for OpenShift.
99
sudo mkdir -p /etc/origin/master

infrastructure-as-code/k8s-cluster-openshift-aws/scripts/postinstall-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Note: This script runs after the ansible install, use it to make configuration
44
# changes which would otherwise be overwritten by ansible.
55

6-
sleep 120
6+
sleep 180
77

88
# Update the docker config to allow OpenShift's local insecure registry. Also
99
# use json-file for logging, so our Splunk forwarder can eat the container logs.

infrastructure-as-code/k8s-cluster-openshift-aws/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ variable "region" {
44
default = "us-east-1"
55
}
66

7+
variable "bastion_ami_filter" {
8+
description = "The filter for the bastion AMI data source"
9+
default = "amzn-ami-hvm-*"
10+
}
11+
712
variable "key_name" {
813
description = "The name of the key to user for ssh access"
914
}

0 commit comments

Comments
 (0)