Mr Ghort

about

Production Cloud I: OS Setup

How to build a production cloud using Openstack Kilo, Puppet, & CentOS 7.

Part I: OS Setup

Install some boxen with CentOS 7.

# yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install -y puppet puppet-server git tmux wget vim tcpdump
# yum groupinstall -y 'Development Tools'                                                                                               
# puppet config set basemodulepath /etc/puppet/modules --section main
# systemctl start puppetmaster

Edit /etc/puppet/manifests/site.pp:

# things

puppet module install lex-dnsmasq puppet module install razorsedge-network

I like to install pdsh so I can parallel-ssh to my nodes:

    wget https://pdsh.googlecode.com/files/pdsh-2.29.tar.bz2
    tar xfj pdsh-2.29.tar.bz2
    ./configure --with-rcmd-rank-list=ssh --with-ssh --without-rsh --prefix=/opt/pdsh && make && make install
    echo 'export PATH=$PATH:/opt/pdsh/bin' >> /root/.bashrc
    echo 'export WCOLL=/root/pdsh_hostlist' >> /root/.bashrc
echo $HOSTNAME >> /root/pdsh_hostlist