mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:04:32 +07:00
16 lines
537 B
YAML
16 lines
537 B
YAML
# pip install kuberentes
|
|
- hosts: localhost
|
|
tasks:
|
|
- name: Inject Terraform secrets to Tekton namespace
|
|
kubernetes.core.k8s:
|
|
definition:
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: terraform-secrets
|
|
namespace: tekton-pipelines
|
|
data:
|
|
credentials.tfrc.json: "{{ lookup('file', '~/.terraform.d/credentials.tfrc.json') | b64encode }}"
|
|
terraform.tfvars: "{{ lookup('file', './terraform.tfvars') | b64encode }}"
|