copr-hv: install profile script
Mostly to setup default libvirt connection string.
This commit is contained in:
parent
bb3fab2d32
commit
9cbb501ef8
2 changed files with 14 additions and 0 deletions
10
roles/copr/hypervisor/files/profile.sh
Normal file
10
roles/copr/hypervisor/files/profile.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# By default connect to localhost
|
||||||
|
export LIBVIRT_DEFAULT_URI=qemu:///system
|
||||||
|
|
||||||
|
# Pretty large history in virsh...
|
||||||
|
export VIRSH_HISTSIZE=200000
|
||||||
|
|
||||||
|
# Enlarge commandline history
|
||||||
|
export HISTSIZE=2000000
|
||||||
|
export HISTIGNORE="ls:exit:cd -:cd ~:cd"
|
||||||
|
export HISTCONTROL=erasedups:ignoreboth
|
|
@ -11,6 +11,10 @@
|
||||||
when: fstab_swap_entry.changed
|
when: fstab_swap_entry.changed
|
||||||
tags: swap
|
tags: swap
|
||||||
|
|
||||||
|
- name: install the default profile script
|
||||||
|
copy: src=profile.sh dest=/etc/profile.d/copr-hypervisor.sh
|
||||||
|
tags: profile_scripts
|
||||||
|
|
||||||
- name: install libvirtd.conf
|
- name: install libvirtd.conf
|
||||||
copy: src="{{ files }}/virthost/libvirtd.conf" dest=/etc/libvirt/libvirtd.conf
|
copy: src="{{ files }}/virthost/libvirtd.conf" dest=/etc/libvirt/libvirtd.conf
|
||||||
notify:
|
notify:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue