Puppet cron job configuration


In my lab, I want everything to be controlled by puppet. So I use puppet to set up the cron job that I mentioned in step 3) in the post Integrate puppet to foreman.# Push puppet node facts to foreman*/10 * * * * /etc/puppet/push_facts.rbThe manifest can be found here as well.class sys_cron::push_facts {cron { puppet_push_facts: … Continue reading Puppet cron job configuration

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