sher

607 posts

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 […]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) […]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 […]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 […]Read more »

RHCSA – About this Course

This course covers everything you need to know in order to pass the Red Hat Certified Systems Administrator (RHCSA) exam for RHEL 7. Becoming RHCSA certified proves that you have developed a strong proficiency in RHEL. RHEL is short for “RedHat Enterprise Linux” and as the name suggests, it’s a […]Read more »