Bridge between your CI and the provisioning of an environment
go build
go install
tomcode_deployer_version: "0.9.3"
clients:
- name: "acme"
domain_name: "demo.acme.com"
manager_email: "[email protected]"
tenant_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
baseline_subscription_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
baseline_resource_group_name: "xxx-yyy"
baseline_vault_name: "acme-base-tf"
gitlab_host: "gitlab.demo.acme.com"
gitlab_project: "team1/k8s-deployment"
gitlab_known_hosts: |
gitlab.demo.acme.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA6Dza0CephpYsHj0lixui+BiDIVX08gwyZtd71/1eOv
gitlab.demo.acme.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSFmt8wsXPx+Plg1hE0U/WVPbq4lUG/iLYQki96H3k5i9uHThXIpdWNPPfbCwVCDx+qRr51FdlNZS8wiE9SzNk=
environments:
- name: "staging"
subscription_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
company_name: "staging"
prefix: "acme"
address_space: "10.1.0.0/16"
location: "West Europe"
aks_version: "1.12.5"
- name: "production"
subscription_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
company_name: "production"
prefix: "acme"
address_space: "10.2.0.0/16"
location: "West Europe"
aks_version: "1.12.5"
export CLIENT="acme"
export ENV="staging"
# needed for Azure operations
export AZURE_CLIENT_ID=xxx
export AZURE_CLIENT_SECRET=xxx
validating: example/tomcode.yaml
ok!
TF_VAR_domain_name="demo.acme.com" TF_VAR_manager_email="[email protected]" TF_VAR_tenant_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" TF_VAR_baseline_subscription_id="" TF_VAR_baseline_resource_group_name="xxx-yyy" TF_VAR_subscription_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" TF_VAR_company_name="production" TF_VAR_address_space="10.2.0.0/16" TF_VAR_location="West Europe" TF_VAR_aks_version="1.12.5" TF_VAR_prefix="acme" TF_VAR_baseline_vault_name="acme-base-tf" TF_VAR_gitlab_host="gitlab.demo.acme.com" TF_VAR_gitlab_project="team1/k8s-deployment" TF_VAR_gitlab_known_hosts="gitlab.demo.acme.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA6Dza0CephpYsHj0lixui+BiDIVX08gwyZtd71/1eOv
gitlab.demo.acme.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSFmt8wsXPx+Plg1hE0U/WVPbq4lUG/iLYQki96H3k5i9uHThXIpdWNPPfbCwVCDx+qRr51FdlNZS8wiE9SzNk=
" terraform apply -input=false plan-acme-production.tfplan
tomcode-deployer --config example/tomcode.yaml get tenant_id
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
tomcode-deployer --config example/tomcode.yaml get subscription_id
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content type
Image
Digest
Size
134.4 MB
Last updated
over 7 years ago
docker pull codersociety/tomcode-deployer