Add terraform validate for contrib/terraform/aws (#4438)
This commit is contained in:
parent
854cc53fa5
commit
80f31818df
3 changed files with 53 additions and 0 deletions
|
@ -814,6 +814,13 @@ tf-validate-packet:
|
||||||
PROVIDER: packet
|
PROVIDER: packet
|
||||||
CLUSTER: $CI_COMMIT_REF_NAME
|
CLUSTER: $CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
|
tf-validate-aws:
|
||||||
|
<<: *terraform_validate
|
||||||
|
variables:
|
||||||
|
TF_VERSION: 0.11.11
|
||||||
|
PROVIDER: aws
|
||||||
|
CLUSTER: $CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
tf-apply-packet:
|
tf-apply-packet:
|
||||||
<<: *terraform_apply
|
<<: *terraform_apply
|
||||||
variables:
|
variables:
|
||||||
|
|
45
contrib/terraform/aws/sample-inventory/cluster.tf
Normal file
45
contrib/terraform/aws/sample-inventory/cluster.tf
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
#Global Vars
|
||||||
|
aws_cluster_name = "devtest"
|
||||||
|
|
||||||
|
#VPC Vars
|
||||||
|
aws_vpc_cidr_block = "10.250.192.0/18"
|
||||||
|
aws_cidr_subnets_private = ["10.250.192.0/20","10.250.208.0/20"]
|
||||||
|
aws_cidr_subnets_public = ["10.250.224.0/20","10.250.240.0/20"]
|
||||||
|
|
||||||
|
#Bastion Host
|
||||||
|
aws_bastion_size = "t2.medium"
|
||||||
|
|
||||||
|
|
||||||
|
#Kubernetes Cluster
|
||||||
|
|
||||||
|
aws_kube_master_num = 3
|
||||||
|
aws_kube_master_size = "t2.medium"
|
||||||
|
|
||||||
|
aws_etcd_num = 3
|
||||||
|
aws_etcd_size = "t2.medium"
|
||||||
|
|
||||||
|
aws_kube_worker_num = 4
|
||||||
|
aws_kube_worker_size = "t2.medium"
|
||||||
|
|
||||||
|
#Settings AWS ELB
|
||||||
|
|
||||||
|
aws_elb_api_port = 6443
|
||||||
|
k8s_secure_api_port = 6443
|
||||||
|
kube_insecure_apiserver_address = "0.0.0.0"
|
||||||
|
|
||||||
|
default_tags = {
|
||||||
|
# Env = "devtest"
|
||||||
|
# Product = "kubernetes"
|
||||||
|
}
|
||||||
|
|
||||||
|
inventory_file = "../../../inventory/hosts"
|
||||||
|
|
||||||
|
## Credentials
|
||||||
|
#AWS Access Key
|
||||||
|
AWS_ACCESS_KEY_ID = ""
|
||||||
|
#AWS Secret Key
|
||||||
|
AWS_SECRET_ACCESS_KEY = ""
|
||||||
|
#EC2 SSH Key Name
|
||||||
|
AWS_SSH_KEY_NAME = ""
|
||||||
|
#AWS Region
|
||||||
|
AWS_DEFAULT_REGION = "eu-central-1"
|
1
contrib/terraform/aws/sample-inventory/group_vars
Symbolic link
1
contrib/terraform/aws/sample-inventory/group_vars
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../../inventory/sample/group_vars
|
Loading…
Reference in a new issue