Admin Init Script
official-SL-6x-x86_64 images have
AllowGroups root in
In order to have the
jenkins user log into a fresh VM, user need to do special cooking in the Init Script option of the template:
cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.sav && sed -e "s/^AllowGroups/#AllowGroups/" /etc/ssh/sshd_config.sav > /etc/ssh/sshd_config && service sshd reload
The broader solution:
Since we can't initialize some template option on behalf of the user (like setting Init Script depending on the imageId), it would be nice to have some kind of Admin Init Script, maybe hidden from the UI, that enables commands to be executed during a slave instantiation depending on the imageId.
The actual script could be a configuration file with a Map/Dictionary form: imageId -> commands.
It should be common to all Jenkins instances.
- imageIds will be added manually by the farm admins to the "script" (deployment)
- users can upgrade the JClouds plugin, like any other plugin