diff --git a/viya4-deployment-darksite/baseline-to-ecr/00_vars.sh b/viya4-deployment-darksite/baseline-to-ecr/00_vars.sh index 330e48e0..9493e01e 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/00_vars.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/00_vars.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + ## set variables AWS_ACCT_ID= AWS_REGION= diff --git a/viya4-deployment-darksite/baseline-to-ecr/01_run_all.sh b/viya4-deployment-darksite/baseline-to-ecr/01_run_all.sh index e3213af9..d4458ad2 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/01_run_all.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/01_run_all.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh . auto_scaler.sh diff --git a/viya4-deployment-darksite/baseline-to-ecr/auto_scaler.sh b/viya4-deployment-darksite/baseline-to-ecr/auto_scaler.sh index 719531fd..2c33d497 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/auto_scaler.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/auto_scaler.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # account for v6.3.0+ changes - autoscaler now supports k8s 1.25 diff --git a/viya4-deployment-darksite/baseline-to-ecr/cert_manager.sh b/viya4-deployment-darksite/baseline-to-ecr/cert_manager.sh index 2cf12421..cead0bce 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/cert_manager.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/cert_manager.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh ## get chart version from viya4-deployment repo diff --git a/viya4-deployment-darksite/baseline-to-ecr/ebs_driver.sh b/viya4-deployment-darksite/baseline-to-ecr/ebs_driver.sh index 58223a74..92af7851 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/ebs_driver.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/ebs_driver.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh ## get chart version from viya4-deployment repo diff --git a/viya4-deployment-darksite/baseline-to-ecr/ingress_nginx.sh b/viya4-deployment-darksite/baseline-to-ecr/ingress_nginx.sh index 08d2a5b6..3773861e 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/ingress_nginx.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/ingress_nginx.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # determine chart version to use diff --git a/viya4-deployment-darksite/baseline-to-ecr/metrics_server.sh b/viya4-deployment-darksite/baseline-to-ecr/metrics_server.sh index c1e12ffb..b97f1f5c 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/metrics_server.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/metrics_server.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh echo "**** metrics-server ****" diff --git a/viya4-deployment-darksite/baseline-to-ecr/nfs_subdir_external_provisioner.sh b/viya4-deployment-darksite/baseline-to-ecr/nfs_subdir_external_provisioner.sh index 7c837ca9..c584a645 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/nfs_subdir_external_provisioner.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/nfs_subdir_external_provisioner.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh echo "**** nfs-subdir-external-provisioner ****" diff --git a/viya4-deployment-darksite/baseline-to-ecr/openldap.sh b/viya4-deployment-darksite/baseline-to-ecr/openldap.sh index bf96f5cb..d7341149 100644 --- a/viya4-deployment-darksite/baseline-to-ecr/openldap.sh +++ b/viya4-deployment-darksite/baseline-to-ecr/openldap.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh echo "**** openldap ****" diff --git a/viya4-deployment-darksite/darksite-openldap-mod/darksite-openldap-mod.sh b/viya4-deployment-darksite/darksite-openldap-mod/darksite-openldap-mod.sh index f10c9de2..cd87defe 100644 --- a/viya4-deployment-darksite/darksite-openldap-mod/darksite-openldap-mod.sh +++ b/viya4-deployment-darksite/darksite-openldap-mod/darksite-openldap-mod.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + # helper script to easily mod viya4-deployment when using openldap in a darksite @@ -183,4 +186,4 @@ docker tag viya4-deployment:$TAG $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/ aws ecr get-login-password --no-cli-pager --region $AWS_REGION | $DOCKER_SUDO docker login --username AWS --password-stdin $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com -docker push $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/viya4-deployment:$TAG \ No newline at end of file +docker push $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/viya4-deployment:$TAG diff --git a/viya4-deployment-darksite/deployment-machine-assets/01_iac_deploy.sh b/viya4-deployment-darksite/deployment-machine-assets/01_iac_deploy.sh index 142550ff..900c229e 100755 --- a/viya4-deployment-darksite/deployment-machine-assets/01_iac_deploy.sh +++ b/viya4-deployment-darksite/deployment-machine-assets/01_iac_deploy.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + # what is the tag read -p "What is the tag for your viya4-iac-aws container? " -r TAG # what is the job @@ -48,4 +51,4 @@ if [ $REPLY == "destroy" ]; then viya4-iac-aws:$TAG \ destroy -auto-approve -var-file=/workspace/terraform.tfvars \ -state=/workspace/terraform.tfstate -fi \ No newline at end of file +fi diff --git a/viya4-deployment-darksite/deployment-machine-assets/02_dac_deploy.sh b/viya4-deployment-darksite/deployment-machine-assets/02_dac_deploy.sh index f432163a..eab6ae34 100755 --- a/viya4-deployment-darksite/deployment-machine-assets/02_dac_deploy.sh +++ b/viya4-deployment-darksite/deployment-machine-assets/02_dac_deploy.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + # get viya4-deployment container tag echo -e "\n" read -p "What is your viya4-deployment container tag? " -r DOCKER_TAG diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/00_vars.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/00_vars.sh index 7cde5e20..7e72bca2 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/00_vars.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/00_vars.sh @@ -1,6 +1,9 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + AWS_ACCT_ID= AWS_REGION= -K8S_minor_version=24 # K8s v1.22.X minor would be 22 ... K8s v1.21.X minor version would be 21. This must match your deployment! \ No newline at end of file +K8S_minor_version=24 # K8s v1.22.X minor would be 22 ... K8s v1.21.X minor version would be 21. This must match your deployment! diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/auto_scaler_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/auto_scaler_install.sh index 99767e64..4227ce3b 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/auto_scaler_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/auto_scaler_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # helm registry login @@ -41,4 +44,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/cert_manager_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/cert_manager_install.sh index 1b850f96..79f87639 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/cert_manager_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/cert_manager_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # helm registry login @@ -40,4 +43,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/ebs-csi-driver.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/ebs-csi-driver.sh index 3bff5d90..e863682e 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/ebs-csi-driver.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/ebs-csi-driver.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + ## installs ebs-csi-driver via helm source 00_vars.sh @@ -54,4 +57,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/ingress_nginx_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/ingress_nginx_install.sh index f31fdcda..2f9efe51 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/ingress_nginx_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/ingress_nginx_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + ## installs this by default: # - INGRESS_NGINX_CVE_2021_25742_PATCH # - ingress-nginx private ingress @@ -74,4 +77,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/metrics_server_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/metrics_server_install.sh index 029290f9..5459ac63 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/metrics_server_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/metrics_server_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # helm registry login @@ -20,4 +23,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/nfs_provisioner_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/nfs_provisioner_install.sh index d9c3bcf1..10a0fcd8 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/nfs_provisioner_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/nfs_provisioner_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # helm registry login @@ -41,4 +44,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/install-baseline-helm-from-ecr/pg_nfs_provisioner_install.sh b/viya4-deployment-darksite/install-baseline-helm-from-ecr/pg_nfs_provisioner_install.sh index 0e704125..51a8115c 100644 --- a/viya4-deployment-darksite/install-baseline-helm-from-ecr/pg_nfs_provisioner_install.sh +++ b/viya4-deployment-darksite/install-baseline-helm-from-ecr/pg_nfs_provisioner_install.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + source 00_vars.sh # helm registry login @@ -42,4 +45,4 @@ helm upgrade --cleanup-on-fail \ # cleanup unset TMP_YAML -rm tmp.yaml \ No newline at end of file +rm tmp.yaml diff --git a/viya4-deployment-darksite/mirrormgr-to-ecr/00_vars.sh b/viya4-deployment-darksite/mirrormgr-to-ecr/00_vars.sh index 57ade5eb..0eab8247 100644 --- a/viya4-deployment-darksite/mirrormgr-to-ecr/00_vars.sh +++ b/viya4-deployment-darksite/mirrormgr-to-ecr/00_vars.sh @@ -1,7 +1,10 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + NAMESPACE= # namespace used for your viya install AWS_ACCT_ID= # your aws account ID REGION= # your aws region CERTS=~/viya/software/viya_order_assets/SASViyaV4_XXXX_certs.zip # path to the _certs.zip file -ASSETS=~/viya/software/viya_order_assets/SASViyaV4_XXX_XXXX-XXXX_deploymentAssets.tgz # path to the tgz assets file \ No newline at end of file +ASSETS=~/viya/software/viya_order_assets/SASViyaV4_XXX_XXXX-XXXX_deploymentAssets.tgz # path to the tgz assets file diff --git a/viya4-deployment-darksite/mirrormgr-to-ecr/01_mirrormgr-ecr.sh b/viya4-deployment-darksite/mirrormgr-to-ecr/01_mirrormgr-ecr.sh index b5fcf3ff..16db9717 100644 --- a/viya4-deployment-darksite/mirrormgr-to-ecr/01_mirrormgr-ecr.sh +++ b/viya4-deployment-darksite/mirrormgr-to-ecr/01_mirrormgr-ecr.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + ## mirrormgr must be installed and in $PATH prior to running this script ## aws cli should be configured prior to running this script ## place your downloaded assets in the assets/ folder @@ -32,4 +35,4 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then --destination https://$AWS_ACCT_ID.dkr.ecr.$REGION.amazonaws.com/$NAMESPACE \ --username 'AWS' \ --password $(aws ecr get-login-password --region $REGION) -fi \ No newline at end of file +fi diff --git a/viya4-deployment-darksite/mirrormgr-to-ecr/02_cleanup-ecr.sh b/viya4-deployment-darksite/mirrormgr-to-ecr/02_cleanup-ecr.sh index f628fb57..d8f659ea 100644 --- a/viya4-deployment-darksite/mirrormgr-to-ecr/02_cleanup-ecr.sh +++ b/viya4-deployment-darksite/mirrormgr-to-ecr/02_cleanup-ecr.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 + # this script will help you quickly clean up viya related ECR repos ### source variables from 00_vars.sh