Skip to content

Instantly share code, notes, and snippets.

@eslutsky
Last active August 11, 2020 13:05
Show Gist options
  • Save eslutsky/841d9044a828a5de9c73e8ec4b16f466 to your computer and use it in GitHub Desktop.
Save eslutsky/841d9044a828a5de9c73e8ec4b16f466 to your computer and use it in GitHub Desktop.
ocp-on-rhv-templates-refresh
#!/bin/bash
for i in {11..19}; do
cat <<__EOF__ >params.yaml
template_name: rhcos-master-$i
template_disk_size: 16GiB
template_memory: 16GiB
template_cpu: 8
nic_profile_name: ovn-vmnet-$i
__EOF__
cat <<__EOF__ >params-light.yaml
template_name: rhcos-master-$i
template_disk_size: 16GiB
template_memory: 8GiB
template_cpu: 4
nic_profile_name: ovn-vmnet-$i
__EOF__
ansible-playbook upload-rhcos-template.yml [email protected]
ansible-playbook upload-rhcos-template.yml [email protected]
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment