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
#!/usr/bin/env bash | |
NEXUS_DEPLOY_VERSION=2.13.0 | |
NEXUS_PATCH_LEVEL=01 | |
echo "nexus: installing Nexus" | |
# Stop nexus | |
echo "nexus: Stop Nexus" | |
service nexus stop |
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
#!/usr/bin/env bash | |
su -l -c "curl -sSL https://gist.githubusercontent.com/ssmythe/4b86cd23b28861f504e6c7d8ac906d48/raw/edccfde60d7410f30814596a7f9d3c28430d2d27/install_ruby_2.3.1_via_rvm_no_docs.sh | bash" 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
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
if [ -f /etc/profile.d/rvm.sh ]; then | |
source /etc/profile.d/rvm.sh | |
else | |
source ~/.profile | |
fi | |
rvm reload | |
rvm --version | |
rvm install 2.3.1 |
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
# Rename this file to Vagrantfile | |
VAGRANTFILE_API_VERSION = '2' | |
# BRIDGES = [ 'en3: Thunderbolt Ethernet', 'en4: Thunderbolt Ethernet' ] | |
# CENTOS67_BOX_URL = 'http://boxes.local.tld/virtualbox/updated_centos_6.7.box' | |
# CENTOS67_BOX_NAME = 'updated/centos_6.7.box' | |
CENTOS67_BOX_NAME = 'bento/centos-6.7' | |
INSTALL_BASE_CENTOS6 = 'https://gist.githubusercontent.com/ssmythe/f88142c80076df5fac9b/raw/0574b105d06728dd1383460441375cbaa536684b/install-base-centos6.sh' |
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
#!/usr/bin/env bash | |
su -l -c "gem install capistrano --version 2.15.5" 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
#!/usr/bin/env bash | |
su -l -c "curl -sSL https://gist.githubusercontent.com/ssmythe/538e220a229b58cc084b1fb03407aad8/raw/7b9c348fc050bb0e959f81fff8c22493514ccc37/install_ruby_2.3.0_via_rvm_no_docs.sh | bash" 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
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
if [ -f /etc/profile.d/rvm.sh ]; then | |
source /etc/profile.d/rvm.sh | |
else | |
source ~/.profile | |
fi | |
rvm reload | |
rvm --version | |
rvm install 2.3.0 |
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
#!/usr/bin/env bash | |
# | |
# JAVA OPENJDK | |
# | |
echo "jenkins: Install Java" | |
# https://issues.jenkins-ci.org/browse/JENKINS-31102 | |
yum -y install java-1.8.0-openjdk |
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
#!/usr/bin/env bash | |
echo "verify_unicorn_running: Verifying Unicorn is running" | |
sleep 2 | |
COUNTER=0 | |
grep -q 'master process ready' /var/www/my_app/log/unicorn.log | |
while [[ $? -ne 0 && $COUNTER -lt 60 ]]; do | |
sleep 2 | |
let COUNTER+=2 | |
echo "verify_unicorn_running: Waiting for Unicorn to initialize... ($COUNTER seconds so far)" |
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
#!/usr/bin/env bash | |
echo "patch: patching /etc/dhcp/dhclient.conf" | |
sed -i "s/localhost/$(hostname)/g" /etc/dhcp/dhclient.conf | |
/sbin/service network restart | |
echo "patch: display hostname FQDN" | |
hostname -f |