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 →

Setup LDAP authentication in CentOS (openldap+sssd)


1) Install openldap server in CentOS 6.5 yum install -y openldap* 2) Copy the sample slapd.conf configuration cp /usr/share/openldap-servers/slapd.conf.obsolete /etc/openldap/slapd.conf 3) Generate encrypted password for later use slappasswd 4) Modify /etc/openldap/slapd.conf, use the encrypted password created in above step. #TLSCACertificatePath /etc/openldap/certs #TLSCertificateFile "\"OpenLDAP Server\"" #TLSCertificateKeyFile /etc/openldap/certs/password database monitor access to * by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read by … Continue reading Setup LDAP authentication in CentOS (openldap+sssd) →

Install SVN in CentOS


1) Install the SVN serveryum install -y subversion mod_dav_svnModify /etc/httpd/conf.d/subversion.confmkdir /etc/svn/htpasswd -cm /etc/svn/users jchenhtpasswd -m /etc/svn/users testmkdir /var/www/svncd /var/www/svnsvnadmin create mylabchown -R apache.apache mylabchcon -R -t httpd_sys_content_t mylabservice httpd restartchkconfig httpd on2) Intall the SVN clientyum install -y subversion

Build Master/ Slave DNS in CentOS


  1) Set up master DNS server (CentOS 6.5) yum install -y bind* Modify /etc/named.conf Create the zone files: /var/named/mylab.local /var/named/56.168.192.in-addr.arpa service named start chkconfig named on 2) Set up slave DNS server (CentOS 6.5) yum install -y bind* Modify /etc/named.conf service named start chkconfig named on 3) Reload the zone whenever the zone file … Continue reading Build Master/ Slave DNS in CentOS →