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
This commit is contained in:
parent
2f0c6fe10f
commit
44144f742a
@ -2,12 +2,12 @@
|
||||
|
||||
lsbdistcodename=`lsb_release -c -s`
|
||||
puppet_deb=puppetlabs-release-${lsbdistcodename}.deb
|
||||
/usr/bin/wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb
|
||||
sudo dpkg -i $puppet_deb
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y puppet git rubygems
|
||||
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
|
||||
sudo bash openstack-ci-puppet/install_modules.sh
|
||||
bash openstack-ci-puppet/install_modules.sh
|
||||
|
||||
sudo puppet apply --modulepath=`pwd`/openstack-ci-puppet/modules:/etc/puppet/modules -e 'node default {class { "openstack_project::bare_slave": install_users => false }}'
|
||||
puppet apply --modulepath=`pwd`/openstack-ci-puppet/modules:/etc/puppet/modules -e 'node default {class { "openstack_project::bare_slave": install_users => false }}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user