Just take my yesterday's post as a example, I want Puppet to add the 'ldap_user_uuid = notExistingAttributeName' to the /etc/sssd/sssd.conf [domain/XXX] section on all RHEL 7 servers. Here is how I did it: 1) First use augtool to check file to understand the structure of this file. Here you can see it defines [domain/XXX] section … Continue reading Puppet Augeas exmaple
Tag: Puppet
Puppet “allow_virtual” parameter
We have a mix puppet environment (2.7.6/3.7.4 clients and 3.7.4 server). After upgraded the puppet master from 2.7.6 to 3.7.4, we start to see a warning about 'allow_virtual'. On the puppet 2.7.6, it is 'Failed to apply catalog: Invalid parameter allow_virtual at ...' On the puppet 3.74, it is 'Warning: The package type's allow_virtual parameter … Continue reading Puppet “allow_virtual” parameter
Add extra options in puppet client daemon
Just learned this tip yesterday, /etc/sysconfig/puppet is the file what allows you to include extra options in the Puppet client daemon. The extra options are automatically attached to the puppet daemon whenever you start the Puppet service - 'service puppet start'. The trick is in the file /etc/init.d/puppet. start() { echo -n $"Starting puppet agent: … Continue reading Add extra options in puppet client daemon
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
Use Puppet to manage yum version lock
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