diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml new file mode 100644 index 0000000..0a7c237 --- /dev/null +++ b/.gitlab/.gitlab-ci.yml @@ -0,0 +1,6 @@ +include: + - project: 'developerdurp/yml' + ref: 'main' + file: + - 'pipeline.yml' + - local: .variables.yml diff --git a/.variables.yml b/.variables.yml new file mode 100644 index 0000000..e15e378 --- /dev/null +++ b/.variables.yml @@ -0,0 +1,4 @@ +variables: + PIPELINE: 'gitlab' + PROJECT_NAME: "TERRAFORM.GITLAB.RKE" + OCTO_PROJECT_NAME: "RKE Clusters" diff --git a/TERRAFORM.GITLAB.RKE/main.tf b/TERRAFORM.GITLAB.RKE/main.tf new file mode 100644 index 0000000..4c7aa36 --- /dev/null +++ b/TERRAFORM.GITLAB.RKE/main.tf @@ -0,0 +1,23 @@ +module "RKE" { + source = "git::https://gitlab.com/developerdurp/tf-modules.git//TERRAFORM.PROXMOX.RKE" + + dnsserver = "#{dnsserver}" + sshkeys = "#{sshkeys}" + vlan = #{vlan} + bridge = "#{bridge}" + appname = "#{appname}" + searchdomain = "#{searchdomain}" + + master = { + count = #{mastercount} + template = "#{master-template}" + cores = #{mastercores} + memory = "#{mastermemory}" + node = #{masternode} + ip = #{masterip} + } + + pm_api_url = "#{pm_api_url}" + pm_api_token_id = "#{pm_api_token_id}" + pm_api_token_secret = "#{pm_api_token_secret}" +}