Merge "Added clean exit hooks to npm registry script"

This commit is contained in:
Jenkins 2016-05-10 16:20:54 +00:00 committed by Gerrit Code Review
commit 6c21d3a340
2 changed files with 10 additions and 1 deletions

View File

@ -49,4 +49,13 @@ class openstack_project::npm_mirror (
Class['nodejs'],
]
}
# Common registry hooks
package { 'openstack-registry-hooks':
ensure => '1.1.0',
provider => 'npm',
require => [
Class['nodejs'],
]
}
}

View File

@ -17,7 +17,7 @@
set -e
CMD="/usr/bin/registry-static"
CMD_ARGS="-d <%= @uri_rewrite %> -o <%= @data_directory %> --blobstore afs-blob-store"
CMD_ARGS="-d <%= @uri_rewrite %> -o <%= @data_directory %> --blobstore afs-blob-store --hooks openstack-registry-hooks"
echo "Obtaining npm tokens and running registry-static."
k5start -t -f /etc/npm.keytab service/npm -- timeout -k 2m 30m $CMD $CMD_ARGS