diff options
author | Chengcheng Mu <chengcheng.mu@amadeus.com> | 2015-08-18 10:46:23 +0200 |
---|---|---|
committer | Chengcheng Mu <chengcheng.mu@amadeus.com> | 2015-10-01 13:49:10 +0200 |
commit | a22fbd327ab9decda9543d47c1ba375b9faecffd (patch) | |
tree | 8c1c0cb011980a015fd798612777eece523b5753 /playbooks/common | |
parent | 6f5fff8a542d544916427ce625fe46ec31fa76d3 (diff) | |
download | openshift-a22fbd327ab9decda9543d47c1ba375b9faecffd.tar.gz openshift-a22fbd327ab9decda9543d47c1ba375b9faecffd.tar.bz2 openshift-a22fbd327ab9decda9543d47c1ba375b9faecffd.tar.xz openshift-a22fbd327ab9decda9543d47c1ba375b9faecffd.zip |
GCE-support (more information in PR, README_GCE.md)
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') }}" |