archive-ca.com » CA » D » DEFUNCT.CA

Total: 226

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Query chef-server API from ruby script | boompty boomp
    script require rubygems require chef config require chef log require chef rest chef server url https api opscode com organizations orgname client name clientname signing key filename File dirname FILE chef client pem rest Chef REST new chef server url client name signing key filename nodes rest get rest nodes JSON create id nodes keys each do node name node rest get rest nodes node name puts node name end Finally kallistec s reasoning kallistec mattt you have two options 1 require chef node your REST calls will return fully inflated Chef Node objects 2 JSON create id gtfo this will defeat the object inflation and you ll get a Hash back mattt kallistec 2 works fine so this behaviour is expected kallistec mattt it s a known thing the json gem that we use by default looks for a key json class when it s parsing and if that exists it looks up that class like Chef Node and calls class json create kallistec really early on we decided to use that behavior kallistec now we don t like it so much kallistec but it will take a buch of work to get rid of Hope this helps This

    Original URL path: http://blog.defunct.ca/2013/02/01/query-chef-server-api-from-ruby-script/ (2015-04-05)
    Open archived version from archive


  • Linux | boompty boomp
    note that this is not a production ready installation document As the title suggests this is a fast and dirty installation of Graphite for testing and assumes you re installing on a new virtual machine dedicated to Graphite This will break Continue reading Posted in Linux Comments Off Cleanly creating a Fedora 14 xen domU from an existing Fedora 14 VM Posted on February 13 2011 by admin I recently found myself wanting to use a Fedora 14 xen domU on my Debian Lenny dom0 but kept running into problems trying to build Fedora VMs using xen tools Although I previously wrote about creating VMs using qemu I didn t Continue reading Posted in Linux Tagged xen 1 Comment mdadm recovery speeds Posted on June 16 2010 by admin The minimum and maximum speeds can be set via proc sys dev raid speed limit min and proc sys dev raid speed limit max These are system wide values and affect all md block devices If you wish to alter the speeds for a specific block device overriding the system wide values this can Continue reading Posted in Linux Leave a comment Update EveryDNS w a dynamic IP Posted on April 28 2010 by admin Although EveryDNS has a supported perl script for updating a DNS record w a dynamic IP I needed something that worked through a proxy and couldn t entirely figure out how to hack eDNS pl to make it to work Looking at Continue reading Posted in Linux Ruby Leave a comment screen Posted on April 22 2010 by admin My screen fu is a bit weak I ll be using this post to document some useful commands for future reference Firstly the following key combo brings up a listing of windows allowing you to scroll up

    Original URL path: http://blog.defunct.ca/category/linux/ (2015-04-05)
    Open archived version from archive

  • chef | boompty boomp
    common rb 43 in rescue in block in deep const get can t get const Chef Node uninitialized constant Chef Node ArgumentError Continue reading Posted in Linux Tagged chef Comments Off Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009

    Original URL path: http://blog.defunct.ca/tag/chef/ (2015-04-05)
    Open archived version from archive



  • pip uninstall broken on Debian Squeeze | boompty boomp
    scripts 2 6 swift orphans from 644 to 755 changing mode of build scripts 2 6 swift proxy server from 644 to 755 changing mode of build scripts 2 6 swift recon from 644 to 755 changing mode of build scripts 2 6 swift recon cron from 644 to 755 changing mode of build scripts 2 6 swift ring builder from 644 to 755 changing mode of build scripts 2 6 swift temp url from 644 to 755 changing mode of usr local bin swift account audit to 755 changing mode of usr local bin swift object expirer to 755 changing mode of usr local bin swift proxy server to 755 changing mode of usr local bin swift container replicator to 755 changing mode of usr local bin swift container sync to 755 changing mode of usr local bin swift orphans to 755 changing mode of usr local bin swift get nodes to 755 changing mode of usr local bin swift drive audit to 755 changing mode of usr local bin swift dispersion populate to 755 changing mode of usr local bin swift account reaper to 755 changing mode of usr local bin swift object replicator to 755 changing mode of usr local bin swift init to 755 changing mode of usr local bin swift dispersion report to 755 changing mode of usr local bin swift oldies to 755 changing mode of usr local bin swift ring builder to 755 changing mode of usr local bin swift form signature to 755 changing mode of usr local bin swift container server to 755 changing mode of usr local bin swift container updater to 755 changing mode of usr local bin swift bench to 755 changing mode of usr local bin swift object info to 755 changing mode of usr local bin swift recon to 755 changing mode of usr local bin swift to 755 changing mode of usr local bin swift object server to 755 changing mode of usr local bin swift object updater to 755 changing mode of usr local bin swift container auditor to 755 changing mode of usr local bin swift account auditor to 755 changing mode of usr local bin swift account server to 755 changing mode of usr local bin swift recon cron to 755 changing mode of usr local bin swift object auditor to 755 changing mode of usr local bin swift account replicator to 755 changing mode of usr local bin swift temp url to 755 Successfully installed swift Cleaning up root diamondbuilder pip freeze grep swift swift 1 4 8 root diamondbuilder pip uninstall swift Uninstalling swift Proceed y n y Successfully uninstalled swift root diamondbuilder pip freeze grep swift swift 1 4 8 root diamondbuilder Fortunately I found this and this which indicates the issue lies w Debian s python setuptools 0 6 14 4 Anyway using that info I did root diamondbuilder cd usr local lib python2 6 dist packages root diamondbuilder usr local lib python2 6 dist packages mv swift

    Original URL path: http://blog.defunct.ca/2012/05/09/pip-uninstall-broken-on-debian-squeeze/ (2015-04-05)
    Open archived version from archive

  • python | boompty boomp
    421Kb 421Kb downloaded Running setup py egg info for package Continue reading Posted in Linux Tagged python Comments Off Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008

    Original URL path: http://blog.defunct.ca/tag/python/ (2015-04-05)
    Open archived version from archive

  • Nagios servicedependency | boompty boomp
    configuration in place I noticed that I was sometimes getting a notification for load avg 5m swap usage and then disk usage since this was the order that these services were being checked Unfortunately I couldn t find a way to configure the order in which the services were checked but fortunately did find the following here One important thing to note is that by default Nagios will use the most current hard state of the service s that is are being depended upon when it does the dependeny checks If you want Nagios to use the most current state of the services regardless of whether its a soft or hard state enable the soft state dependencies option So in my case the current HARD state of disk usage wasn t UNKNOWN when the other checks failed and therefore these services failed first and sent notifications I ve since set soft state dependencies 1 in etc nagios3 nagios conf and hope that this helps in reducing the amount of unnecessary notifications I get when there s a node or snmpd outage This entry was posted in Linux and tagged nagios Bookmark the permalink Fast and dirty install of Graphite on

    Original URL path: http://blog.defunct.ca/2012/05/09/nagios-servicedependency/ (2015-04-05)
    Open archived version from archive

  • nagios | boompty boomp
    machine so I could use my Nagios server to do local service resource monitoring on that machine but noticed apt get tried to pull in a lot of dependencies for stuff that Continue reading Posted in Linux Tagged debian nagios Leave a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010

    Original URL path: http://blog.defunct.ca/tag/nagios/ (2015-04-05)
    Open archived version from archive

  • Fast and dirty install of Graphite on Debian Squeeze | boompty boomp
    storage schemas conf example storage schemas conf Graphite depends on a number of other packages and I ve made every attempt to grab stuff from stock apt repos rather than building unnecessarily from source To see what s missing run cd root graphite python check dependencies py This should return something like this python check dependencies py FATAL Unable to import the cairo module do you have pycairo installed for python 2 6 6 FATAL Unable to import the django module do you have Django installed for python 2 6 6 FATAL Unable to import the tagging module do you have django tagging installed for python 2 6 6 WARNING Unable to import Interface from zope interface Without it you will be unable to run carbon on this server WARNING Unable to import the mod python module do you have mod python installed for python 2 6 6 mod python is one of the most common ways to run graphite web under apache Without mod python you will still be able to use the built in development server which is not recommended for production use wsgi or other approaches for production scale use are also possible without mod python WARNING Unable to import the memcache module do you have python memcached installed for python 2 6 6 This feature is not required but greatly improves performance WARNING Unable to import the ldap module do you have python ldap installed for python 2 6 6 Without python ldap you will not be able to use LDAP authentication in the graphite webapp WARNING Unable to import the twisted package do you have Twisted installed for python 2 6 6 Without Twisted you cannot run carbon on this server WARNING Unable to import the txamqp module this is required if you want to use AMQP Note that txamqp requires python 2 5 or greater 3 necessary dependencies not met Graphite will not function until these dependencies are fulfilled 6 optional dependencies not met Please consider the warning messages before proceeding Now to get this stuff installed apt get install python cairo apt get install python django tagging apt get install python twisted apt get install python memcache apt get install libapache2 mod wsgi I don t know enough about mod python which we re supposed to install but the sample vhost configuration below refers to mod wsgi so I installed that instead Once that s been completed you can re run check dependencies py and if all the necessary dependencies are met then python setup py install Now we configure Apache and modify the sample vhost configuration file provided rm etc apache2 sites enabled 000 default cp a examples example graphite vhost conf etc apache2 sites enabled graphite cp a conf graphite wsgi example opt graphite conf graphite wsgi sed i s DJANGO ROOT contrib admin media usr share pyshared django contrib admin media etc apache2 sites enabled graphite sed i s WSGISocketPrefix etc httpd wsgi WSGISocketPrefix var run apache2 wsgi etc apache2

    Original URL path: http://blog.defunct.ca/2012/01/23/fast-and-dirty-install-of-graphite-on-debian-squeeze/ (2015-04-05)
    Open archived version from archive