github.com/openshift/installer@v1.4.17/upi/openstack/common.yaml (about)

     1  - hosts: localhost
     2    gather_facts: no
     3  
     4    vars_files:
     5    - metadata.json
     6    - netid.json
     7  
     8    tasks:
     9    - name: "Check if metadata.json exists"
    10      ansible.builtin.stat:
    11        path: metadata.json
    12      register: sym
    13  
    14    - name: 'Compute resource names'
    15      set_fact:
    16        cluster_id_tag: "openshiftClusterID={{ infraID }}"
    17        primary_cluster_network_tag: "{{ infraID }}-primaryClusterNetwork"
    18        os_infra_id: "{{ infraID }}"
    19        os_port_bootstrap: "{{ infraID }}-bootstrap-port"
    20        os_port_master: "{{ infraID }}-master-port"
    21        os_port_worker: "{{ infraID }}-worker-port"
    22        # Security groups names
    23        os_sg_master: "{{ infraID }}-master"
    24        os_sg_worker: "{{ infraID }}-worker"
    25        # Server names
    26        os_bootstrap_server_name: "{{ infraID }}-bootstrap"
    27        os_cp_server_name: "{{ infraID }}-master"
    28        os_cp_server_group_name: "{{ infraID }}-master"
    29        os_compute_server_name: "{{ infraID }}-worker"
    30        os_compute_server_group_name: "{{ infraID }}-worker"
    31        # Ignition files
    32        os_bootstrap_ignition: "{{ infraID }}-bootstrap-ignition.json"
    33      when: sym.stat.exists
    34  
    35    - name: 'Compute network resource names'
    36      set_fact:
    37        os_network: "{{ os_net_id }}-network"
    38        os_subnet: "{{ os_net_id }}-nodes"
    39        os_subnet6: "{{ os_net_id }}-nodes-v6"
    40        os_router: "{{ os_net_id }}-external-router"
    41        # Port names
    42        os_port_api: "{{ os_net_id }}-api-port"
    43        os_port_ingress: "{{ os_net_id }}-ingress-port"