Install NetworkManager to ensure consistent network bringup on centos

Sets up and enables NetworkManager.

In testing this was the only way to get the network to come up after
reboots on centos.

Change-Id: Iac8d982977982d886b29a8933b59dd3f55578769
This commit is contained in:
Matthew Thode 2017-11-20 19:49:53 -06:00
parent 0421a02e0c
commit e5b4d98f81
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
package-installs

View File

@ -0,0 +1 @@
NetworkManager:

View File

@ -0,0 +1,10 @@
{
"family": {
"redhat": {
"NetworkManager": "NetworkManager"
}
},
"default": {
"NetworkManager": ""
}
}

View File

@ -13,4 +13,7 @@ if [ -e "/etc/sysconfig/network" ] ; then
# Persistently try to gain a dhcp address
grep -v -q '^PERSISTENT_DHCLIENT' /etc/sysconfig/network && echo 'PERSISTENT_DHCLIENT=yes' >> /etc/sysconfig/network
# since we are running on centos only no need to gate this behind an if statement
systemctl enable NetworkManager.service
fi