Project

General

Profile

Actions

Feature #5158

closed

Admin Init Script

Added by Brétel Foudil about 8 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Low
Assigned To:
Category:
JClouds plugin
Target version:
Start date:
09/27/2013
Due date:
% Done:

0%

Estimated time:

Description

The problem:

official-SL-6x-x86_64 images have AllowGroups root in sshd_config.
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.

We must keep in mind that:
  • imageIds will be added manually by the farm admins to the "script" (deployment)
  • users can upgrade the JClouds plugin, like any other plugin
Actions #1

Updated by Brétel Foudil almost 8 years ago

  • Target version set to v0.3
Actions #2

Updated by Brétel Foudil over 7 years ago

  • Target version changed from v0.3 to v0.5
Actions #3

Updated by Schwarz Lionel about 6 years ago

  • Priority changed from Normal to Low

I set down this ticket to low as it is very old

Actions #4

Updated by ROUET Jean-René about 4 years ago

  • Status changed from Assigned to Rejected
Actions

Also available in: Atom PDF