arvados-dev.git
8 years ago8750: parallel deploy is working 8750-run-deploy-in-parallel
Nico Cesar [Tue, 14 Jun 2016 15:33:53 +0000 (11:33 -0400)]
8750: parallel deploy is working

in the old code there was a serial excecution that collected exitcodes
EXITCODE=$(($EXITCODE + $ECODE))

in the new code we'll have to re-think this. But this first commit actually deploys in parallel

8 years agoMerge branch '9309-centos7-uplaods-wip'
Brett Smith [Wed, 1 Jun 2016 19:27:38 +0000 (15:27 -0400)]
Merge branch '9309-centos7-uplaods-wip'

Refs #9309.

8 years ago9309: Add support for uploading centos7 packages. 9309-centos7-uplaods-wip
Brett Smith [Sat, 28 May 2016 03:31:56 +0000 (23:31 -0400)]
9309: Add support for uploading centos7 packages.

8 years ago9224: Update each TimestampFile after upload.
Brett Smith [Sat, 28 May 2016 03:24:13 +0000 (23:24 -0400)]
9224: Update each TimestampFile after upload.

This is a follow-up to 2fecb120e5b9be7a85f209e90114731f3e95f709.

8 years agoRemove a bunch of files that were moved to the arvados repository.
Ward Vandewege [Tue, 17 May 2016 01:00:08 +0000 (21:00 -0400)]
Remove a bunch of files that were moved to the arvados repository.

No issue #

8 years agoWe need a per-target last_upload timestamp file.
Ward Vandewege [Tue, 17 May 2016 00:54:39 +0000 (20:54 -0400)]
We need a per-target last_upload timestamp file.

refs #9224

8 years agoCWL build script maintenance. refs #8980
Peter Amstutz [Wed, 20 Apr 2016 20:24:29 +0000 (16:24 -0400)]
CWL build script maintenance.  refs #8980

8 years agoadding an extra script for parallel puppet runs
Nico Cesar [Sat, 26 Mar 2016 00:42:17 +0000 (20:42 -0400)]
adding an extra script for parallel puppet runs

refs #8750

8 years agoThe upload script now uses a per-distro tmp directory.
Ward Vandewege [Sat, 19 Mar 2016 16:41:54 +0000 (12:41 -0400)]
The upload script now uses a per-distro tmp directory.

No issue #

8 years agoFix backports dir search for PACKAGE="llfuse==0.41.1". refs #8345 8345-backports-version-fix
Tom Clegg [Wed, 16 Mar 2016 07:43:06 +0000 (03:43 -0400)]
Fix backports dir search for PACKAGE="llfuse==0.41.1". refs #8345

8 years agoMerge branch '8345-llfuse-unpin' refs #8345
Tom Clegg [Fri, 11 Mar 2016 18:35:13 +0000 (13:35 -0500)]
Merge branch '8345-llfuse-unpin' refs #8345

8 years ago8345: Need "yum install -y" to reliably install rpm packages.
Tom Clegg [Fri, 11 Mar 2016 17:28:53 +0000 (12:28 -0500)]
8345: Need "yum install -y" to reliably install rpm packages.

8 years ago8345: 8491: Downgrade to llfuse 0.41 until #8345 gets sorted out (but keep the fuse...
Tom Clegg [Fri, 11 Mar 2016 07:15:10 +0000 (02:15 -0500)]
8345: 8491: Downgrade to llfuse 0.41 until #8345 gets sorted out (but keep the fuse backports).

8 years agoGet the go binary from a http url instead of https, so that our
Ward Vandewege [Thu, 10 Mar 2016 19:06:38 +0000 (14:06 -0500)]
Get the go binary from a http url instead of https, so that our
transparent proxy can cache it.

No issue #

8 years agoBuild package for arvados-cwl-runner.
Ward Vandewege [Thu, 10 Mar 2016 19:05:21 +0000 (14:05 -0500)]
Build package for arvados-cwl-runner.

refs #8671

8 years agorefs #8558
radhika [Thu, 10 Mar 2016 16:39:40 +0000 (11:39 -0500)]
refs #8558
Merge branch '8558-add-cwl-jenkins'

