Last active
August 29, 2015 14:10
-
-
Save alokjani/cc5e126c782d0f5c8d3b to your computer and use it in GitHub Desktop.
Puppet RJIL Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export https_proxy="http://10.135.x.x:3128/" | |
export http_proxy="http://10.135.x.x:3128/" | |
apt-get install git | |
apt-get install virtualbox | |
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb | |
dpkg -i vagrant_1.6.5_x86_64.deb | |
wget -O puppet.deb http://apt.puppetlabs.com/puppetlabs-release-trusty.deb | |
dpkg -i puppet.deb | |
apt-get update | |
apt-get install puppet | |
gem install librarian-puppet-simple | |
git clone https://github.com/jiocloud/puppet-rjil | |
cd puppet-rjil | |
vim Puppetfile # set git_protocol to https on first line | |
librarian-puppet install | |
mkdir modules/rjil | |
export env="vagrant-vbox" | |
vagrant box add 'ubuntu/trusty64' https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box | |
source newtokens.sh | |
echo $etcd_discovery_token # verify that token was received | |
export env="vagrant-vbox" | |
vagrant up etcd1 | |
# If you encounter a DHCP already exists issue then remove the preexisting DHCp server | |
VBoxManage list dhcpservers | |
VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet0 | |
Disable IPv6 on the host | |
vi /etc/sysctl.conf | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 | |
sysctl -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment