11 Commits

Author SHA1 Message Date
Jeremy Stanley
fa1bb4f3f7 Perform kernel upgrades on new Ubuntu servers.
* install_jenkins_slave.sh: Perform a dist-upgrade on Ubuntu
servers, similar to install_puppet.sh.

* install_puppet.sh: Change from upgrade to dist-upgrade so kernels
will also be included in the initial package upgrade step.

Change-Id: Ia39c37f75cc411ce92b1deb5125fa0c5c6e6db35
Reviewed-on: https://review.openstack.org/30388
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-05-24 17:50:50 +00:00
Jeremy Stanley
ae3dfe4d95 Jenkins slave puppetry for CentOS.
The install scripts now look for CentOS in release files. Also some
instances of facter's operatingsystem are switched to osfamily and
capitalization of RedHat is normalized to match what facter uses.

Change-Id: I3bbca5481d0d5e6de9e62bfd6e2b0a85264ed6ed
Reviewed-on: https://review.openstack.org/27398
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-25 21:36:58 +00:00
Jeremy Stanley
4b8a775efe Revert "Use redhat-lsb instead of redhat-lsb-core."
This reverts commit 53ec5d4d1aec4094b40e06f7be5f0183a954fe7f.

Turns out redhat-lsb-core was fine after all, as of a week ago:

    https://rhn.redhat.com/errata/RHBA-2013-0448.html

Change-Id: I8c258b084971bb090dc5d09645375939719a3259
Reviewed-on: https://review.openstack.org/23150
Reviewed-by: Khai Do <zaro0508@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-02-28 15:53:23 +00:00
Jeremy Stanley
53ec5d4d1a Use redhat-lsb instead of redhat-lsb-core.
The redhat-lsb-core package won't apparently be split out until RHEL
6.4 at the earliest:

    https://bugzilla.redhat.com/show_bug.cgi?id=835919

Change-Id: I4bc9bb542e68db26744b834a6de7d99b2249c568
Reviewed-on: https://review.openstack.org/23124
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-02-27 22:56:10 +00:00
Dan Prince
c778aaa2f7 Preinstall lsb_release on RHEL.
Updates the puppet install scripts so that we pre-install
lsb_release on RHEL distros. We *think* this fixes an
issue where lsbdistcodename wasn't getting set correctly
and was causing subsequent puppet failures like this:

lsbdistcodename fact not available: release parameter required at
/etc/puppet/modules/apt/manifests/ppa.pp

Change-Id: I1758ee8be9a599e17f1ccb98fc95b2b4f29916f7
Reviewed-on: https://review.openstack.org/23111
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-02-27 20:43:19 +00:00
Dan Prince
019ba4f928 Updates install_jenkins_slave.sh to support RHEL.
Add support configuring Red Hat 6 jenkins slaves:

-installs EPEL
-installs puppet 2.7 (from puppetlabs repo)
-installs git

Tested on Red Hat 6.1 and 6.4.

Change-Id: Ib5808ea6356ebaa271170f68b78a431f2d68d995
Reviewed-on: https://review.openstack.org/18907
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-01-17 18:25:33 +00:00
Sunil Thaha
2c6a5f3e8e Exit cleanly if run as a non-root user
Exits with a message if the efficitive-uid (EUID) is not 0

Change-Id: If36a9ede5f8bfc763d86870e6f630bafee605476
Reviewed-on: https://review.openstack.org/19453
Reviewed-by: Dan Prince <dprince@redhat.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2013-01-14 11:43:07 +00:00
Monty Taylor
74460853d1 Rename CI to Infra in MANY MANY places.
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:30:47 +00:00
Clark Boylan
cfb6d326f4 Use puppetlabs apt repo and pin puppet version.
In openstack_project::base use the Apt module to configure the upstream
puppet labs apt repository and pin puppet to version 2.7.*.

Change-Id: I0a09e02e3d26eb9452215e5bccef143487e9e58d
Reviewed-on: https://review.openstack.org/14194
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-10-09 15:17:15 +00:00
Clark Boylan
44144f742a Remove use of sudo from install_jenkins_slave.sh.
Sudo does not play nice with jclouds and potentially won't play nice
with other setups either. Remove use of sudo to make the script more
flexible. To run it:
  $ sudo ./install_jenkins_slave.sh
    or
  # ./install_jenkins_slave.sh

Change-Id: I12ceb668441df27a4f230357558283e9d011c35d
Reviewed-on: https://review.openstack.org/10985
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-07 22:21:09 +00:00
Monty Taylor
126aaf94b9 Add script for jenkins slave bootstrap.
Change-Id: I7e94193bc81c3caabd77ca112952a98f15f3c434
2012-08-02 11:08:16 -05:00