diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2016-01-04 11:44:50 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2016-01-04 11:44:50 -0500 |
commit | 1a5319841b028d94294f683e407963742f340fe5 (patch) | |
tree | 08aa6aa833a3bf04cab1645b790bee1bc27ef6f3 /playbooks/adhoc/create_pv | |
parent | 265cd64555c9262f0896505caa6b036f6092dd0d (diff) | |
parent | da8165469a43dc3bf43b2024a76edcd04be0bb81 (diff) | |
download | openshift-1a5319841b028d94294f683e407963742f340fe5.tar.gz openshift-1a5319841b028d94294f683e407963742f340fe5.tar.bz2 openshift-1a5319841b028d94294f683e407963742f340fe5.tar.xz openshift-1a5319841b028d94294f683e407963742f340fe5.zip |
Merge pull request #958 from kwoodson/envfix
Fixing meta data tags env and environment
Diffstat (limited to 'playbooks/adhoc/create_pv')
-rw-r--r-- | playbooks/adhoc/create_pv/create_pv.yaml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/playbooks/adhoc/create_pv/create_pv.yaml b/playbooks/adhoc/create_pv/create_pv.yaml index 0ca040ee1..347d9f574 100644 --- a/playbooks/adhoc/create_pv/create_pv.yaml +++ b/playbooks/adhoc/create_pv/create_pv.yaml @@ -3,9 +3,8 @@ # ansible-playbook -e "cli_volume_size=1" \ # -e "cli_device_name=/dev/xvdf" \ # -e "cli_hosttype=master" \ -# -e "cli_env=ops" \ +# -e "cli_clusterid=ops" \ # create_pv.yaml -# FIXME: we need to change "env" to "clusterid" as that's what it really is now. # - name: Create a volume and attach it to master hosts: localhost @@ -16,7 +15,7 @@ cli_volume_type: gp2 cli_volume_iops: '' oo_name: "{{ groups['tag_host-type_' ~ cli_hosttype] | - intersect(groups['tag_env_' ~ cli_env]) | + intersect(groups['oo_clusterid_' ~ cli_clusterid]) | first }}" pre_tasks: - fail: @@ -26,7 +25,7 @@ - cli_volume_size - cli_device_name - cli_hosttype - - cli_env + - cli_clusterid - name: set oo_name fact set_fact: @@ -57,7 +56,7 @@ args: tags: Name: "pv-{{ hostvars[oo_name]['ec2_tag_Name'] }}" - env: "{{cli_env}}" + clusterid: "{{cli_clusterid}}" register: voltags - debug: var=voltags |