8 years ago8558: add cwl to jenkins 8558-add-cwl-jenkins
radhika [Wed, 9 Mar 2016 19:39:30 +0000 (14:39 -0500)]
8558: add cwl to jenkins

8 years ago8345: Uninstall old llfuse from reused virtualenv, if necessary. 8345-llfuse-unpin
Tom Clegg [Mon, 7 Mar 2016 19:28:10 +0000 (14:28 -0500)]
8345: Uninstall old llfuse from reused virtualenv, if necessary.

8 years ago8345: Merge branch 'master' into 8345-llfuse-unpin
Tom Clegg [Mon, 7 Mar 2016 05:47:10 +0000 (00:47 -0500)]
8345: Merge branch 'master' into 8345-llfuse-unpin

8 years ago8345: Fix up log messages to show which distro/package is being built/tested.
Tom Clegg [Mon, 7 Mar 2016 05:46:08 +0000 (00:46 -0500)]
8345: Fix up log messages to show which distro/package is being built/tested.

8 years ago8345: Build contextlib2 backport, needed by python-llfuse on debian7.
Tom Clegg [Mon, 7 Mar 2016 05:44:46 +0000 (00:44 -0500)]
8345: Build contextlib2 backport, needed by python-llfuse on debian7.

8 years ago8345: Add build-essential to ubuntu1204 package-building image
Tom Clegg [Thu, 3 Mar 2016 18:02:41 +0000 (13:02 -0500)]
8345: Add build-essential to ubuntu1204 package-building image

8 years ago8345: Build and install new fuse libs before building llfuse.
Tom Clegg [Thu, 3 Mar 2016 01:05:26 +0000 (20:05 -0500)]
8345: Build and install new fuse libs before building llfuse.

8 years agoBuild arvbox instead of the old docker images.
Ward Vandewege [Wed, 2 Mar 2016 15:35:55 +0000 (10:35 -0500)]
Build arvbox instead of the old docker images.

refs #8231

8 years ago8345: Use a separate vendor/cache for each OS target. See dev.arvados.org/issues...
Tom Clegg [Wed, 2 Mar 2016 15:34:58 +0000 (10:34 -0500)]
8345: Use a separate vendor/cache for each OS target. See dev.arvados.org/issues/8345#note-11

8 years agoRemove arvbox from arvados-dev (now in arvados/tools) refs #8231
Peter Amstutz [Wed, 2 Mar 2016 15:24:08 +0000 (10:24 -0500)]
Remove arvbox from arvados-dev (now in arvados/tools) refs #8231

8 years agoMerge branch 'master' into 8345-llfuse-unpin
Tom Clegg [Tue, 1 Mar 2016 07:42:46 +0000 (02:42 -0500)]
Merge branch 'master' into 8345-llfuse-unpin

8 years ago8371, 8413: Bump Rails package iteration.
Brett Smith [Mon, 29 Feb 2016 17:45:39 +0000 (12:45 -0500)]
8371, 8413: Bump Rails package iteration.

Build these bug fixes into new packages.
Closes #8371, #8413.

8 years agoMerge branch '8413-fix-rails-postinst-chgrp-wip'
Brett Smith [Mon, 29 Feb 2016 17:43:38 +0000 (12:43 -0500)]
Merge branch '8413-fix-rails-postinst-chgrp-wip'

Refs #8413.  Closes #8475.

8 years ago8413: Rails postinst doesn't chgrp root /etc/arvados.
Brett Smith [Fri, 26 Feb 2016 23:13:19 +0000 (18:13 -0500)]
8413: Rails postinst doesn't chgrp root /etc/arvados.

Non-sensitive Rails configuration files can be 0644 root:root.
Porting those permissions is fine for the individual configuration
file, but not the parent directory tree.  Don't change the group of
the directory tree in this case.

8 years agoMerge branch '8371-centos-postrm-bugfix-wip'
Brett Smith [Mon, 29 Feb 2016 17:43:11 +0000 (12:43 -0500)]
Merge branch '8371-centos-postrm-bugfix-wip'

