Skip to content

Commit

Permalink
Merge pull request #193 from sassoftware/staging
Browse files Browse the repository at this point in the history
5.4.0 - August 18, 2023
  • Loading branch information
jarpat authored Aug 18, 2023
2 parents 23e3c34 + 47068cb commit e639372
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# SPDX-License-Identifier: Apache-2.0

ARG TERRAFORM_VERSION=1.4.5
ARG GCP_CLI_VERSION=428.0.0
ARG GCP_CLI_VERSION=440.0.0

FROM hashicorp/terraform:$TERRAFORM_VERSION as terraform
FROM google/cloud-sdk:$GCP_CLI_VERSION-alpine
ARG KUBECTL_VERSION=1.25.8
ARG KUBECTL_VERSION=1.26.7
ARG ENABLE_GKE_GCLOUD_AUTH_PLUGIN=True
ARG INSTALL_COMPONENTS=""

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Operational knowledge of
- Terraform or Docker
- #### Terraform
- [Terraform](https://www.terraform.io/downloads.html) - v1.4.5
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) - v1.25.8
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) - v1.26.7
- [jq](https://stedolan.github.io/jq/) - v1.6
- [gcloud CLI](https://cloud.google.com/sdk/gcloud) - (optional - useful as an alternative to the Google Cloud Platform Portal) - v428.0.0
- [gcloud CLI](https://cloud.google.com/sdk/gcloud) - (optional - useful as an alternative to the Google Cloud Platform Portal) - v440.0.0
- [gke-gcloud-auth-plugin](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#install_plugin) - (optional - only for provider based Kubernetes configuration files) - >= v1.26
- #### Docker
- [Docker](https://docs.docker.com/get-docker/)
Expand Down
4 changes: 2 additions & 2 deletions config/sample-input-tf-enterprise.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# variable.
# prefix = "<prefix-value>"
# location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
# project = "<gcp-project>"
# project = "<gcp-project-id>"
# ssh_public_key = "<ssh-public-key>"
# **************** REQUIRED VARIABLES ****************

Expand All @@ -38,7 +38,7 @@ create_static_kubeconfig = true
# tags = {} # e.g., { "key1" = "value1", "key2" = "value2" }

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 1
default_nodepool_vm_type = "n2-standard-2"

Expand Down
2 changes: 1 addition & 1 deletion docs/CONFIG-VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Terraform input variables can be set in the following ways:
| :--- | :--- | :--- | :--- | :--- |
| prefix | A prefix used in the name of all the GCP resources created by this script. | string | | The prefix string must start with a lowercase letter and contain only lowercase alphanumeric characters and dashes (-), but cannot end with a dash. |
| location | The GCP Region (for example "us-east1") or GCP Zone (for example "us-east1-b") to provision all resources in this script. | string | | See [this topic](user/Locations.md) on how to chose a region or a zone. |
| project | The GCP Project to use | string | | |
| project | The ID of the GCP Project to use | string | | |
| service_account_keyfile | Filename of the Service Account JSON file | string | Not required when running on a Google Cloud VM that is associated with the Service Account |

## GCP Authentication
Expand Down
4 changes: 2 additions & 2 deletions examples/sample-input-byo.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand Down Expand Up @@ -37,7 +37,7 @@ postgres_servers = {
}

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "e2-standard-8"

Expand Down
4 changes: 2 additions & 2 deletions examples/sample-input-connect.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand All @@ -27,7 +27,7 @@ postgres_servers = {
}

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "e2-standard-8"

Expand Down
2 changes: 1 addition & 1 deletion examples/sample-input-defaults.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand Down
4 changes: 2 additions & 2 deletions examples/sample-input-ha.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand All @@ -27,7 +27,7 @@ postgres_servers = {
}

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "e2-standard-8"

Expand Down
4 changes: 2 additions & 2 deletions examples/sample-input-minimal.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand All @@ -27,7 +27,7 @@ tags = {} # e.g., { "key1" = "value1", "key2" = "value2" }
# }

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 1
default_nodepool_vm_type = "n2-standard-2"

Expand Down
4 changes: 2 additions & 2 deletions examples/sample-input.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These required variables' values MUST be provided by the User
prefix = "<prefix-value>"
location = "<gcp-zone-or-region>" # e.g., "us-east1-b"
project = "<gcp-project>"
project = "<gcp-project-id>"
service_account_keyfile = "<service-account-json-file>"
#
# **************** REQUIRED VARIABLES ****************
Expand All @@ -27,7 +27,7 @@ postgres_servers = {
}

# GKE config
kubernetes_version = "1.25"
kubernetes_version = "1.26"
default_nodepool_min_nodes = 2
default_nodepool_vm_type = "e2-standard-8"

Expand Down
18 changes: 12 additions & 6 deletions files/cloud-init/jump/cloud-config
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ runcmd:
# mount the nfs
#
- while [ `df -h | grep "${rwx_filestore_endpoint}:${rwx_filestore_path}" | wc -l` -eq 0 ]; do sleep 5 && mount -a ; done
#
# Change permissions and owner
#
- mkdir -p ${jump_rwx_filestore_path}/pvs
- $(chmod -fR 777 ${jump_rwx_filestore_path} ; echo)
- $(chown -R nobody:nogroup ${jump_rwx_filestore_path} ; echo)
# Create pvs folder and adjust perms and owner only if the folder doesn't exist
# On subsequent jump server creation if the mounted NFS already contains a "pvs" directory
# don't overwrite ownerships and permissions set by SAS Viya
- if ! [ -d "${jump_rwx_filestore_path}/pvs" ]
- then
#
# Change permissions and owner
#
- mkdir -p ${jump_rwx_filestore_path}/pvs
- $(chmod -fR 777 ${jump_rwx_filestore_path} ; echo)
- $(chown -R nobody:nogroup ${jump_rwx_filestore_path} ; echo)
- fi
- fi
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ variable "service_account_keyfile" {
}

variable "project" {
description = "The GCP Project to use"
description = "The ID of the GCP Project to use"
type = string
}

Expand Down

0 comments on commit e639372

Please sign in to comment.