Compare commits

..

No commits in common. "369aed9ea1c189e0b150e172e7922c6af44d1532" and "4eee20f63f59a8a6f6a6e8d851efdfd50b6d89ef" have entirely different histories.

4 changed files with 2 additions and 11 deletions

View File

@ -1,6 +1,5 @@
project_terraform: "/home/valentin/terraform" project_terraform: "/home/valentin/terraform"
project_backend: "/home/valentin/k8s_backend" project_backend: "/home/valentin/k8s_backend"
project_kubeconfig: "/home/valentin/.kube/config"
region_k8s: "fr-par" region_k8s: "fr-par"
project_name_tf: "terraform-test" project_name_tf: "terraform-test"
quarkus_project: "covas-quarkus" quarkus_project: "covas-quarkus"

View File

@ -8,7 +8,7 @@
- name: Copy backend k8s yaml - name: Copy backend k8s yaml
template: template:
src: "{{ item }}.yaml.j2" src: "{{ item }}.tf.j2"
dest: "{{ project_backend }}/{{ item }}.yaml" dest: "{{ project_backend }}/{{ item }}.yaml"
with_items: "{{ backend_yaml }}" with_items: "{{ backend_yaml }}"

View File

@ -18,8 +18,4 @@
X-Auth-Token: "{{ scw_secret_key }}" X-Auth-Token: "{{ scw_secret_key }}"
when: item.name == "{{ project_name_tf }}" when: item.name == "{{ project_name_tf }}"
with_items: "{{ (output.content |from_json).clusters }}" with_items: "{{ (output.content |from_json).clusters }}"
- name: Copy kubeconfig
copy:
src: "{{ project_terraform }}/kubeconfig"
dest: "{{ project_kubeconfig }}"

View File

@ -10,10 +10,6 @@
import_tasks: kubeconfig.yml import_tasks: kubeconfig.yml
tags: ["create-cluster", "kubeconfig"] tags: ["create-cluster", "kubeconfig"]
- name: Deploy a API backend
import_tasks: deploy-backend.yml
tags: ["deploy-api"]
- name: Destroy cluster k8s scaleway via terraform - name: Destroy cluster k8s scaleway via terraform
import_tasks: destroy-cluster.yml import_tasks: destroy-cluster.yml
tags: ["destroy-cluster"] tags: ["destroy-cluster"]