In Linux world, everything is presented as a file in /dev to users no matter it is disk, network adapter or any other devices. In the background, kernel manages all the devices. To be specific, through the device drivers in the kernel.The devices controlled by the same device driver have a common device number which … Continue reading Check major/ minor device number in Linux
Missing NIC in cloned VirtualBox VM
If you ever encounter similar error 'Device eth0 does not seem to be present, delaying initialization' in the cloned VirtualBox VM, the fix is to remove this file (/etc/udev/rules.d/70-persistent-net.rules) and reboot the VM. The reason is that the new cloned VM generates new MAC addresses which do not match the previous ones that have been recorded … Continue reading Missing NIC in cloned VirtualBox VM
Puppet push SSH key
The passwordless SSH worked well in my lab. Here is the how to:1) Let the user generate the key pair, then copy the .pub file to the modules/sys_key/files folder and name it after the user's name.2) Copy /etc/skel/.bashrc and .bash_profile to modules/sys_key/files folder.3) Create the the manifests files in module/sys_key/manifests. It can be download from … Continue reading Puppet push SSH key
Puppet push LDAP authentiation
Continue with my previous post of How to set up LDAP authentication in CentOS, I have made the Puppet be able to push it in my lab. Here is how it looks:The manifest file and files can be downloaded from here.class sys_ldap {package { 'openldap': ensure => installed, }package { 'openldap-clients': ensure => installed, require … Continue reading Puppet push LDAP authentiation
Set up foreman and foreman-proxy in CentOS
In my lab, I use 32 bits CentOS 6.5. So I need to use foreman 1.1 which I guess is the last version that supports 32 bits.1) Check wether the EPEL repostitory has been added by running 'yum repolist'. If it has not been installed, it can be found at http://dl.fedoraproject.org/pub/epel/62) Install the foreman 1.1 … Continue reading Set up foreman and foreman-proxy in CentOS