]> git.evergreen-ils.org Git - contrib/masslnc/vmscripts.git/log
contrib/masslnc/vmscripts.git
5 years agoForgot the unzip command in the previous commit. master
Jason Stephenson [Wed, 20 Feb 2019 20:00:49 +0000 (15:00 -0500)]
Forgot the unzip command in the previous commit.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoUpdate websocketd to version 0.3.1.
Jason Stephenson [Wed, 20 Feb 2019 19:56:35 +0000 (14:56 -0500)]
Update websocketd to version 0.3.1.

Also, redirect websocketd message to /home/opensrf/websocketd.log.
Prior to this, websocketd's messages were going to buildeg.txt.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoUpdate scripts/postbuild.sh
Jason Stephenson [Wed, 20 Feb 2019 14:33:07 +0000 (09:33 -0500)]
Update scripts/postbuild.sh

Modify the postbuild.sh script to write out "npm run build-prod" and
"ng build --prod" to the buildeg.sh script when building the AngularJS
and Angular code, respectively.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoInstall phppgadmin on the VM.
Jason Stephenson [Wed, 5 Dec 2018 16:17:49 +0000 (11:17 -0500)]
Install phppgadmin on the VM.

Add some lines to the RUNASROOT part of buildeg.sh to install
phppgadmin and configure it to all connections from anywhere.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoStart apache2 rather than restart apache2.
Jason Stephenson [Wed, 5 Dec 2018 16:03:29 +0000 (11:03 -0500)]
Start apache2 rather than restart apache2.

Since apache2 is stopped higher up in the buildeg.sh script, we change
to starting apache2 towards the end.  Restart worked, but start makes
more sense.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoFix crontab generation
Jason Stephenson [Tue, 4 Dec 2018 20:55:43 +0000 (15:55 -0500)]
Fix crontab generation

The old cat with heredoc wasn't working to build the crontab properly
on Xenial in buildeg.sh.  We change it to use a sed command instead.
This also gives us a little more control over where the SHELL variable
goes in the output file.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoMake sure that memcached is running on the vm.
Jason Stephenson [Tue, 4 Dec 2018 19:35:38 +0000 (14:35 -0500)]
Make sure that memcached is running on the vm.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoMake sure that PostgreSQL starts.
Jason Stephenson [Tue, 4 Dec 2018 19:34:09 +0000 (14:34 -0500)]
Make sure that PostgreSQL starts.

Modify scripts/postbuild.sh to write a check to start PostgreSQL if it
is not running in buildeg.sh.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoSwitch to systemctl in buildeg.sh as written by scripts/postbuild.sh.
Jason Stephenson [Tue, 4 Dec 2018 19:32:42 +0000 (14:32 -0500)]
Switch to systemctl in buildeg.sh as written by scripts/postbuild.sh.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoBuild Web Staff Client and Websocketd
Jason Stephenson [Tue, 4 Dec 2018 16:28:16 +0000 (11:28 -0500)]
Build Web Staff Client and Websocketd

Modify the SSL README file to show how to combine the server
certificate and chain files into 1 file for websocketd and apache.

Add steps to script/postbuild.sh to write steps for web staff client
and websocketd to the buildeg.sh script:

1. Add ubuntu-$EGVMSUITE-developer target to Evergreen prerequisite
   installation.

2. Add web client JS installation steps.

3. Add eg2 Angular installation steps if the directory is present.

4. Download, install, and start websocketd.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoOnly Build Ubuntu 16.04 Xenial Xerus VMs
Jason Stephenson [Tue, 4 Dec 2018 14:25:50 +0000 (09:25 -0500)]
Only Build Ubuntu 16.04 Xenial Xerus VMs

Testing revealed that we cannot build Ubuntu 16.04 VMs and still build
VMs with older releases.  Since Xenial Xerus is the older LTS at this
point and Trusty Tahr (Ubuntu 14.04) will go out of LTS in April 2019,
we will focuse on Xenial.

I should also note that we cannot build Ubuntu 18.04 Bionic Beaver VMs
with vmbuilder, either.  The move to netplan for networking
configuration will require big changes to the vmbuilder templates, and
no one in the vmbuilder community seems to be taking that on.  This
could be the end of the road for our use of vmbuilder.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoPost Debian 7 Installation Support Removal Changes
Jason Stephenson [Mon, 3 Dec 2018 20:57:41 +0000 (15:57 -0500)]
Post Debian 7 Installation Support Removal Changes

Update scripts/postbuild.sh to check for apache/eg_startup before
copying it.  The file was moved to apache_24/eg_startup when Debian 7
Wheezy installation support was removed from Evergreen 3.2.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoAttempt Post-Build Changes for Xenial.
Jason Stephenson [Mon, 3 Dec 2018 20:54:09 +0000 (15:54 -0500)]
Attempt Post-Build Changes for Xenial.

Add files/configuration/ejabberd.yml and update scripts/postbuild.sh
for Ubuntu 16.04 Xenial Xerus guest VMs.

Signed-off-by: Jason Stephenson <jason@sigio.com>
5 years agoInitial Commit.
Jason Stephenson [Thu, 29 Nov 2018 18:55:21 +0000 (13:55 -0500)]
Initial Commit.

This commit comprises the code for the MassLNC vitual machine building
scripts as they appeared at the time of the commit.  This consists of
code initially written by Thomas Berezansky of Merrimack Valley
Library Consortium and subsequently modified by Kathy Lussier of
MassLNC and Jason Stephenson of MVLC and, later, CW MARS.

Signed-off-by: Jason Stephenson <jason@sigio.com>