Refs #8371.  Closes #8476.

8 years ago8371: Rails postrm only fires after removing last RPM. 8371-centos-postrm-bugfix-wip
Brett Smith [Fri, 26 Feb 2016 23:20:41 +0000 (18:20 -0500)]
8371: Rails postrm only fires after removing last RPM.

This prevents removing the package files when the postrm script is
called for the old version of a package after doing an upgrade.

RPM post- scripts are called with $1 as the number of versions of the
package currently installed on the system.  0 means the last version
has been removed.  We only want to remove files in that case.

8 years agoMerge branch 'arvbox-fixes' no issue #
Peter Amstutz [Thu, 25 Feb 2016 16:16:20 +0000 (11:16 -0500)]
Merge branch 'arvbox-fixes' no issue #

8 years agoTweak slurm configuration to run as non-root user.
Peter Amstutz [Thu, 25 Feb 2016 16:15:47 +0000 (11:15 -0500)]
Tweak slurm configuration to run as non-root user.

8 years agoFix arvados-login-sync for vm account creation
Peter Amstutz [Thu, 25 Feb 2016 16:14:21 +0000 (11:14 -0500)]
Fix arvados-login-sync for vm account creation

8 years agoGeneralize arvbox 'svrestart' to 'sv' no issue #
Peter Amstutz [Thu, 25 Feb 2016 16:12:00 +0000 (11:12 -0500)]
Generalize arvbox 'svrestart' to 'sv' no issue #

8 years agoMerge branch 'master' into 8345-llfuse-unpin
Tom Clegg [Sat, 20 Feb 2016 09:49:20 +0000 (04:49 -0500)]
Merge branch 'master' into 8345-llfuse-unpin

Conflicts:
jenkins/run-build-packages.sh

8 years agoInstall bundler gem in all build containers.
Tom Clegg [Sat, 20 Feb 2016 08:39:03 +0000 (03:39 -0500)]
Install bundler gem in all build containers.

RVM used to install bundler by default, but now it doesn't.

https://github.com/rvm/rvm/commit/dc07790042d78c525d7d52616c78cb2d55c0e764

I suppose some systems (like Jenkins) have been able to continue
working because they have cached docker images that were built before
RVM dropped bundler (1.26.11 -- Mar 30, 2015).

But on a new system, we ended up here:

[...]
Package python3-websocket-client_0.35.0-1_all.deb exists, not rebuilding
/jenkins/run-library.sh: line 139: bundle: command not found
ERROR: arvados-api-server package prep failed
/jenkins/run-build-packages.sh: line 492: bundle: command not found
ERROR: Asset precompilation failed
ERROR:  build failed with exit status 1.

No issue #

8 years agoFix dependencies after installing built package. refs #8345
Tom Clegg [Sat, 20 Feb 2016 08:04:50 +0000 (03:04 -0500)]
Fix dependencies after installing built package. refs #8345

8 years agoPin package builds of the google-api-python-client and oauth2client
Ward Vandewege [Sat, 20 Feb 2016 04:58:09 +0000 (23:58 -0500)]
Pin package builds of the google-api-python-client and oauth2client
packages to a known-working version.

no issue #

8 years ago8345: Add libselinux-dev build-dep missed by awk script, skip "recommended" packages
Tom Clegg [Sat, 20 Feb 2016 03:46:34 +0000 (22:46 -0500)]
8345: Add libselinux-dev build-dep missed by awk script, skip "recommended" packages

8 years agouses variable for curl output filename and makes curl foLlow redirects
Joshua C. Randall [Fri, 19 Feb 2016 14:26:35 +0000 (14:26 +0000)]
uses variable for curl output filename and makes curl foLlow redirects

8 years agocleans up debian/changelog generation per tomclegg's comment
Joshua C. Randall [Fri, 19 Feb 2016 14:18:06 +0000 (14:18 +0000)]
cleans up debian/changelog generation per tomclegg's comment

