Start working with module repos and releases.
Change-Id: I4a596f8744a16e7d5495da1a8824a15c1ef64a7c Reviewed-on: https://review.openstack.org/11242 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
ed16af368a
commit
a9f62a2c17
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
|
*.swp
|
||||||
|
*~
|
||||||
*.pyc
|
*.pyc
|
||||||
|
applytest
|
||||||
doc/html/
|
doc/html/
|
||||||
manifests/secrets.pp
|
manifests/secrets.pp
|
||||||
|
@ -26,36 +26,17 @@ if ! puppet help module >/dev/null 2>&1 ; then
|
|||||||
apt-get install -y -o Dpkg::Options::="--force-confold" puppet facter
|
apt-get install -y -o Dpkg::Options::="--force-confold" puppet facter
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MODULES="puppetlabs-apt puppetlabs-mysql puppetlabs-dashboard"
|
MODULES="puppetlabs-apt puppetlabs-mysql openstackci-dashboard openstackci-vcsrepo"
|
||||||
MODULE_LIST=`puppet module list`
|
MODULE_LIST=`puppet module list`
|
||||||
|
|
||||||
|
# Transition away from old things
|
||||||
|
if [ -d /etc/puppet/modules/vcsrepo/.git ] ; then
|
||||||
|
rm -rf /etc/puppet/modules/vcsrepo
|
||||||
|
fi
|
||||||
|
|
||||||
for MOD in $MODULES ; do
|
for MOD in $MODULES ; do
|
||||||
if ! echo $MODULE_LIST | grep $MOD >/dev/null 2>&1 ; then
|
if ! echo $MODULE_LIST | grep $MOD >/dev/null 2>&1 ; then
|
||||||
# This will get run in cron, so silence non-error output
|
# This will get run in cron, so silence non-error output
|
||||||
puppet module install $MOD >/dev/null
|
puppet module install --force $MOD >/dev/null
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Install vcsrepo from git
|
|
||||||
clone_git git://github.com/openstack-ci/puppet-vcsrepo.git vcsrepo 44eb9ad8
|
|
||||||
|
|
||||||
# Fix a problem with the released verison of the dashboard module
|
|
||||||
if grep scope.lookupvar ${MODULE_PATH}/dashboard/templates/passenger-vhost.erb | grep dashboard_port >/dev/null 2>&1 ; then
|
|
||||||
|
|
||||||
cd ${MODULE_PATH}/dashboard
|
|
||||||
echo | patch -p1 <<'EOD'
|
|
||||||
diff --git a/templates/passenger-vhost.erb b/templates/passenger-vhost.erb
|
|
||||||
index a2f6d16..de7dd0a 100644
|
|
||||||
--- a/templates/passenger-vhost.erb
|
|
||||||
+++ b/templates/passenger-vhost.erb
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
-Listen <%= scope.lookupvar("dashboard::params::dashboard_port") %>
|
|
||||||
+Listen <%= dashboard_port %>
|
|
||||||
|
|
||||||
-<VirtualHost *:<%= scope.lookupvar("dashboard::params::dashboard_port") %>>
|
|
||||||
+<VirtualHost *:<%= dashboard_port %>>
|
|
||||||
ServerName <%= name %>
|
|
||||||
DocumentRoot <%= docroot %>
|
|
||||||
RailsBaseURI <%= rails_base_uri %>
|
|
||||||
EOD
|
|
||||||
fi
|
|
||||||
|
@ -193,6 +193,33 @@
|
|||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
|
|
||||||
|
- project:
|
||||||
|
name: puppet-apparmor
|
||||||
|
github-org: openstack-ci
|
||||||
|
node: precise
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- gate-{name}-merge
|
||||||
|
|
||||||
|
|
||||||
|
- project:
|
||||||
|
name: puppet-dashboard
|
||||||
|
github-org: openstack-ci
|
||||||
|
node: precise
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- gate-{name}-merge
|
||||||
|
|
||||||
|
|
||||||
|
- project:
|
||||||
|
name: puppet-vcsrepo
|
||||||
|
github-org: openstack-ci
|
||||||
|
node: precise
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- gate-{name}-merge
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: pypi-mirror
|
name: pypi-mirror
|
||||||
github-org: openstack-ci
|
github-org: openstack-ci
|
||||||
|
@ -29,6 +29,15 @@
|
|||||||
- project: openstack-ci/meetbot
|
- project: openstack-ci/meetbot
|
||||||
options:
|
options:
|
||||||
- close-pull
|
- close-pull
|
||||||
|
- project: openstack-ci/puppet-apparmor
|
||||||
|
options:
|
||||||
|
- close-pull
|
||||||
|
- project: openstack-ci/puppet-dashboard
|
||||||
|
options:
|
||||||
|
- close-pull
|
||||||
|
- project: openstack-ci/puppet-vcsrepo
|
||||||
|
options:
|
||||||
|
- close-pull
|
||||||
- project: openstack-ci/pypi-mirror
|
- project: openstack-ci/pypi-mirror
|
||||||
options:
|
options:
|
||||||
- close-pull
|
- close-pull
|
||||||
|
@ -143,6 +143,24 @@ projects:
|
|||||||
- gate-ci-puppet-merge:
|
- gate-ci-puppet-merge:
|
||||||
- gate-ci-puppet-syntax
|
- gate-ci-puppet-syntax
|
||||||
|
|
||||||
|
- name: openstack-ci/puppet-apparmor
|
||||||
|
check:
|
||||||
|
- gate-puppet-apparmor-merge
|
||||||
|
gate:
|
||||||
|
- gate-puppet-apparmor-merge
|
||||||
|
|
||||||
|
- name: openstack-ci/puppet-dashboard
|
||||||
|
check:
|
||||||
|
- gate-puppet-dashboard-merge
|
||||||
|
gate:
|
||||||
|
- gate-puppet-dashboard-merge
|
||||||
|
|
||||||
|
- name: openstack-ci/puppet-vcsrepo
|
||||||
|
check:
|
||||||
|
- gate-puppet-vcsrepo-merge
|
||||||
|
gate:
|
||||||
|
- gate-puppet-vcsrepo-merge
|
||||||
|
|
||||||
- name: openstack/cinder
|
- name: openstack/cinder
|
||||||
check:
|
check:
|
||||||
- gate-cinder-merge:
|
- gate-cinder-merge:
|
||||||
|
Loading…
Reference in New Issue
Block a user