Posts

Showing posts from January, 2015

Resolving issue installing Puppet automation on RHEL 6.5 via Yum

If you are decided to install Puppet for Linux automation for your network, you may encounter an issue same as what I encountered as describe below.

While installing Puppet via yum method, I ran into following dependency error:

# yum install puppet-server
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet-server.noarch 0:3.8.1-1.el6 will be installed
--> Processing Dependency: puppet = 3.8.1-1.el6 for package: puppet-server-3.8.1-1.el6.noarch
--> Running transaction check
---> Package puppet.noarch 0:3.8.1-1.el6 will be installed
--> Processing Dependency: hiera >= 1.0.0 for package: puppet-3.8.1-1.el6.noarch
--> Processing Dependency: facter >= 1:1.7.0 for package: puppet-3.8.1-1.el6.noarch
--> Processing Dependency: ruby-augeas for package: puppet-3.…

RHEL/CentOS 7 networking deprecated ifconfig

ifconfig networking command has been deprecated in RHEL 7.

Redhat suggest to use "ip" command instead of now legacy ifconfig or use a text user interface "nmtui" to control network manager.

After you have set ip/gateway/dns or dhcp setting in nmtui, you can restart the network as below:

# systemctl restart NetworkManager.service

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:16:ae:0e brd ff:ff:ff:ff:ff:ff
    inet 10.8.8.238/24 brd 10.8.8.255 scope global dynamic eth0
       valid_lft 3576sec preferred_lft 3576sec
    inet6 fe80::5054:ff:fe16:ae0e/64 scope link 
       valid_lft forever preferred_lft forever