44144f742a
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
14 lines
505 B
Bash
Executable File
14 lines
505 B
Bash
Executable File
#!/bin/bash
|
|
|
|
lsbdistcodename=`lsb_release -c -s`
|
|
puppet_deb=puppetlabs-release-${lsbdistcodename}.deb
|
|
wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb
|
|
dpkg -i $puppet_deb
|
|
apt-get update
|
|
apt-get install -y puppet git rubygems
|
|
|
|
git clone https://github.com/openstack/openstack-ci-puppet
|
|
bash openstack-ci-puppet/install_modules.sh
|
|
|
|
puppet apply --modulepath=`pwd`/openstack-ci-puppet/modules:/etc/puppet/modules -e 'node default {class { "openstack_project::bare_slave": install_users => false }}'
|