Skip to content

Instantly share code, notes, and snippets.

@lutter
Last active Dec 23, 2015
Embed
What would you like to do?
Sketch of what you need to do to install razor
#### Prerequistes
#### there are known better ways to do these
## Install PostgreSQL
$ yum install postgresql-server
$ chkconfig postgresql on
$ service postgresql initdb
$ su - postgres
> vi /var/lib/pgsql/data/pg_hba.conf
Add line 'host all all 127.0.0.1/32 md5' before all others
> createuser -P -SDR razor
> createdb -O razor razor_dev
> createdb -O razor razor_test
> createdb -O razor razor_prd
## Open up port 8080 in firewall
## - not needed if you run a proxy in front of Razor
$ echo '--port=8080:tcp' >> /etc/sysconfig/system-config-firewall
$ lokkit -q
## Create a razor user
$ yum -y install unzip
$ useradd razor
$ su - razor
#### Install Torquebox
## We do this as the Razor user, since 'torquebox deploy' further down will
## need to write into a subdirectory of TORQUEBOX_HOME
razor> curl -L -O http://torquebox.org/release/org/torquebox/torquebox-dist/3.0.0/torquebox-dist-3.0.0-bin.zip
razor> unzip torquebox-dist-3.0.0-bin.zip -d $HOME
razor> echo 'export TORQUEBOX_HOME=$HOME/torquebox-3.0.0' >> ~/.bashrc
razor> echo 'export JBOSS_HOME=$TORQUEBOX_HOME/jboss' >> ~/.bashrc
razor> echo 'export JRUBY_HOME=$TORQUEBOX_HOME/jruby' >> ~/.bashrc
razor> echo 'export PATH=$JRUBY_HOME/bin:$PATH' >> ~/.bashrc
razor> exec $SHELL -l
#### Install the Razor server
# Detached GPG signature at http://links.puppetlabs.com/razor-server-0.10.0.zip.sig
razor> curl -L -O http://links.puppetlabs.com/razor-server-0.10.0.zip
razor> unzip razor-server-0.10.0-full.knob -d razor-server-0.10.0
razor> cp config.yaml.sample config.yaml
razor> vi config.yaml
razor> jruby bin/razor-admin -e production migrate-database
razor> torquebox deploy --env production
razor> torquebox run --bind-address=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment