configure second NIC on copr-be*

This commit is contained in:
Miroslav Suchý 2015-04-01 13:32:45 +00:00
parent 5d5c9081b3
commit 42cd8ea185
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,7 @@
BOOTPROTO=dhcp
TYPE=Ethernet
DEVICE="eth1"
PEERDNS=no
IPV6INIT=no
ONBOOT=yes
USERCTL=no

View file

@ -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:

View 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