Close

Register external service to consul

https://www.consul.io/docs/guides/external.html https://aws.amazon.com/blogs/aws/keeping-time-with-amazon-time-sync-service/ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html#configure-amazon-time-service $ curl -X PUT -d ‘{ “Node”: “aws-ntp”, “Address”: “169.254.169.123”, “Service”: { “Service”: “ntp” } }’ http://localhost:8500/v1/catalog/register nslookup of ntp.service.{{domain}} should now work. you can then populate /etc/ntp.conf with ‘ntp.service.{{domain}}’ using consul templates. In case you want to deregister this service from consul, run: $ curl –request PUT –data @deregister.json http://localhost:8500/v1/catalog/deregister where: […]

Read More

Puppet – Identifying dead puppet code using puppet ghostbuster

This is a how-to guide on using: https://github.com/camptocamp/puppet-ghostbuster First get this working so that you can access this gui dashboard: https://puppet.com/docs/puppetdb/5.1/maintain_and_tune.html#monitor-the-performance-dashboard Install rvm: $ gpg –keyserver hkp://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB $ \curl -sSL https://get.rvm.io | bash -s stable –ruby Check rvm install is successful: schowdhury@Shers-MacBook-Pro:~$ rvm –version rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, […]

Read More

Install Docker for mac using homebrew

Here’s the command I ran: brew install bash-completion brew cask install docker brew install kubectl brew cask install minikube Then go to the gui launcher and start up docker, and follow the prompts. Then open a terminal and you should fine the following cli tools installed. $ docker version Docker version 17.09.0-ce, build afdb6d4 $ […]

Read More

Get bash autocompletion working for docker cli on a mac

First install the following formulas: brew install bash-completion brew cask install docker Next via the gui launcher, find the docker icon and launch it, then follow the prompts. Then restart your bash terminal. Now run the following command to create a few symbolic links: ln -s /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion /usr/local/etc/bash_completion.d/docker ln -s /Applications/Docker.app/Contents/Resources/etc/docker-machine.bash-completion /usr/local/etc/bash_completion.d/docker-machine ln -s /Applications/Docker.app/Contents/Resources/etc/docker-compose.bash-completion […]

Read More

Docker – An apache ‘hello world’ example

Here we’re going to build a simple docker container that is running apache web server and then access it from your laptop’s web browser. We will be building our container using the official ubuntu docker image. First off, pull down the ubuntu image, by running: $ docker pull ubuntu Using default tag: latest latest: Pulling […]

Read More