I periodically update the my lab servers by running yum update all. But for some packages that I want them to stay at specific versions. For example, I don't want the httpd and bind get updated when I run yum update. According to the results of 'yum update httpd bind', I can see there are … Continue reading Use Puppet to manage yum version lock
Check osad service status in Satellite
RedHat Satellite server allows user to push the updates or run the command remotely in a 'real time' manner. The backend services for this feature are osa-dispatcher, jabberd and osad. osa-dispatcher periodically check the database to see if any clients have actions they need to perform. If there are, it sends the messages through jabberd … Continue reading Check osad service status in Satellite
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
Set up Puppet lab in docker
Just finished my first docker set up - building a puppet server and a puppet client in two separate containers. 1) My docker host is Fedora 20. [root@1004521 ~]# cat /etc/system-release Fedora release 20 (Heisenbug) 2) Install docker (https://docs.docker.com/installation/fedora/) [root@1004521 ~]# yum -y install docker-io [root@1004521 ~]# systemctl start docker [root@1004521 ~]# systemctl enable docker … Continue reading Set up Puppet lab in docker
Exclude configuration from puppet central management
In some cases, we need to test a configuration in a server that is managed by Puppet. Besides excluding the server in the manifest file, there are two more ways to do it: 1) Use "chattr +i <file>" to set the file to immunable to prevent even root from changing the file. Use "chattr -i" … Continue reading Exclude configuration from puppet central management