Skip to content

Instantly share code, notes, and snippets.

@sjha4
Last active June 2, 2017 20:46
Show Gist options
  • Select an option

  • Save sjha4/f3f9e6671bb19f6c90f48d420593971d to your computer and use it in GitHub Desktop.

Select an option

Save sjha4/f3f9e6671bb19f6c90f48d420593971d to your computer and use it in GitHub Desktop.
cd forklift/
vi boxes.yaml #check the dev boxes included
vagrant up centos7-devl1
#WAIT..........................
vagrant ssh centos7-devl1
cd /usr/share/katello-installer-base/
mv katello /tmp/
yum install git tig -y
git clone https://github.com/Katello/puppet-katello.git
ls
mv puppet-katello katello
ls
cd katello
git reset --hard 1b7963065ccba193213effc3875a9ae25a180670
foreman-installer --scenario katello-devel -v --disable-system-checks
#If error:
scp modules.tar into VM
untar and rm -rf /usr/share/katello-installer-base/modules
Again :
foreman-installer --scenario katello-devel -v --disable-system-checks
cd ~/foreman
source ./bashrc
bundle install
rake katello:reset
echo ":webpack_dev_server: false" >> ~/foreman/config/settings.yaml
cd ~/foreman
sed -ie "s/config.assets.debug = true/config.assets.debug = false/g" config/environments/development.rb
yum remove -y nodejs* npm
yum clean all
rpm -qa 'node|npm' | grep -v nodesource #should return no packages
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum install -y nodejs
cd /home/vagrant/foreman
npm install
sudo su - vagrant
cd ~/foreman
rake webpack:compile
#Might ask for bundle install
#Also if nokogiri fails
sudo yum install -y gcc ruby-devel zlib-devel
@sjha4

sjha4 commented Jun 2, 2017

Copy link
Copy Markdown
Author

echo ":webpack_dev_server: false" >> ~/foreman/config/settings.yaml
cd ~/foreman
sed -ie "s/config.assets.debug = true/config.assets.debug = false/g" config/environments/development.rb
sudo yum install -y npm
npm install
rake webpack:compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment