AWS – things to setup on new instance
install: montoring shell scripts sysstat
Immutable Cloud Infrastructure one container at a time
install: montoring shell scripts sysstat
You can use the nslookup command to find what ip address a url resolves to. But another way to do this is by using the dig command: $ dig google.com +short {list of ip address} This gives a list of ip addresses, since google.com website is load-balanced across several servers. […]
I had to install: Yum install epel-release Yum install curl Yum install libxml2 Yum install libxml2-devel yum install libcurl-devel Yum install rubygems yum install ‘gcc-c++’ Yum install ruby-devel yum -y install nodejs As normal user: run: $ Gem install bundler
This is really good guide: http://cloud.tekgoblin.com/2013/04/29/aws-guides-how-to-increase-your-ec2-linux-root-volume-size/ basically stop your instance, detach the primary volume (/dev/sda1), create a snapshot from this ebs volume, create a volume (with increased diskspace) from the snapshot, attach the new bigger volume to the ec2 instance, as /dev/sda1. start the instance again.
Protocol C is most commonly used: http://drbd.linbit.com/users-guide-8.4/s-replication-protocols.html Building a high-available failover cluster with Pacemaker, Corosync & PCS Use DRBD in a cluster with Corosync and Pacemaker on CentOS 7
deregister vm from spacewalk: rm /etc/sysconfig/rhn/systemid Upload rpm to spacewalk $ Rpm –addsign name.rpm $ Rhnpush -c {channel’s-label} –server localhost name.rpm https://fedorahosted.org/spacewalk/wiki/UploadFedoraContent
#!/usr/bin/env ruby require “erb” require ‘ostruct’ class Basicerb def initialize name @name = name @template = File.read(‘/root/index.erb’) end def render @person = OpenStruct.new @person.name = “John Smith” @person.age = 70 @person.pension = 300 ERB.new(“ Hello ERB World!! “).result( binding ) end end test = Basicerb.new “wow” puts test.render
{some command} if [ $? -eq 0 ]; then … else … fi
the dirty way aroung this is doing: $ yum install {package-name} –nogpgcheck But best practice is: first cd to: $ cd /etc/pki/rpm-gpg Then do a wget command, here’s an example: $ wget -O http://yum.theforeman.org/releases/1.8/RPM-GPG-KEY-foreman then import it into rpm db like this: $ rpm –import RPM-GPG-KEY-foreman You can list all […]
https://github.com/ripienaar/mcollective-vagrant On the agent, add the following near to the top of the file: # vim /etc/puppet/auth.conf path /run allow * Note: later on change the “*” to the fqdn of the puppetmaster fqdn. On the puppetmaster enable mcollective: $ cat /etc/foreman-proxy/settings.d/puppet.yml . . .# valid providers: # puppetrun (for […]