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

Integrate Puppet to Foreman


Continue with my previous post - Build Foreman as Puppet ENC. Now it's the time to integrate the Puppet to Foreman. On the foreman server (foreman.mylab.local): 1) Add the puppet smart proxy 2) Import the environments via the smart proxy On puppet master (puppet.mylab.local): 1) Create the two executable ruby scripts to push/pull facts to/from foreman: … Continue reading Integrate Puppet to Foreman

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