ansible-ansible-openshift-ansible

Ansible playbooks to run ansible on a remote "openshift control" what will run openshift-ansible to deploy a cluster

Commit e8070a5 fix cluster inventory template, don't require cluster name variable

2 files Authored and Committed by maxamillion 4 months ago
fix cluster inventory template, don't require cluster name variable

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>

    
 1 @@ -16,10 +16,10 @@
 2       - name: create the inventory file
 3         template:
 4           src: "templates/cluster-inventory.j2"
 5 -         dest: "{{ openshift_ansible_path }}/{{ cluster_inventory_filename }}"
 6 +         dest: "{{ openshift_ansible_path }}/cluster-inventory"
 7   
 8       - name: run ansible
 9 -       shell: "ansible-playbook {{ openshift_ansible_playbook }} -i {{ cluster_inventory_filename }}"
10 +       shell: "ansible-playbook {{ openshift_ansible_playbook }} -i cluster-inventory"
11         args:
12           chdir: "{{ openshift_ansible_path }}"
13         register: run_ansible_out
1 @@ -30,6 +30,6 @@
2   {% for host in groups[openshift_cluster_masters_group] %}
3   {{ host }} openshift_node_labels="{'region':'infra'}" openshift_schedulable=False
4   {% endfor %}
5 - {% for host in openshift_cluster_nodes_group %}
6 + {% for host in groups[openshift_cluster_nodes_group] %}
7   {{ host }} openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
8   {% endfor %} 
9 \ No newline at end of file