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 a PuppetDB SSL Error

If you don’t know what PuppetDB is, this post probably will not be useful to you. But if you want to learn about it, you can visit the official documentation: http://docs.puppetlabs.com/puppetdb/latest/index.html. For PuppetDB to work, it needs SSL certificates generated by a Puppet master. In my case, I needed to reconfigure an existing PuppetDB instance to use a new Puppet master that was running on the same server. Here’s how I did it: ...

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

Fix puppet-dashboard pending tasks

ផាប់ភិត​ដាសបត ឈប់​ដើរ​ ហើយ​ pending tasks មាន​ប្រ​ហែល​ជាង ២០០០។ # ps -ef | grep job www-data 4799 1 0 14:07 ? 00:00:00 delayed_job.0_monitor www-data 4804 1 0 14:07 ? 00:00:00 delayed_job.1_monitor root 8300 31461 0 15:22 pts/0 00:00:00 grep job មិន​ដឹង​ថា​ជាមាន​វិធី​ល្អ​ សំរាប់​ជួសជុល​បញ្ហា​នេះទេ ប៉ុន្តែខ្ញុំ​អាច ប្រើវិធីដូចនេះ # cd /usr/share/puppet-dashboard/ # rake RAILS_ENV=production jobs:work អោយវារត់​ យ៉ាងយូរ​ បន្ទាប់​មក puppet-dashboard-worker ក៏ចាប់ផ្តើម​ដើរវិញ # ps -ef | grep job www-data 4799 1 0 14:07 ? 00:00:00 delayed_job.0_monitor www-data 4804 1 0 14:07 ? 00:00:00 delayed_job.1_monitor www-data 5089 1 24 14:15 ? 00:20:43 dashboard/delayed_job.0 www-data 5094 1 24 14:15 ? 00:20:45 dashboard/delayed_job.1 root 8570 31461 0 15:41 pts/0 00:00:00 grep job

April 30, 2013 · 1 min · 101 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