diff options
author | Wesley Hearn <whearn@redhat.com> | 2015-07-20 16:20:12 -0400 |
---|---|---|
committer | Wesley Hearn <whearn@redhat.com> | 2015-07-23 11:30:48 -0400 |
commit | c4cca1d7184ae859706b5854a04f18095c12f1d6 (patch) | |
tree | d0637086194fcc303226ff7d3f98684c8d427a44 /playbooks/common/openshift-cluster | |
parent | 0cbeae4df062af3e2c1a4cb08ef3b4e742394ed6 (diff) | |
download | openshift-c4cca1d7184ae859706b5854a04f18095c12f1d6.tar.gz openshift-c4cca1d7184ae859706b5854a04f18095c12f1d6.tar.bz2 openshift-c4cca1d7184ae859706b5854a04f18095c12f1d6.tar.xz openshift-c4cca1d7184ae859706b5854a04f18095c12f1d6.zip |
Infra node support
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/set_node_launch_facts_tasks.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/set_node_launch_facts_tasks.yml b/playbooks/common/openshift-cluster/set_node_launch_facts_tasks.yml index 96e1a9a63..278942f8b 100644 --- a/playbooks/common/openshift-cluster/set_node_launch_facts_tasks.yml +++ b/playbooks/common/openshift-cluster/set_node_launch_facts_tasks.yml @@ -1,11 +1,13 @@ --- -- set_fact: k8s_type="node" +- set_fact: k8s_type=node +- set_fact: sub_host_type="{{ type }}" +- set_fact: number_nodes="{{ count }}" - name: Generate node instance names(s) set_fact: - scratch_name: "{{ cluster_id }}-{{ k8s_type }}-{{ '%05x' | format(1048576 | random) }}" + scratch_name: "{{ cluster_id }}-{{ k8s_type }}-{{ sub_host_type }}-{{ '%05x' | format(1048576 | random) }}" register: node_names_output - with_sequence: count={{ num_nodes }} + with_sequence: count={{ number_nodes }} - set_fact: node_names: "{{ node_names_output.results | default([]) |