Commit da538a48 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Align automation playbooks for multi-cluster deploys

parent 9aee0cf0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -61,3 +61,4 @@ kubeconfig_server_host: "{{ ansible_default_ipv4.address | default('localhost')
kubeconfig_server_url: "https://{{ kubeconfig_server_host }}:{{ api_server_port }}"
kubeconfig_output_dir: "{{ op_automation_base }}/automation/1-kind-cluster"
kubeconfig_filename: operator-platform-external-kubeconfig.yaml
kubeconfig_path: "{{ kubeconfig_output_dir }}/{{ kubeconfig_filename }}"
+14 −0
Original line number Diff line number Diff line
@@ -8,6 +8,20 @@ all:
      ansible_connection: local
      ansible_python_interpreter: "{{ ansible_playbook_python }}"

    openop_sunrise:
      ansible_host: 192.168.123.214
      ansible_connection: ssh
      ansible_user: ubuntu
      ansible_ssh_private_key_file: "~/.ssh/keys/sn-keypair"
      ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o ConnectTimeout=300 -o ServerAliveInterval=30 -o IdentitiesOnly=yes'
      ansible_python_interpreter: /usr/bin/python3
      deployment_mode: remote
      host_ip: 192.168.123.214
      # kubeconfig_output_dir: "/home/ubuntu/kind-cluster-config"
      # kubeconfig_filename: operator-platform-external-kubeconfig.yaml
      # cluster_name: dev-all-in-one


    openop_1:
      ansible_host: 192.168.123.188
      ansible_connection: ssh
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/infrastructure/kind-cluster/deploy.yml

- name: Deploy Kind Cluster for Operator Platform
  hosts: kind_cluster
  hosts: kind_clusters
  gather_facts: true
  
  pre_tasks:
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/infrastructure/kind-cluster/undeploy.yml

- name: Undeploy Kind Cluster for Operator Platform
  hosts: k8s_cluster
  hosts: k8s_clusters
  gather_facts: true
  
  vars_prompt:
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/tools/prerequisites/install-python-deps.yml -k -K

- name: Install Python Dependencies for Ansible
  hosts: k8s_cluster
  hosts: "{{ target_hosts | default('k8s_cluster') }}"
  gather_facts: true
  become: true

Loading