Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created November 30, 2017 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrisch/4233c0f8d097ab03f17b371d3d921ce9 to your computer and use it in GitHub Desktop.
Save jrisch/4233c0f8d097ab03f17b371d3d921ce9 to your computer and use it in GitHub Desktop.
- name: Set vcpu priority
command: xe vm-param-set VCPUs-params:weight={{ cpu_weight }} uuid={{ vmuuid.stdout }}
- name: Set vcpu count max
command: xe vm-param-set VCPUs-max={{ vcpu_count }} uuid={{ vmuuid.stdout }}
when: vcpu_count >= "2"
- name: Set vcpu count at startup
command: xe vm-param-set VCPUs-at-startup={{ vcpu_count }} uuid={{ vmuuid.stdout }}
when: vcpu_count >= "2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment