Updates for setting up sodium-benzoate as a virtualization-host

This commit is contained in:
Zachary Seguin 2016-09-13 15:11:08 -04:00
parent 3e050b45b3
commit 78584af45c
4 changed files with 27 additions and 2 deletions

1
hosts
View File

@ -28,6 +28,7 @@ potassium-benzoate.csclub.uwaterloo.ca
munin.csclub.uwaterloo.ca munin.csclub.uwaterloo.ca
rt.csclub.uwaterloo.ca rt.csclub.uwaterloo.ca
netbox.csclub.uwaterloo.ca netbox.csclub.uwaterloo.ca
sodium-benzoate.csclub.uwaterloo.ca
[audio-sink] [audio-sink]
nullsleep.csclub.uwaterloo.ca nullsleep.csclub.uwaterloo.ca

View File

@ -1,11 +1,12 @@
--- ---
- hosts: cobalamin.csclub.uwaterloo.ca - hosts: sodium-benzoate.csclub.uwaterloo.ca
become: yes become: yes
become_method: sudo become_method: sudo
roles: roles:
- common - common
- core - core
- hardware - hardware
- virtualization-host
- generate-hosts - generate-hosts
- auth - auth
- csc-packages - csc-packages

View File

@ -10,8 +10,21 @@
regexp='^NEED_GSSD=$' regexp='^NEED_GSSD=$'
line='NEED_GSSD=1' line='NEED_GSSD=1'
- name: change NEED_STATD to NEED_STATD=1
lineinfile: dest=/etc/default/nfs-common
state=present
backrefs=yes
regexp='^NEED_STATD=$'
line='NEED_STATD=1'
when: ansible_distribution == 'Debian'
- name: restart and enable rpc-gssd - name: restart and enable rpc-gssd
service: name=rpc-gssd state=started enabled=yes service: name=rpc-gssd state=restarted enabled=yes
when: ansible_distribution == 'Ubuntu'
- name: restart and enable nfs-common
service: name=nfs-common state=restarted enabled=yes
when: ansible_distribution == 'Debian'
- name: ensure mountpoints exist - name: ensure mountpoints exist
file: path={{ item }} state=directory file: path={{ item }} state=directory

View File

@ -0,0 +1,10 @@
---
- name: Install virtualization tools
apt: name={{ item }} state=latest
with_items:
- qemu
- qemu-kvm
- libvirt-bin
- bridge-utils