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
Tag: Foreman
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
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