Use custom libvirt network config for taskotron-client
This commit is contained in:
parent
3ac5cbfa08
commit
56f0b039b2
2 changed files with 23 additions and 0 deletions
16
roles/taskotron/taskotron-client/files/default.xml
Normal file
16
roles/taskotron/taskotron-client/files/default.xml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<network connections='1'>
|
||||
<name>default</name>
|
||||
<uuid>45d7b450-f5ef-4c8c-8eee-f80885076fd1</uuid>
|
||||
<forward mode='nat'>
|
||||
<nat>
|
||||
<port start='1024' end='65535'/>
|
||||
</nat>
|
||||
</forward>
|
||||
<bridge name='virbr0' stp='on' delay='0'/>
|
||||
<mac address='52:54:00:9a:fc:16'/>
|
||||
<ip address='192.168.0.1' netmask='255.255.0.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.0.3' end='192.168.255.254'/>
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
|
@ -78,3 +78,10 @@
|
|||
- name: enable libvirtd
|
||||
service: name=libvirtd state=started enabled=yes
|
||||
when: deployment_type in ['dev', 'stg', 'prod']
|
||||
|
||||
- name: upload custom libvirt network config
|
||||
copy: src=default.xml dest=/root/default.xml owner=root group=root mode=0644
|
||||
when: deployment_type in ['dev', 'stg', 'prod']
|
||||
|
||||
- name: define libvirt network config
|
||||
command: virsh-define /root/default.xml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue