From 35eb33b2c531f2ef9da54eddb9e3b01fd025540f Mon Sep 17 00:00:00 2001 From: Lawrence McDaniel Date: Sun, 29 Jan 2023 13:51:25 -0600 Subject: [PATCH] Mcdaniel 202301 remotes (#42) * add cookiecutter params for remote mysql, redis * add post hooks to remove unrequired modules * lint * run hooks * remove the terragrunt stuff too * tests --- cookiecutter.json | 22 ++-- doc/README.rst | 8 +- hooks/post_gen_project.py | 115 ++++++++++-------- {{cookiecutter.github_repo_name}}/README.rst | 6 +- {{cookiecutter.github_repo_name}}/make.sh | 76 ++++++------ .../environments/modules/acm/outputs.tf | 2 +- .../modules/cloudfront/certificate_manager.tf | 1 - .../environments/modules/cloudfront/main.tf | 4 +- .../environments/modules/mysql/kubernetes.tf | 3 +- .../environments/modules/redis/kubernetes.tf | 2 +- .../stacks/modules/kubernetes/main.tf | 2 +- .../modules/kubernetes_cert_manager/main.tf | 4 +- 12 files changed, 132 insertions(+), 113 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 9fb1a59f..d6bfa7ee 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -14,12 +14,18 @@ "global_aws_route53_hosted_zone_id": "Z1234567ABCDE1U23DEF", "global_aws_region": "us-east-1", "global_account_id": "123456789012", - "stack_install_k8s_dashboard": ["Y", "N"], - "stack_install_k8s_kubeapps": ["Y", "N"], - "stack_install_k8s_karpenter": ["Y", "N"], - "stack_install_k8s_prometheus": ["Y", "N"], + "stack_add_bastion": ["Y", "N"], + "stack_add_bastion_openedx_dev_environment": ["N", "Y"], + "stack_add_k8s_dashboard": ["Y", "N"], + "stack_add_k8s_kubeapps": ["Y", "N"], + "stack_add_k8s_karpenter": ["Y", "N"], + "stack_add_k8s_prometheus": ["Y", "N"], + "stack_add_remote_mysql": ["Y", "N"], + "stack_add_remote_mongodb": ["Y", "N"], + "stack_add_remote_redis": ["Y", "N"], "ci_build_tutor_version": "15.2.0", - "ci_deploy_open_edx_version": "olive.1", + "ci_build_kubectl_version": "1.24/stable", + "kubernetes_cluster_version": "1.24", "ci_build_theme_repository": "edx-theme-example", "ci_build_theme_repository_organization": "lpm0073", "ci_build_theme_ref": "main", @@ -29,7 +35,7 @@ "ci_build_xblock_org": "openedx", "ci_build_xblock_repository": "edx-ora2", "ci_build_xblock_ref": "master", - "ci_build_kubectl_version": "1.24/stable", + "ci_deploy_open_edx_version": "olive.1", "ci_deploy_install_backup_plugin": ["N", "Y"], "ci_deploy_install_credentials_server": ["N", "Y"], "ci_deploy_install_discovery_service": ["Y", "N"], @@ -85,12 +91,8 @@ "eks_karpenter_group_min_size": 3, "eks_karpenter_group_max_size": 10, "eks_karpenter_group_desired_size": 3, - "kubernetes_cluster_version": "1.24", - "stack_add_remote_mongodb": ["Y", "N"], "mongodb_instance_type": "t3.medium", "mongodb_allocated_storage": 10, - "stack_add_bastion": ["Y", "N"], - "stack_add_bastion_openedx_dev_environment": ["N", "Y"], "bastion_instance_type": "t3.micro", "bastion_allocated_storage": 50, "mysql_username": "root", diff --git a/doc/README.rst b/doc/README.rst index 724a9219..55208803 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -153,7 +153,7 @@ See this example screen shot of a typical AWS resource. In this case, an AWS RDS Cookiecutter AWS Services Stack Installation Options ---------------------------------------------------- -- **stack_install_k8s_dashboard:** +- **stack_add_k8s_dashboard:** 'Y' to install `Kubernetes Dashboard `_ in the AWS EKS cluster and add an ingress, ssl-tls cert and url endpoint to global_services_subdomain. @@ -162,7 +162,7 @@ Cookiecutter AWS Services Stack Installation Options *default value: Y* -- **stack_install_k8s_kubeapps:** +- **stack_add_k8s_kubeapps:** 'Y' to install `VMWare Bitnami Kubeapps `_ in the AWS EKS cluster and add an ingress, ssl-tls cert and url endpoint to global_services_subdomain. @@ -171,7 +171,7 @@ Cookiecutter AWS Services Stack Installation Options *default value: Y* -- **stack_install_k8s_karpenter:** +- **stack_add_k8s_karpenter:** 'Y' to install `Karpenter `_ in the AWS EKS cluster. @@ -181,7 +181,7 @@ Cookiecutter AWS Services Stack Installation Options *default value: Y* -- **stack_install_k8s_prometheus:** +- **stack_add_k8s_prometheus:** 'Y' to install `Prometheus