Puppet https://tech.feedyourhead.at/ en facts2dw https://tech.feedyourhead.at/content/facts2dw <span class="field field--name-title field--type-string field--label-hidden">facts2dw</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>facts2dw.rb&nbsp; is a simple script which converts ansible(tested with&nbsp;1.9.2)&nbsp; facts into dokuwiki-format and uploads it via xmlrpc-interface into dokuwiki This script uses http-basic-authentication and ssl to login into dokuwiki. Ansible caches all the facts in &lt;ANSIBLE-DIR&gt;/facts so it is quite easy to import all facts into dokuwiki using the following line:</p> <pre> <code> for i in `ls *`; do facts2dw.rb $i; done </code></pre> <p>To upload all the changes whenever they occur I would suggest to use inotify. It is very easy to change this script to use puppet-facts instead of ansible-facts. If puppetdb is installed all the facts can fetched via the rest interface. It's just a matter of few lines. Of course the jason-structur will look different, but it will be easy to modify this very simple script. I would recommend to use the debug-code which executes 'pp', to dump the jason-hash.</p> <p>BTW: <a href="https://www.dokuwiki.org/devel:xmlrpc">don't forget to configure the xmlrpc-access in dokuwiki proberly!</a></p> <p>&nbsp;</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/hoti" typeof="schema:Person" property="schema:name" datatype="">Hoti</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sep 24 2015</span> <div class="clearfix text-formatted field field--name-field-md5sum field--type-text field--label-above"> <div class="field__label">md5sum</div> <div class="field__item"><p>9f419544609f2539f79390e8f121a678</p> </div> </div> <div class="clearfix text-formatted field field--name-field-sha256sum field--type-text field--label-above"> <div class="field__label">sha256sum</div> <div class="field__item"><p>d25806bd0d8edf36caf6405e450c9dcd5e40ae5fa7d7ee16c6aabc5ecc1f090b</p> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class="field__items"> <div class="field__item"><a href="/tags/downloads" hreflang="en">Downloads</a></div> <div class="field__item"><a href="/tags/ruby" hreflang="en">Ruby</a></div> <div class="field__item"><a href="/tags/ansible" hreflang="en">Ansible</a></div> <div class="field__item"><a href="/tags/puppet" hreflang="en">Puppet</a></div> <div class="field__item"><a href="/Programming" hreflang="en">Programming</a></div> <div class="field__item"><a href="/tags/sysadmin" hreflang="en">Sysadmin</a></div> </div> </div> <section class="field field--name-comment-node-download field--type-comment field--label-hidden comment-wrapper"> </section> Thu, 24 Sep 2015 13:18:36 +0000 Hoti 111 at https://tech.feedyourhead.at Puppet4: First Impressions https://tech.feedyourhead.at/content/puppet4-first-impressions <span class="field field--name-title field--type-string field--label-hidden">Puppet4: First Impressions</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><a href="https://puppetlabs.com/blog/say-hello-open-source-puppet-4"><img alt="" src="http://tech.feedyourhead.at/sites/tech.feedyourhead.at/files/pictures/puppetlabs.png" style="height: 400px; width: 400px;" /></a></p> <p>Puppet 4 is out now. Puppet is a very useful configuration management system. To use such systems has many advantages like:</p> <ul> <li>reuse of configuratons(recipe)</li> <li>mass-deployment of configurations</li> <li>avoidance of mistakes because of automated configurations</li> <li>documentation</li> </ul> <p>&nbsp; This release of puppet has some interesting and a few challenging changes. In the past, a common puppet installation was a set of tools. Since puppet3 I use hiera to divide the puppet-code from the configuration-data, puppetdb to store and reuse facts and reports and mcollective for orchestration of all agents. In puppet4 most of those tools are combined and integrated in one package.</p> <h3>Some changes:</h3> <p>Puppet4 now comes with hiera, mcollective and puppet. All configurations are in one directory, so the configuration-path's changed. They splitted the configurations for puppet-code from the puppet-server configuration.</p> <p>Apache isn't neccessary anymore, the puppetserver can handle all the connections by itself.</p> <p>Because of this all-in-one-package, it's easier to avoid version quirks. If you install the same puppet-package on server and agents, you could be sure that this versions will work together well.</p> <p>Puppet4 has some syntax changes. For example: hyphen(-) is not allowed anymore in classnames and the future parser is now default.</p> <p>Hiera: it's still hard to find parse-errors in hiera <img alt="wink" height="23" src="http://tech.feedyourhead.at/sites/all/libraries/ckeditor/plugins/smiley/images/wink_smile.png" title="wink" width="23" /></p> <h3>Installation:</h3> <p>It's very strange, but it was quite hard for me to find the <a href="https://puppetlabs.com/blog/welcome-puppet-collections">installation packages</a>.</p> <h3>Conclusion:</h3> <p>There are many changes in puppet4. I upgraded from puppet2 to puppet4 and therefor it was a lot of work to do. I think that puppetlabs did a great work and I like the idea of packaging all important tools. For me this is the right direction for puppet.</p> <h3>Interesting Links:</h3> <ul> <li>https://puppetlabs.com/blog/say-hello-open-source-puppet-4</li> <li>https://puppetlabs.com/blog/welcome-puppet-collections</li> <li>https://puppetlabs.com/blog/release-candidate-open-source-puppet-4.0</li> </ul> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/hoti" typeof="schema:Person" property="schema:name" datatype="">Hoti</span></span> <span class="field field--name-created field--type-created field--label-hidden">May 16 2015</span> <div class="field field--name-field-tagies field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class='field__items'> <div class="field__item"><i class="fa fa-tags"></i> <a href="/Linux" hreflang="en">Linux</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/sysadmin" hreflang="en">Sysadmin</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/puppet" hreflang="en">Puppet</a></div> </div> </div> <section class="field field--name-comment-node-blog field--type-comment field--label-hidden comment-wrapper"> </section> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class='title comment-form__title'> <i class="fa fa-comments-o"></i> Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=85&amp;2=comment&amp;3=comment" token="ufXfbn79uHOSWXxHGxLsZ5_R_iaIuBW6NTVHF2mTWsc"></drupal-render-placeholder> </section> Sat, 16 May 2015 09:03:00 +0000 Hoti 85 at https://tech.feedyourhead.at puppetdb: unable to get local issuer certificate.. https://tech.feedyourhead.at/content/puppetdb-unable-get-local-issuer-certificate <span class="field field--name-title field--type-string field--label-hidden">puppetdb: unable to get local issuer certificate..</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Today I updated puppet and installed puppetdb. After the installation I tried to connect my puppetmaster with the puppetdb. As soon as I made a "puppet agent -t" I recieved this error:</p> <pre><code> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for puppet.example.com to PuppetDB at puppet.example.com:8081: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [unable to get local issuer certificate for /CN=puppet.example.com] Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run </code></pre> So I fixed it by generating a new certificate: <pre><code> mv /etc/puppetdb/ssl /etc/puppetdb/ssl.bak puppetdb-ssl-setup -f /etc/init.d/puppetdb restart </code></pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/hoti" typeof="schema:Person" property="schema:name" datatype="">Hoti</span></span> <span class="field field--name-created field--type-created field--label-hidden">Apr 27 2015</span> <div class="field field--name-field-tagies field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class='field__items'> <div class="field__item"><i class="fa fa-tags"></i> <a href="/Linux" hreflang="en">Linux</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/sysadmin" hreflang="en">Sysadmin</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/puppet" hreflang="en">Puppet</a></div> </div> </div> <section class="field field--name-comment-node-blog field--type-comment field--label-hidden comment-wrapper"> </section> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class='title comment-form__title'> <i class="fa fa-comments-o"></i> Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=76&amp;2=comment&amp;3=comment" token="sJ_UIyQ90zvYFCIevMbx_95Z7pdNofcckWbJLUB-ZJY"></drupal-render-placeholder> </section> Mon, 27 Apr 2015 21:46:26 +0000 Hoti 76 at https://tech.feedyourhead.at Puppet: Have a look at puppetboard https://tech.feedyourhead.at/content/puppet-have-look-puppetboard <span class="field field--name-title field--type-string field--label-hidden">Puppet: Have a look at puppetboard</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><a href="https://github.com/puppet-community/puppetboard"><img alt="" src="https://raw.githubusercontent.com/puppet-community/puppetboard/master/screenshots/overview.png" style="width: 1024px; height: 533px;" /></a></p> <p>&nbsp;</p> <p>I messed around with puppet-dashboard for a while. The workers didn't work properly and the disk was filling up with reports. So I looked around for alternatives and just found a very nice one. <a href="https://github.com/puppet-community/puppetboard">Puppetboard</a> is a very nice alternative if you already use <a href="https://docs.puppetlabs.com/puppetdb/latest/index.html">PuppetDB</a>. Puppetboard is just a webinterface for monitoring the changes on your puppet hosts. It's written in python and easily installed. Since I use this neat little tool, all the mess with my reports immediatly ended.</p> <p><br /> &nbsp;</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/hoti" typeof="schema:Person" property="schema:name" datatype="">Hoti</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mar 05 2015</span> <div class="field field--name-field-tagies field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class='field__items'> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/puppet" hreflang="en">Puppet</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/sysadmin" hreflang="en">Sysadmin</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/Linux" hreflang="en">Linux</a></div> </div> </div> <section class="field field--name-comment-node-blog field--type-comment field--label-hidden comment-wrapper"> </section> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class='title comment-form__title'> <i class="fa fa-comments-o"></i> Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=59&amp;2=comment&amp;3=comment" token="7TwELH5nMY2Hq4KRJUuAhyy9Jq-v_Sg6id8ywNlffjw"></drupal-render-placeholder> </section> Thu, 05 Mar 2015 12:02:59 +0000 Hoti 59 at https://tech.feedyourhead.at