diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-10-05 09:26:52 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-10-05 09:26:52 -0400 |
commit | 7918909dc7c6877a4ce2b9fab830d0c41c1c92fd (patch) | |
tree | 5dc2cb028bddf76e98ff53d333535212d6fd8b3b /playbooks/common | |
parent | c443f3fc1b901b72a58e0e28b5a280cec205cbbd (diff) | |
parent | 59fb7879501d702bb78a1d79326408b115a63c90 (diff) | |
download | openshift-7918909dc7c6877a4ce2b9fab830d0c41c1c92fd.tar.gz openshift-7918909dc7c6877a4ce2b9fab830d0c41c1c92fd.tar.bz2 openshift-7918909dc7c6877a4ce2b9fab830d0c41c1c92fd.tar.xz openshift-7918909dc7c6877a4ce2b9fab830d0c41c1c92fd.zip |
Merge pull request #641 from menren/gce-support
GCE support
Diffstat (limited to 'playbooks/common')
-rw-r--r-- | playbooks/common/openshift-cluster/set_infra_launch_facts_tasks.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/set_infra_launch_facts_tasks.yml b/playbooks/common/openshift-cluster/set_infra_launch_facts_tasks.yml new file mode 100644 index 000000000..0fd53eb7d --- /dev/null +++ b/playbooks/common/openshift-cluster/set_infra_launch_facts_tasks.yml @@ -0,0 +1,15 @@ +--- +- set_fact: k8s_type=infra +- set_fact: sub_host_type="{{ type }}" +- set_fact: number_infra="{{ count }}" + +- name: Generate infra instance names(s) + set_fact: + scratch_name: "{{ cluster_id }}-{{ k8s_type }}-{{ sub_host_type }}-{{ '%05x' | format(1048576 | random) }}" + register: infra_names_output + with_sequence: count={{ number_infra }} + +- set_fact: + infra_names: "{{ infra_names_output.results | default([]) + | oo_collect('ansible_facts') + | oo_collect('scratch_name') }}" |