Advertisement
Guest User

Untitled

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