Skip to main content Skip to navigation
Web Communication Server Administration

Provision a WSU web server

These instructions can be used to provision a server with the WSU Web Provisioner, an open source configuration that WSU Web Communication uses to provision web servers on virtual machines running Linux.

Requirements

A familiarity with the Linux command line and a CentOS 6 server.

Web Communication runs several machines successfully provisioned with this configuration using:

  • CentOS images provided by WSU IT
  • The Amazon EC2 ami-05cf2265 image
  • The Puppet Labs centos-64-x64-puppetlabs Vagrant box

This configuration has not been tested with CentOS 7 or any Debian based Linux machines.

Steps

  • cd ~/
  • mkdir ~/provision-scripts
  • rm -rf wsu-web-provisioner
  • curl -L https://github.com/washingtonstateuniversity/WSU-Web-Provisioner/archive/master.tar.gz -o wsu-web-provisioner.tar.gz
  • tar -xvzf wsu-web-provisioner.tar.gz
  • mv WSU-Web-Provisioner-master wsu-web-provisioner
  • cp ~/wsu-web-provisioner/scripts/*.sh ~/provision-scripts/
  • sudo cp -fr ~/wsu-web-provisioner/provision/salt /srv/
  • sudo cp ~/wsu-web-provisioner/provision/salt/config/yum.conf /etc/yum.conf
  • sudo mkdir -p /srv/pillar
  • sudo sh ~/wsu-web-provisioner/provision/bootstrap_salt.sh -K stable
  • sudo cp ~/wsu-web-provisioner/provision/salt/minions/wsu-general.conf /etc/salt/minion.d
  • sudo sh -c "echo 'wsuwp-indie-wsm.wsu.edu-ec2' > /etc/salt/minion_id"
  • sudo touch /srv/pillar/top.sls
  • sudo touch /srv/pillar/network.sls
  • sudo touch /srv/pillar/mysql.sls
  • sudo vi /srv/pillar/top.sls
  • sudo vi /srv/pillar/network.sls
  • sudo vi /srv/pillar/mysql.sls
  • sudo sh provision-scripts/salt.sh