Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. libvirt-bin:
  2. pkg.installed: []
  3. file.line:
  4. - name: /etc/default/libvirt-bin
  5. - mode: replace
  6. - match: 'libvirtd_opts="-d"'
  7. - content: 'libvirtd_opts="-d -l"'
  8. - require:
  9. - pkg: libvirt-bin
  10. virt.keys:
  11. - require:
  12. - pkg: libvirt-bin
  13.  
  14. /etc/libvirt/libvirtd.conf:
  15. file.append:
  16. - text:
  17. - listen_tls = 0
  18. - listen_tcp = 1
  19. - auth_tcp = "none"
  20. - tcp_port = "16509"
  21.  
  22. service.running:
  23. - name: libvirt-bin
  24. - enable: True
  25. - watch:
  26. - file: /etc/libvirt/libvirtd.conf
  27.  
  28. python-libvirt:
  29. pkg.installed: []
  30.  
  31. Additional Packages:
  32. pkg.installed:
  33. - pkgs:
  34. - libguestfs-tools
  35. - virtinst
  36. - virt-viewer
  37. - virt-manager
  38. - virt-what
  39.  
  40. #Add storage pool to libvirt
  41. salt://scripts/salt-pool.sh:
  42. cmd.script:
  43. - unless: virsh pool-info SaltPool
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement