Skip to content

Instantly share code, notes, and snippets.

@remoteur
Last active February 23, 2016 17:19
Show Gist options
  • Save remoteur/7d151744f00df5f771ef to your computer and use it in GitHub Desktop.
Save remoteur/7d151744f00df5f771ef to your computer and use it in GitHub Desktop.
miq_install
sudo yum -y install git-all memcached postgresql-devel postgresql-server libxml2-devel libxslt-devel gcc-c++ gnupg graphviz which graphviz-ruby
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl start memcached
sudo systemctl enable memcached
sudo sh -c "echo postgres:smartvm | chpasswd"
sudo -u postgres initdb -D /var/lib/pgsql/data
sudo systemctl start postgresql
sudo systemctl enable postgresql
sudo -u postgres psql -c "CREATE ROLE root SUPERUSER LOGIN PASSWORD 'smartvm'"
sudo gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | sudo bash -s stable
source /etc/profile.d/rvm.sh
rvmsudo rvm install 2.2.2
bash -l -c 'rvm use 2.2.2 --default'
sudo usermod -a -G rvm `whoami`
newgrp rvm
git clone https://github.com/ManageIQ/manageiq.git
cd manageiq
source $(rvm 2.2.2 do rvm env --path)
gem install bundler -v "~>1.8.4"
bundle install --without qpid:metric_fu
cp config/database.pg.yml config/database.yml
cp certs/v2_key.dev certs/v2_key
bundle exec rake evm:db:reset
bundle exec rake db:seed
bundle exec rake evm:start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment