Commit 82795ad2 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Add full-oop but with existing cluster, avoiding kind cluster creation

parent 642eadb9
Loading
Loading
Loading
Loading
+63 −0
Original line number Diff line number Diff line
---
all:
  hosts:
    openop_1:
      ansible_host: 192.168.123.188
      ansible_connection: ssh
      ansible_user: ubuntu
      ansible_ssh_private_key_file: "~/.ssh/keys/openop-dev-vm.key"
      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.188
      kubeconfig_output_dir: "/home/ubuntu/kind-cluster-config"
      kubeconfig_filename: operator-platform-external-kubeconfig.yaml
      cluster_name: dev-all-in-one

    openop_2:
      ansible_host: 192.168.123.178
      ansible_connection: ssh
      ansible_user: ubuntu
      ansible_ssh_private_key_file: "~/.ssh/keys/openop-dev-vm.key"
      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.178
      kubeconfig_output_dir: "/home/ubuntu/kind-cluster-config"
      kubeconfig_filename: op2-kubeconfig.yaml
      cluster_name: node-2
      api_server_port: 6444
      oeg_partner_api_root: "http://192.168.123.155:30989"
      oeg_avail_zone_notif_link: "http://192.168.123.178:32263/oeg/1.0.0/availability-zones/notifications"

    openop_3:
      ansible_host: 192.168.123.155
      ansible_connection: ssh
      ansible_user: ubuntu
      ansible_ssh_private_key_file: "~/.ssh/keys/openop-dev-vm.key"
      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.155
      kubeconfig_output_dir: "/home/ubuntu/kind-cluster-config"
      kubeconfig_filename: op1-kubeconfig.yaml
      cluster_name: node-1
      api_server_port: 6443
      oeg_partner_api_root: "http://192.168.123.178:30989"
      oeg_avail_zone_notif_link: "http://192.168.123.155:32263/oeg/1.0.0/availability-zones/notifications"

  children:
    openop_dev:
      hosts:
        openop_1:
    op1_nodes:
      hosts:
        openop_3:
    op2_nodes:
      hosts:
        openop_2:
    k8s_clusters:
      children:
        openop_dev:
        op1_nodes:
        op2_nodes:
+22 −3
Original line number Diff line number Diff line
@@ -17,9 +17,24 @@ all:
      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
      cluster_name: sunrise-remote
      api_server_port: 16443
      kubeconfig_output_dir: "/home/ubuntu/.kube"
      kubeconfig_filename: "config"

    openop_kul:
      ansible_host: 193.190.168.50
      ansible_connection: ssh
      ansible_user: i2cat
      ansible_ssh_private_key_file: "~/.ssh/keys/sn-keypair.pem"
      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: 193.190.168.50
      cluster_name: op2-remote
      api_server_port: 16443
      kubeconfig_output_dir: /home/i2cat/.kube
      kubeconfig_filename: "config"


    openop_1:
@@ -71,6 +86,10 @@ all:
    openop_dev:
      hosts:
        openop_1:
    existing_cluster_nodes:
      hosts:
        openop_sunrise:
        example_op_2:
    op1_nodes:
      hosts:
        openop_3:
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/infrastructure/prerequisites/setup-docker.yml

- name: Install Docker
  hosts: k8s_clusters
  hosts: "{{ target_hosts | default('k8s_clusters') }}"
  gather_facts: true
  become: true

+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/infrastructure/prerequisites/setup-kubectl.yml

- name: Install kubectl
  hosts: k8s_clusters
  hosts: "{{ target_hosts | default('k8s_clusters') }}"
  gather_facts: true
  become: true

+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Usage: ansible-playbook playbooks/infrastructure/prerequisites/setup-python-libs.yml

- name: Install Python Libraries
  hosts: k8s_clusters
  hosts: "{{ target_hosts | default('k8s_clusters') }}"
  gather_facts: true
  become: true

Loading