8 years agoadds safety quotes and '-[0-9]' before wildcard as suggested in PR #6 comments
Joshua C. Randall [Fri, 19 Feb 2016 14:11:47 +0000 (14:11 +0000)]
adds safety quotes and '-[0-9]' before wildcard as suggested in PR #6 comments

8 years agoadds safety quotes and '_' before wildcard as suggested in PR #6 comments
Joshua C. Randall [Fri, 19 Feb 2016 14:09:34 +0000 (14:09 +0000)]
adds safety quotes and '_' before wildcard as suggested in PR #6 comments

8 years agoRun slurmctld and slurmd inside arvbox. refs #6518
Peter Amstutz [Thu, 18 Feb 2016 21:28:29 +0000 (16:28 -0500)]
Run slurmctld and slurmd inside arvbox. refs #6518

8 years agoMove services to /var/lib/arvbox/services because they include logs and logs
Peter Amstutz [Tue, 16 Feb 2016 15:16:55 +0000 (10:16 -0500)]
Move services to /var/lib/arvbox/services because they include logs and logs
don't go in /usr. no issue #

8 years agoExplicitly install Docker 1.9.1 instead of using get.dockerproject.org (which gets...
Peter Amstutz [Mon, 15 Feb 2016 21:37:00 +0000 (16:37 -0500)]
Explicitly install Docker 1.9.1 instead of using get.dockerproject.org (which gets the latest). no issue #

8 years agoAdd crunch-dispatch-local to arvbox. no issue #
Peter Amstutz [Sun, 14 Feb 2016 04:18:27 +0000 (23:18 -0500)]
Add crunch-dispatch-local to arvbox.  no issue #

8 years agoAdd arvbox support for overriding settings in application.yml
Peter Amstutz [Fri, 12 Feb 2016 20:14:01 +0000 (15:14 -0500)]
Add arvbox support for overriding settings in application.yml
no issue #

8 years agoadds centos6 backport of fuse 2.9.2
Joshua Randall [Fri, 5 Feb 2016 15:16:37 +0000 (15:16 +0000)]
adds centos6 backport of fuse 2.9.2

8 years agoUnpins llfuse version and adds fuse 2.9.2 backport
Joshua Randall [Wed, 3 Feb 2016 12:48:19 +0000 (12:48 +0000)]
Unpins llfuse version and adds fuse 2.9.2 backport

8 years agoInhibit udev startup in Debian test Docker images.
Brett Smith [Wed, 3 Feb 2016 19:24:07 +0000 (14:24 -0500)]
Inhibit udev startup in Debian test Docker images.

The FUSE driver package depends on fuse, which depends on udev.
udev can't start its daemon from postinst in a container.
It has code to try to detect running in a container and skip the
daemon, but it fails intermittently.
e.g., <https://ci.curoverse.com/job/build-packages/1699/consoleFull>
It also skips starting the daemon when /etc/udev/disabled exists, so
create that.

8 years ago.deb dependencies from Python packages ignore iteration.
Brett Smith [Wed, 3 Feb 2016 13:19:34 +0000 (08:19 -0500)]
.deb dependencies from Python packages ignore iteration.

See comment for rationale.
Inspired by <https://github.com/curoverse/arvados/pull/35>.
No issue #.

8 years agoPin llfuse to 0.41.1 because 0.42 came out and broke things. no issue #
Peter Amstutz [Mon, 1 Feb 2016 14:16:52 +0000 (09:16 -0500)]
Pin llfuse to 0.41.1 because 0.42 came out and broke things.  no issue #

8 years agoAdd distinct fpm_exclude so it shows up in the right place on the fpm command
Peter Amstutz [Fri, 29 Jan 2016 21:15:41 +0000 (16:15 -0500)]
Add distinct fpm_exclude so it shows up in the right place on the fpm command
line.  refs #8008

8 years agoUse volumes for /var/log/nginx and /etc/ssl/private so that changing ownership
Peter Amstutz [Thu, 28 Jan 2016 19:55:29 +0000 (14:55 -0500)]
Use volumes for /var/log/nginx and /etc/ssl/private so that changing ownership
sticks. refs #8080

8 years agoArvbox fixes: use 'postgres' database when testing if a user exists. Copy
Peter Amstutz [Thu, 28 Jan 2016 19:22:23 +0000 (14:22 -0500)]
Arvbox fixes: use 'postgres' database when testing if a user exists.  Copy
gitolite.rc to the right place.  Print out what is being deleted when using
"reset" or "destroy". refs #8080

8 years agochown /etc/ssl/private to arvbox refs #8080
Peter Amstutz [Wed, 27 Jan 2016 21:40:53 +0000 (16:40 -0500)]
chown /etc/ssl/private to arvbox refs #8080

8 years agoBump iteration of rails packages to -4 refs #8008
Peter Amstutz [Wed, 27 Jan 2016 20:39:38 +0000 (15:39 -0500)]
Bump iteration of rails packages to -4 refs #8008

8 years agoFix selecting most recent package for package testing, refs #8008.
Peter Amstutz [Wed, 27 Jan 2016 19:34:06 +0000 (14:34 -0500)]
Fix selecting most recent package for package testing, refs #8008.

8 years ago8008: Make dependencies for build-dockerfiles.
Brett Smith [Mon, 25 Jan 2016 23:15:12 +0000 (18:15 -0500)]
8008: Make dependencies for build-dockerfiles.

We've apparently never had code to do this before.  I guess all
deployments had the dependencies generated by hand before running.
This makes them automated to fix failures like
<https://ci.curoverse.com/job/build-packages/1668/console>.
Refs #8008.

8 years agoFix markdown for arvbox README.md refs #8080
Peter Amstutz [Mon, 25 Jan 2016 17:14:44 +0000 (12:14 -0500)]
Fix markdown for arvbox README.md refs #8080

8 years agoAdd "status" command, refs #8080
Peter Amstutz [Mon, 25 Jan 2016 15:34:02 +0000 (10:34 -0500)]
Add "status" command, refs #8080

8 years agoJust create arvbox superuser instead of creating a whole useless database.
Peter Amstutz [Mon, 25 Jan 2016 15:21:22 +0000 (10:21 -0500)]
Just create arvbox superuser instead of creating a whole useless database.
Check directly whether creating the arvbox is required. refs #8080

8 years agoMake sure not to accidentally include config/application.yml and
Ward Vandewege [Fri, 22 Jan 2016 22:44:55 +0000 (17:44 -0500)]
Make sure not to accidentally include config/application.yml and
config/database.yml in our rails packages, take 2: make sure that
config/database.yml *is* present in our workbench packages, where we
want to include it.

No issue #

8 years agoMerge branch '8066-git-init-from-postinst'
Ward Vandewege [Fri, 22 Jan 2016 21:40:26 +0000 (16:40 -0500)]
Merge branch '8066-git-init-from-postinst'

closes #8066

8 years agoSome review fixes. 8066-git-init-from-postinst
Ward Vandewege [Fri, 22 Jan 2016 21:39:23 +0000 (16:39 -0500)]
Some review fixes.

closes #8066

8 years agoMerge branch 'master' into 8066-git-init-from-postinst
Ward Vandewege [Fri, 22 Jan 2016 21:21:23 +0000 (16:21 -0500)]
Merge branch 'master' into 8066-git-init-from-postinst

8 years agoMake sure not to accidentally include config/application.yml and
Ward Vandewege [Fri, 22 Jan 2016 15:27:59 +0000 (10:27 -0500)]
Make sure not to accidentally include config/application.yml and
config/database.yml in our rails packages.

No issue #

8 years agoBump libcloud package version pin to 0.20.2dev1 refs #8235
Peter Amstutz [Fri, 22 Jan 2016 15:26:14 +0000 (10:26 -0500)]
Bump libcloud package version pin to 0.20.2dev1 refs #8235

8 years agoMerge branch '8008-test-all-packages' closes #8008
Peter Amstutz [Thu, 21 Jan 2016 19:47:40 +0000 (14:47 -0500)]
Merge branch '8008-test-all-packages' closes #8008

8 years ago8008: Tweak error code reporting. Remove debugging line. 8008-test-all-packages
Peter Amstutz [Thu, 21 Jan 2016 19:30:03 +0000 (14:30 -0500)]
8008: Tweak error code reporting.  Remove debugging line.

8 years ago8008: Quote more variables in package test scripts.
Brett Smith [Wed, 20 Jan 2016 23:52:36 +0000 (18:52 -0500)]
8008: Quote more variables in package test scripts.

8 years agorefs #8028
radhika [Wed, 20 Jan 2016 17:44:02 +0000 (12:44 -0500)]
refs #8028
Merge branch '8028-crunch-dispatch-local'

8 years agoMerge branch 'master' into 8028-crunch-dispatch-local 8028-crunch-dispatch-local
radhika [Wed, 20 Jan 2016 17:43:32 +0000 (12:43 -0500)]
Merge branch 'master' into 8028-crunch-dispatch-local

Conflicts:
jenkins/run-tests.sh

8 years agoDocument some arvbox hw/sw requirements refs #8080
Peter Amstutz [Wed, 20 Jan 2016 17:10:26 +0000 (12:10 -0500)]
Document some arvbox hw/sw requirements refs #8080

8 years agoEnable arvbox user to sudo to crunch user. refs #8080
Peter Amstutz [Wed, 20 Jan 2016 16:43:10 +0000 (11:43 -0500)]
Enable arvbox user to sudo to crunch user.  refs #8080

8 years agoAdd crunch-run to run-tests refs #7816
Peter Amstutz [Wed, 20 Jan 2016 16:40:09 +0000 (11:40 -0500)]
Add crunch-run to run-tests refs #7816

8 years agoFix gitolite-shell path refs #8080
Peter Amstutz [Wed, 20 Jan 2016 15:38:43 +0000 (10:38 -0500)]
Fix gitolite-shell path refs #8080

8 years agoadded git_internal_dir init in postinst.sh
Nico Cesar [Tue, 19 Jan 2016 20:17:22 +0000 (15:17 -0500)]
added git_internal_dir init in postinst.sh

8 years agoMerge branch '8080-arvbox' closes #8080
Peter Amstutz [Tue, 19 Jan 2016 18:09:31 +0000 (13:09 -0500)]
Merge branch '8080-arvbox' closes #8080

8 years ago8080: fpm_depends comes before run-build-package commands; fpm_args comes after
Peter Amstutz [Mon, 18 Jan 2016 20:33:03 +0000 (15:33 -0500)]
8080: fpm_depends comes before run-build-package commands; fpm_args comes after
run-build package commands.  Improve quoting.  Use sed -i.

8 years ago8008: Move test files into their own directories. Fix rails package tests to
Peter Amstutz [Mon, 18 Jan 2016 19:43:01 +0000 (14:43 -0500)]
8008: Move test files into their own directories.  Fix rails package tests to
work with debian & ubuntu.  Fix error code checking.

8 years ago8008: SSO package tests pass for all targets.
Peter Amstutz [Thu, 14 Jan 2016 21:40:59 +0000 (16:40 -0500)]
8008: SSO package tests pass for all targets.

8 years ago8008: Incorporate SSO package testing into general package testing framework.
Peter Amstutz [Thu, 14 Jan 2016 20:45:18 +0000 (15:45 -0500)]
8008: Incorporate SSO package testing into general package testing framework.

8 years agoFixing our fpm rails package building to handle fpm-info.sh.
Peter Amstutz [Wed, 13 Jan 2016 21:41:39 +0000 (16:41 -0500)]
Fixing our fpm rails package building to handle fpm-info.sh.

8 years ago8008: Run bundle install and bundle list for api server and workbench.
Peter Amstutz [Wed, 13 Jan 2016 20:40:36 +0000 (15:40 -0500)]
8008: Run bundle install and bundle list for api server and workbench.

8 years ago8080: Successfully tests all packages. Produces before/after/diff lists for each...
Peter Amstutz [Wed, 13 Jan 2016 19:50:45 +0000 (14:50 -0500)]
8080: Successfully tests all packages.  Produces before/after/diff lists for each package.

8 years ago8008: Test each Arvados package individually.
Peter Amstutz [Wed, 13 Jan 2016 19:11:30 +0000 (14:11 -0500)]
8008: Test each Arvados package individually.

8 years ago8028: add services/crunch-dispatch-local
radhika [Wed, 13 Jan 2016 16:17:11 +0000 (11:17 -0500)]
8028: add services/crunch-dispatch-local

8 years agoMerge branch '8014-rails-postinst-scripts-wip'
Brett Smith [Mon, 11 Jan 2016 22:17:45 +0000 (17:17 -0500)]
Merge branch '8014-rails-postinst-scripts-wip'

Refs #8014.  Closes #8036.

8 years ago8014: Rails upgrade scripts are removed; don't run them in deploy script.
Brett Smith [Mon, 11 Jan 2016 22:17:09 +0000 (17:17 -0500)]
8014: Rails upgrade scripts are removed; don't run them in deploy script.

8 years ago8014: Rails postinst script sets better default access for /etc/arvados.
Brett Smith [Mon, 4 Jan 2016 23:02:08 +0000 (18:02 -0500)]
8014: Rails postinst script sets better default access for /etc/arvados.

8 years ago8014, 8059: Unify Rails package building.
Brett Smith [Sat, 2 Jan 2016 17:15:53 +0000 (12:15 -0500)]
8014, 8059: Unify Rails package building.

* Introduce a handle_rails_package function, and helpers, to build a
  Rails package.
* Generalize all the support scripts into unified postinst, prerm, and
  postrm scripts.  handle_rails_package builds these into the
  packages.  See jenkins/rails-package-scripts/README.md for details.
* More error checking throughout (e.g., check for failure when doing
  any prep work for Rails packages, or the Workbench packages
  specifically, using `set -e` in a subshell).

One behavior change from this unification: before this,
run-build-packages treated --build-bundle-packages to mean "*also*
build bundle packages", while run-build-packages-sso treated the
switch to mean "*only* build bundle packages".  This commit declares
run-build-packages to be the winner, and makes run-build-packages-sso
consistent with it.

8 years agoFix quoting of local variable assignments throughout.
Brett Smith [Sat, 2 Jan 2016 00:09:08 +0000 (19:09 -0500)]
Fix quoting of local variable assignments throughout.

When you assign a variable directly (e.g., `FOO=bar`), you don't need
to quote the RHS, because the shell doesn't do expansion in that
case.  But when you declare and assign a variable (e.g., `local
foo=bar`), you *do* potentially need to quote it, because `local` is a
command and all the normal expansion rules for running commands
applies.

8 years ago8014: Clean database state detection in arvados-sso postinst.
Brett Smith [Fri, 1 Jan 2016 18:38:00 +0000 (13:38 -0500)]
8014: Clean database state detection in arvados-sso postinst.

* Remove unused status code capture.
* Use `grep -q`.  Previous versions of the script avoided it because
  they piped directly from rake tasks, which would get upset when the
  pipe broke.  Now that we capture all the output, that's no longer a
  concern.

8 years ago8014: Introduce run_and_report function to arvados-sso postinst.
Brett Smith [Fri, 1 Jan 2016 17:26:20 +0000 (12:26 -0500)]
8014: Introduce run_and_report function to arvados-sso postinst.

Use this to DRY up code that says "Doing something... done."
This commit removes some `|| exit $?` that's redundant with `set -e`.

8 years ago8014: Improve conffile handling in arvados-sso postinst.
Brett Smith [Fri, 1 Jan 2016 17:17:01 +0000 (12:17 -0500)]
8014: Improve conffile handling in arvados-sso postinst.

* DRY it up into a function.
* DATABASE_READY and APPLICATION_READY care about whether the
  corresponding .yml file is usable.  Always detect when it is
  unmodified from the .yml.example file.
* Build symlinks from /var/www to /etc in more cases where it's safe.

8 years ago8014: arvados-sso postinst recognizes versioned Nginx service names.
Brett Smith [Fri, 1 Jan 2016 16:10:05 +0000 (11:10 -0500)]
8014: arvados-sso postinst recognizes versioned Nginx service names.