Puppet upgrade notes


I recently upgraded the Puppet server from 2.7.6 to 3.4.3. Here are some notes: 1) Puppet 3.x require ruby version 1.8.7 or newer. RHEL5 repo only has ruby version up to 1.8.5. 2) The Puppet-3.X installer is not available in neither EPEL5 nor EPEL6, only available in EPEL7. You have to use Puppetlabs repo in … Continue reading Puppet upgrade notes

ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails


I received such error 'Cannot add or update a child row: a foreign key constraint fails' when trying to import a new Puppet class (sys_yumversionlock) into Foreman via the smart proxy. Based on the error message, it should be database related. I am not a DBA, but I am interested to give a try, as … Continue reading ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails

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