Fix puppet-firewalld: puppet fails with unknown type of string error

To manage firewalld on a desktop, I use the module created by Craig Dunn available at https://github.com/crayfishx/puppet-firewalld. Recently, I came across this issue for the second time after restarting puppetserver: # puppet agent -vt Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/firewalld_rich_rule: /etc/puppetlabs/code/modules/firewalld/lib/puppet_x/firewalld/property/rich_rule_action....

September 18, 2018 · 2 min · 224 words · kenno

Puppetserver failed to start after upgrading to 2.5.0

I upraded puppetserver from 2.4.0 to 2.5.0 on a server running Centos 6.8. Then, puppetserver no longer starts. The log (I think it was puppetsrver-daemon.log) said: As the error reported, /etc/puppetlabs/puppetserver/bootstrap.cfg was not there. The disappearance must have happened during the puppetserver upgrade. I can confirm this by looking at my backup directory and finding the boostrap.cfg file there: /srv/backup/etc/puppetlabs/puppetserver/bootstrap.cfg. According to this issue #1247, the boostrap.cfg file is broken into 2 files and relocated to a different directories....

August 15, 2016 · 1 min · 148 words · kenno

Puppet service resource provider

Well, first of all I think the title of this post won’t entirely reflect its content. However, I need to go ahead and post this now. At work, We’ve been having issues with cups service not running on some Kubuntu 14.04 desktops. This should not happen since even if cups service is dead, we have Puppet agent running on each machine to check and make sure that ‘cups’ is running else will be automatically restarted....

December 16, 2015 · 2 min · 278 words · kenno

Disable puppet-lint class inheriting from params class

I normally use Vim to edit Puppet modules and manifests codes. However, recently I just found out about Atom editor, and quite like it. Out of the box, Atom supports many programming languages by providing syntax highlight. There are hundreds of Packages available which provide more functionalities such as make Atom to behave like a Vi editor, support Puppet codes, etc. As mentioned earlier, Atom provides syntax highlighting for various programming languages; well except Puppet....

June 18, 2015 · 1 min · 179 words · kenno

របៀបលុបណូត​ចេញ​ពី Puppet master

នៅ​កន្លែង​ធ្វើ​ការ​ ខ្ញុំ​ប្រើ​ Puppet ដើម្បី​គ្រប់​គ្រង​ ម៉ាស៊ីន​ជា​ច្រើន។ ជួនកាល​ខ្ញុំ​ត្រូ​វការលុប​ម៉ាស៊ីន​ចេញ ពី Puppet master ដោយ​សារ​ម៉ាស៊ីន​នោះ​លែង​ត្រូវ​ការហើយ។ នេះ​ជា​ជំហាន​ដែល​ត្រូវ​ធ្វើ៖ ១. លុបមាស៊ីន​ ឬ ណូត​នោះ​ពី puppet dashboard ២. លុប certificate របស់ម៉ាស៊ីននោះ​ចេញពី puppet master ដោយវាយ ខំម៉ាន # puppet cert clean node123.example.com ៣. ដោយសារ​ខ្ញុំ​ប្រើ PuppetDB ខ្ញុំ​ត្រូវ​លុប​ ណូត​នោះ ចេញ​ពី PuppetDB ដែរ # puppet node deactivate node123.example.com ខ្ញុំ​សរសេរ អត្ថបទ​នេះ ដើម្បី​រំលឹក​ខ្លួន​ឯង​ពេល​ខ្ញុំ​ត្រូវ​ការ​ធ្វើ​វា​ម្តង​ទៀត។ បើ​សិន​ជា​លោកអ្នក​ មាន​សំណូម​ពរ​ ឬ​សំណួរ​ទាក់ទង​នឹង​ ការប្រើប្រាស់ Puppet អាចសួរ​ខ្ញុំ​បាន៕

May 22, 2015 · 1 min · 52 words · kenno

Puppet agent hangs after loading facts

At my current work place, we use Puppet to manage desktop machines. Recently, I need to prepare an new image based on Ubuntu 14.04 LTS. To prepare an image, in brief, first thing is to install a fresh Ubuntu on a machine, compile and package lots of applications, and make change to configuration such as look and feels, etc. As mentioned earlier, I use Puppet to manage machine, so I store all customed configuration on the Puppet server....

April 22, 2014 · 2 min · 373 words · kenno

How to fix PuppetDB SSL error

If you don’t know what PuppetDB is, this post probably will not be any useful to you. But if you wanna find out or learn about it, here is the link: http://docs.puppetlabs.com/puppetdb/latest/index.html. For PuppetDB to work, we need to generate SSL certificates from a Puppet master’s SSL certificate. In my case, I need to re-configure this PuppetDB to a new Puppet mater which sits on the same server. Here’s how it was done:...

August 22, 2013 · 1 min · 133 words · kenno

Fix puppet-dashboard pending tasks

ផាប់ភិត​ដាសបត ឈប់​ដើរ​ ហើយ​ pending tasks មាន​ប្រ​ហែល​ជាង ២០០០។ មិន​ដឹង​ថា​ជាមាន​វិធី​ល្អ​ សំរាប់​ជួសជុល​បញ្ហា​នេះទេ ប៉ុន្តែខ្ញុំ​អាច ប្រើវិធីដូចនេះ អោយវារត់​ យ៉ាងយូរ​ បន្ទាប់​មក puppet-dashboard-worker ក៏ចាប់ផ្តើម​ដើរវិញ

April 30, 2013 · 1 min · 16 words · kenno

Turn on puppet syntax highlight in vim

On Debian/Ubuntu: $ sudo apt-get install vim-puppet $ ln -s /usr/share/vim/addons/syntax/puppet.vim ~/.vim/plugin/

September 21, 2012 · 1 min · 12 words · kenno