configure second NIC on copr-be*
This commit is contained in:
parent
5d5c9081b3
commit
42cd8ea185
3 changed files with 19 additions and 0 deletions
7
roles/copr/backend/files/ifcfg-eth1
Normal file
7
roles/copr/backend/files/ifcfg-eth1
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
BOOTPROTO=dhcp
|
||||||
|
TYPE=Ethernet
|
||||||
|
DEVICE="eth1"
|
||||||
|
PEERDNS=no
|
||||||
|
IPV6INIT=no
|
||||||
|
ONBOOT=yes
|
||||||
|
USERCTL=no
|
|
@ -3,6 +3,9 @@
|
||||||
include: "mount_fs.yml"
|
include: "mount_fs.yml"
|
||||||
when: not devel
|
when: not devel
|
||||||
|
|
||||||
|
- name: setup networking
|
||||||
|
include: "network.yml"
|
||||||
|
|
||||||
- name: add packages for copr backend
|
- name: add packages for copr backend
|
||||||
yum: state=present name={{ item }} enablerepo="updates-testing"
|
yum: state=present name={{ item }} enablerepo="updates-testing"
|
||||||
with_items:
|
with_items:
|
||||||
|
|
9
roles/copr/backend/tasks/network.yml
Normal file
9
roles/copr/backend/tasks/network.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
- name: copy ifcfg-eth1
|
||||||
|
template: src="ifcfg-eth1" dest=/etc/sysconfig/network-scripts/ owner=root group=root mode=644
|
||||||
|
notify:
|
||||||
|
- restart network
|
||||||
|
|
||||||
|
- name: set up gateway
|
||||||
|
lineinfile: dest=/etc/sysconfig/network line="GATEWAYDEV=eth0"
|
||||||
|
notify:
|
||||||
|
- restart network
|
Loading…
Add table
Add a link
Reference in a new issue