DevOps Monkey Goodness

Posts in category Uncategorised

Using SSH Keys With TeamCity

Using SSH Keys With TeamCity

In general a good practice when it comes to security¬†and logins is to use SSH keys. ¬† TeamCity gives you the option to use SSH keys in the VCS config but it won’t work straight away. How to Configure TeamCity to Use an SSH key These steps presume that you know a little about SSH […]

Puppet Error No Implicit Conversion o...

Puppet Error No Implicit Conversion of String into Hash

Puppet Error This one had me scratching my head for a while (Puppet opensource 3.7.1) Error: Could not retrieve catalog from remote server: Error 400 on SERVER: no implicit conversion of String into Hash at /etc/puppet/modules/appfabric/manifests/appfabricinstaller.pp:3 on node myserver.somewhere Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run   The […]

Finish Puppet With PuppetDB, Enable I...

Finish Puppet With PuppetDB, Enable Inventory and Hiera – How to Series 4

In this part we’ll complete our Puppet master installation by adding PuppetDB, Heira and ensure are agents are collecting inventory information Part 1 – How to install puppet open source on virtual box Part 2 – How To install and Configure Puppet Dashboard  Part 3 – How to install and configure Puppet Open Source Agent on Windows […]

Configure Puppet With Apache and Pass...

Configure Puppet With Apache and Passenger – How To Series Part 4

So far we have a basic Puppet master up and running using WEBrick which is good for testing purposes but great for anything else.  Now we will remove WEBrick and run Puppet with Apache and Passenger. How to Install and Configure Puppet with Apache First install Apache and relevant dependencies:# yum -y install httpd httpd-devel […]

Install and Configure Puppet Open Sou...

Install and Configure Puppet Open Source Agent on Windows – How To Series 3

So far through the series we have got a basic Puppet Master and Puppet Dashboard running.  At this point we’ll start to add a new Windows 7 Puppet agent and apply a very basic Puppet manifest. Part 1 – How to install puppet open source on virtual box Part 2 – How To install and Configure Puppet […]

Configure Puppet Open Source Dashboar...

Configure Puppet Open Source Dashboard – How To Series Part 2

In part 1 of this how to series we installed a very basic master and agent setup, at this point there is no interface or database and we are using the built in web server for testing purposes. in part two we’ll install and configure the Puupet Dashboard. You can find the official Puppet guide […]

Install Puppet Open Source on Virtual...

Install Puppet Open Source on Virtual Box – How To Series 1

There are lots of guides out there and the official Puppet documentation is a bit all over the place so I thought I’d try and put something a bit more concise together to install Puppet Open Source and Puppet Dashboard onto Virtual Box. This series will start with the basics of installing Puppet Master onto […]

How to Parse XML in Nagios:

How to Parse XML in Nagios:

On my OpsView/Nagios journey my next task is to grab some XML from a URL and return critical if a certain node is found. Run the following as root to install the xpath module:cpan XML::XPath  Run the following:sudo su nagioscd /usr/local/nagios/libexecwget https://raw.github.com/ifunky/Nagios/master/check_http_xpath.plchmod +x check_http_xpath.pl  To test the plugin you can run something like:./check_http_xpath.pl -H server.name -u […]

How To Enable Internet Access On Cent...

How To Enable Internet Access On Centos 6.4 Virtual Box

This one took me a little while to work out being a Linux noob so hopefully this will help someone else out if not at least me again when I forget! Configure VirtualBox Internet Connection (Static IP) On Centos 6 In VirtualBox make sure you have configured the adapter in “bridged” mode:  Make sure you […]

How To Gather AWS Cloudwatch Metrics ...

How To Gather AWS Cloudwatch Metrics for OpsView

How    sudo gem install CloudyScripts mkdir /etc/cloutomate/ ssh-keygen -f /etc/cloutomate/cloutomate.pem chown nagios:nagios cloutomate.pem