QuicksearchPersonalArchivesCategoriesSyndicate This Blog |
Wednesday, October 17. 2012Capistrano - deploy sub directory from repository
We at Internetstores GmbH are using Capistrano to deploy our application www.fahrrad.de.
Our repository layout differs from the default capistrano needs. Our app is stored in an sub directory at our repository. So we want only to deploy with capistrano the sub directory 'symfony'. Since you can't configure this in Capistrano, you need the following Ruby code to override the default behavior of Capistrano: Monday, July 9. 2012More on Carnin-Eye
My graphs on Carnin Eye now looks more like Munin.
I'm working now on an nicer footer of the graphs, display cur/max/min values like munin. Tuesday, July 3. 2012Carnin Eye - Munin to Graphite bridge
Carnin Eye is an small ruby and Rails application that will connect munin-node on your servers with the power of Graphite.
munin-node plugin values are send to Graphite, the munin node plugin configuration is send via HTTP post to Carnin Eye Webinterface. The Carnin Eye webinterface translates the munin config into Graphite graphs. The Hosts Overview: The Host View: It does not work very well currently - more work is needed for the translation of munin stuff into Graphite, I will also add custom dashboard. See TODO file for more information. Carnin Eye Webinterfaces uses R.I.Pienaar great graphite-graph-dsl library. Update: Pull Request was merged into main version. Thanks! You can get Carnin Eye on Github. Saturday, April 7. 2012Git - pre-receive hook - validate tag names
I have written an git hook to validate tag names. We deploy our software with git tags.
These tags needs to fit our guidelines like "prod/2012-04-01_d1" this could be checked with my pre-receive hook available at github. After installing it into your hooks/ directory, you need to set the regular expression for the tag names: git config hooks.receivetagregexp '^prod\/[0-9]{4}-[0-9]{2}-[0-9]{2}_d[0-9]+$' Wednesday, September 14. 2011MCollective accepted into Debian sid/unstable
More than one year, after the ITP of MCollective was submitted, MCollective enters Debian unstable. (See #563951)
Thanks to Damien Raude-Morvan who upload ActiveMQ to Debian and applied my patch for running multiple instances of ActiveMQ with one Initscript. (See #634868) Also thanks to micah anderson from the Puppet Debian PKG team who checked my package and uploaded it into Debian. If you are running Debian sid you can simple install MCollective: apt-get install mcollective-client # installes the client stuff apt-get install mcollective # installes the MCollective Server You can use debconf to configure the MCollective options. The packages also suppports preseeding - so you can configure your MCollective on installation. Use Debconf to configure STOMP stuff: dpkg-reconfigure -plow mcollective-common mcollective-client mcollective Please see default preseed file at /usr/share/doc/mcollective-common/examples/mcollective.preseed included into mcollective-common package. An example ActiveMQ configuration is also included in the mcollective package. See /usr/share/doc/mcollective/examples/activemq.xml. For more information, please have a look at /usr/share/doc/mcollective/README.Debian. Tuesday, August 30. 20113DM2: Etch repository removed
The repository 3DM2/CLI for Etch was removed from http://jonas.genannt.name.
Thanks to IP Exchange GmbH for sponsoring my Debian packages. Thursday, June 23. 2011create documentation on-the-fly with puppet stored configuration
I have an define backup::directory() {} within my puppet catalog.
This define is used to backup an directory with rsnapshot from an production server onto an backup server: backup::directory { "/home/web/example.com": } For our internal sysadmin documentation we need to add this to our wiki. This is done via an script that generates an html overview: server.example.com If we add in our puppet configuration an new directory to backup, the documentation will be updated on-the-fly without any action from us. That's pretty cool - we also can use this to generate an overview of apache::sites::vhost {}. So every guy knows where an apache vhost is configured. You can get that code on github.com. ./puppet_documentation.rb --resource Backup::Directory --name "Directory Backup System" Saturday, May 21. 2011SSH public key distribution with puppet
The last years I have used several tools to distribute the public ssh keys of my users across the servers but they don't fit anymore. I use puppet for my infrastructure but the build in puppet feature ssh_authorized_key does not fit.
I have different users across my servers and same users on many servers (e.g. web farms). One public ssh key can be an member of:
![]() I have created an Webapp with an ajax interface. You can drag & drop the ssh key groups or ssh keys to an user. The key will be deployed via an puppet parser function, you need the storeconfig feature in puppet. The webapp has got an own database (postgres) but you can merge the puppet storeconfig database to the server manager database (via an rake task). If you specify an regular expression on your server groups, an new merged server will be automatically added to the group and on the next run of puppet the keys from the server group will be deployed without any action from you. Puppet stuff:
![]() drag & drop the ssh keys or the ssh key groups from right to left into the users on the servers or server groups public ssh key distribution with puppet and ajax interface from Jonas on Vimeo. Wednesday, February 23. 2011Using Nagios for Wordpress Version Checks![]() I'm using Nagios to check for Wordpress Version updates and plugin updates - it's really nice. You don't need to login to wp-admin and check for version. An single PHP Cli script, that puppet installs and configures the nagios for every wordpress installation. Next step: create an all in wonder script that will upgrade wordpress and all plugins Update: Script: check_wordpress Tuesday, February 15. 2011Updated 3dm2/CLI packages from 3Ware
I have updated my 3Ware 3dm2 debian packages.
Now version 10.2 is available on jonas.genannt.name. Since debian squeeze is now stable, I provide also squeeze packages. The debian etch packages will be removed soon. **UPDATE** The 10.2 3md2 program on amd64 has got an problem: 3dm2: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference An workaround is, to use an IP address for the mailserver name: Bug #574726. Thanks Mourik! Thursday, November 11. 2010Nagios parents hosts with Puppet
I'm using my fact and stored configurations in puppet to get the running Xen domU in my system.
I also maintain my nagios configuration with puppet, with the Xendomains fact, I automatically set in the nagios configuration the parents for an domU system. The running domU on node1.fra.example.com is web1.fra.example.com. The nagios configuration will look like: define host{ Using this puppet parser function to fetch the dom0 for an domU system from the database. After calling that function I can build the nagios configuration and using virtual resources in puppet to transfer that information to my nagios server. Wednesday, November 10. 2010documentation of running domUs in Xen with puppet
If you are running some servers with Xen, you have the problem to figure out, where an domU is running.
If you are using puppet with stored configurations you need to install only the xendomains fact, that will be soon available in facter. With this data, I create the following graph on-the-fly - documentation done! Script is available on github. Thursday, September 9. 2010Postfix as backup MX with Postgrey
For keeping that stuff in my mind:
Monday, March 22. 2010Samba: Automatic printer driver download to Windows
There are tons of manuals, howtos and blog posts, but they all depend on old samba versions.
I have get it working with Samba 3.3.7 and CUPS 1.3.8 on an Debian Lenny system. smb.conf: [global] Tasks
Login to an Windows computer
Your printer queue will now blow up, because windows printer queue shows also the completed cups printer jobs. You have to add the following lines to cupsd.conf: PreserveJobFiles No Friday, March 19. 2010Server Manager with PuppetI have added an new feature to my Server Manager. You can now use that manager to maintain the /etc/network/interfaces file on debian. Server Manager - Debian Interfaces configuration from Jonas on Vimeo.
(Page 1 of 9, totaling 129 entries)
» next page
|