summaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas/salt-formula-armband/armband/nova_libvirt.sls
blob: 9d26e86a4103bacb884b93e04021c693e5ab6499 (plain)
1
2
3
4
5
6
7
8
9
{% if grains['cpuarch'] == 'aarch64' %}
nova-libvirt-aarch64-rollup:
  file.patch:
  - name: /usr/lib/python2.7/dist-packages
  - source: salt://armband/files/nova-libvirt-aarch64-rollup.diff
  - hash: False
  - options: '-p1'
  - unless: 'test -f /var/cache/salt/minion/files/base/armband/files/nova-libvirt-aarch64-rollup.diff && cd /usr/lib/python2.7/dist-packages && patch -p1 -R --dry-run -r - < /var/cache/salt/minion/files/base/armband/files/nova-libvirt-aarch64-rollup.diff'
{% endif %}