diff options
Diffstat (limited to 'vm-data/jenkins.customize')
-rwxr-xr-x | vm-data/jenkins.customize | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vm-data/jenkins.customize b/vm-data/jenkins.customize index 174fe2b..5123ddf 100755 --- a/vm-data/jenkins.customize +++ b/vm-data/jenkins.customize @@ -3,17 +3,17 @@ # vm-data/jenkins.customize - customize disk image for jenkins master node # # Copyright 2012 Lars Wirzenius -# +# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. @@ -81,7 +81,7 @@ install -m 0644 vm-data/jenkins.user-key.pub \ # Install the worker user key into Jenkins's allowed_keys file. install -m 0600 vm-data/worker.user-key.pub \ "$rootdir/var/lib/jenkins/.ssh/authorized_keys" - + # Disable ssh host key checking. echo "StrictHostKeyChecking no" >> "$rootdir/etc/ssh/ssh_config" @@ -91,3 +91,5 @@ chroot "$rootdir" chown -R jenkins:jenkins /var/lib/jenkins/.ssh/. # Create the web-accessible artifact repository for the CI system. chroot "$rootdir" install -d -o jenkins -g jenkins /var/www/jenkins +# Append addresses to /etc/hosts. +cat vm-data/hosts >> "$rootdir/etc/hosts" |