moving tf to gitlab
This commit is contained in:
parent
51616cedd2
commit
83540bf4ae
3 changed files with 54 additions and 0 deletions
19
Terraform-Module.gitlab-ci.yml
Normal file
19
Terraform-Module.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
||||||
|
# https://docs.gitlab.com/development/cicd/templates/
|
||||||
|
# This specific template is located at:
|
||||||
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform-Module.gitlab-ci.yml
|
||||||
|
|
||||||
|
include:
|
||||||
|
- template: Terraform/Module-Base.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Module-Base.gitlab-ci.yml
|
||||||
|
- template: Jobs/SAST-IaC.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/SAST-IaC.gitlab-ci.yml
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
# See the included job template at `Terraform/Module-Base.gitlab-ci.yml` to learn about supported variables.
|
||||||
|
deploy:
|
||||||
|
extends: .terraform-module:deploy
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
|
@ -95,6 +95,7 @@ resource "powerdns_record" "vntx_txt_records" {
|
||||||
|
|
||||||
resource "powerdns_record" "vntx_cname_records" {
|
resource "powerdns_record" "vntx_cname_records" {
|
||||||
for_each = {
|
for_each = {
|
||||||
|
# Current records
|
||||||
"mg" = "mailgun.org."
|
"mg" = "mailgun.org."
|
||||||
"email.mg" = "mailgun.org."
|
"email.mg" = "mailgun.org."
|
||||||
"*.w5isp" = "dokku.w5isp.com."
|
"*.w5isp" = "dokku.w5isp.com."
|
||||||
|
|
@ -104,6 +105,35 @@ resource "powerdns_record" "vntx_cname_records" {
|
||||||
"status" = "stats.uptimerobot.com."
|
"status" = "stats.uptimerobot.com."
|
||||||
"ntp" = "0.us.pool.ntp.org."
|
"ntp" = "0.us.pool.ntp.org."
|
||||||
"iptrack" = "dokku.w5isp.com."
|
"iptrack" = "dokku.w5isp.com."
|
||||||
|
|
||||||
|
# Restored records from git history
|
||||||
|
"_4080c249b6e72dd04f2a9508aa1a1b7f.kivrak" = "_de3e5d511f3869bbd271b935a3b4f973.tljzshvwok.acm-validations.aws."
|
||||||
|
"_83337805c305955c6823504cc5e6ca29" = "_baf97cdcc7b6458fa5719e4261e9932f.sdgjtdhdhz.acm-validations.aws."
|
||||||
|
"_bc1077259b1fbbb11c1e16756e1883f9.irc" = "793f217a963b25f361ec1975e0fd7d54.dc2ec86a36550aed25a0011c0b2b044b.62f7abe714ec1.comodoca.com."
|
||||||
|
"177982" = "sendgrid.net."
|
||||||
|
"4809fce066c3da4d14197c7276ba083f.irc" = "b58bf151af520d34d8fad99d05274cb536893031.comodoca.com."
|
||||||
|
"9p83fpanfdgs8xdgcnzd" = "verify.squarespace.com."
|
||||||
|
"activate" = "verona-networks-checkout.gaiia-consumer.com."
|
||||||
|
"autodiscover.o365" = "autodiscover.outlook.com."
|
||||||
|
"autodiscover" = "autodiscover.outlook.com."
|
||||||
|
"em924886" = "return.smtp2go.net."
|
||||||
|
"em9279" = "u177982.wl233.sendgrid.net."
|
||||||
|
"email" = "mandrillapp.com."
|
||||||
|
"enterpriseenrollment.o365" = "enterpriseenrollment.manage.microsoft.com."
|
||||||
|
"enterpriseregistration.o365" = "enterpriseregistration.windows.net."
|
||||||
|
"link" = "track.smtp2go.net."
|
||||||
|
"lyncdiscover.o365" = "webdir.online.lync.com."
|
||||||
|
"mte1._domainkey" = "dkim1.mandrillapp.com."
|
||||||
|
"mte2._domainkey" = "dkim2.mandrillapp.com."
|
||||||
|
"portal" = "verona-networks-clientportal.gaiia-consumer.com."
|
||||||
|
"s1._domainkey" = "s1.domainkey.u177982.wl233.sendgrid.net."
|
||||||
|
"s2._domainkey" = "s2.domainkey.u177982.wl233.sendgrid.net."
|
||||||
|
"s924886._domainkey" = "dkim.smtp2go.net."
|
||||||
|
"sip.o365" = "sipdir.online.lync.com."
|
||||||
|
"uptime" = "page.updown.io."
|
||||||
|
"url62" = "sendgrid.net."
|
||||||
|
"url9812" = "sendgrid.net."
|
||||||
|
"www" = "ext-cust.squarespace.com."
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [powerdns_zone.vntx_net]
|
depends_on = [powerdns_zone.vntx_net]
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,11 @@ terraform {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
terraform {
|
||||||
|
backend "http" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
provider "dnsimple" {
|
provider "dnsimple" {
|
||||||
token = var.dnsimple_token
|
token = var.dnsimple_token
|
||||||
account = var.dnsimple_account
|
account = var.dnsimple_account
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue