From 17bab54bff60ed9246e29107beb8167603d71727 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sat, 22 Jul 2017 00:07:56 -0700 Subject: [PATCH] first stab at a linux bootstrap --- bin/bootstrap/bootstrap_el.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bin/bootstrap/bootstrap_el.sh diff --git a/bin/bootstrap/bootstrap_el.sh b/bin/bootstrap/bootstrap_el.sh new file mode 100644 index 0000000..41b988f --- /dev/null +++ b/bin/bootstrap/bootstrap_el.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [[ $1 == 'now' ]]; then + # Install dot's dependencies + yum install -y centos-release-scl-rh.noarch + yum install rh-ruby24 rh-ruby24-ruby-devel rh-ruby24-rubygem-bundler rh-ruby24-rubygem-rake cmake + + # Make dot usable + cd ~/.dotfiles + /bin/scl enable rh-ruby24 'bundle install' + + # Install Puppet modules + /bin/scl enable rh-ruby24 'bundle exec rake dots:run_r10k' + + # Display tasks that can be run + echo 'These are the task that can now be executed:' + /bin/scl enable rh-ruby24 'bundle exec rake -T' |grep --color=never 'rake dots' +fi