Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #########libvirt.sls file########
- libvirt-bin:
- pkg.installed: []
- file.line:
- - name: /etc/default/libvirt-bin
- - mode: replace
- - match: 'libvirtd_opts="-d"'
- - content: 'libvirtd_opts="-d -l"'
- - require:
- - pkg: libvirt-bin
- virt.keys:
- - require:
- - pkg: libvirt-bin
- /etc/libvirt/libvirtd.conf:
- file.append:
- - text:
- - listen_tls = 0
- - listen_tcp = 1
- - auth_tcp = "none"
- - tcp_port = "16509"
- service.running:
- - name: libvirt-bin
- python-libvirt:
- pkg.installed: []
- Additional Packages:
- pkg.installed:
- - pkgs:
- - libguestfs-tools
- - virtinst
- - virt-viewer
- - virt-manager
- - virt-what
- #Add storage pool to libvirt
- salt://scripts/salt-pool.sh:
- cmd.script:
- - unless: virsh pool-info SaltPool
- #########end libvirt.sls file########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement