Automatised instalation

49 views
Skip to first unread message

Paul Musset (cc-in2p3)

unread,
Jul 21, 2021, 5:30:42 AM7/21/21
to diracgrid-forum
Hello,

I am trying to do the installation described in the tutorial in the most automatic way possible. So I have several questions about doing that.
  • How do I create services or agent which have to be given parameters? With the command line it's like that
    `install agent Transformation TransformationAgent -p PollingTime=30`. I there a way to do that in 'install.cfg' directly or should I install the agent in `dirac.cfg` without any parameters ('Agents += Transformation/TransformationAgent') and then add the PollingTime parameter via the ConfigurationManager

  • How do I create multiple instances of the same service? When following the tutorial, you create 3 instances of the DataManagememt/StorageElement service for example. Is it doable via `install.cfg` or is there another way ?

  • Whats the difference between `dirac-configuration-cli` and `dirac-configuration-shell` ? They seem to do the same thing just with a different commands
Thanks
Paul

Paul Musset (cc-in2p3)

unread,
Jul 21, 2021, 5:49:09 AM7/21/21
to diracgrid-forum
I meant install the agent in `install.cfg` in the first question

I forgot another question : what is the equivalent of `add instance Transformation Production`. Is it also doable able via install.cfg

André Sailer

unread,
Jul 22, 2021, 10:06:32 AM7/22/21
to Paul Musset (cc-in2p3), diracgrid-forum
Hi Paul,


1) Installing with parameters, multiple services

I think you can do either of this with the dirac-admin-sysadmin-cli
after the server installation. the sysadmin-cli has a "execFile" command
or `dirac-admin-sysadmin-cli < mySysAdminCommands`
with a mySysAdminCommands text file containing the relevant installation
instructions.

(or dirac-install-component on the host?)

2) I can't help you with the different scripts, don't know them, never
used them.

3) add instance equivalent

Like this with the Systems parameter I think
https://github.com/DIRACGrid/DIRAC/blob/14a63527fed6e8d5baeff1e4f7ac3af9a8ce3cda/tests/Jenkins/install.cfg#L32-L44

Cheers,
Andre

ernst pijper

unread,
Oct 28, 2021, 10:21:02 AM10/28/21
to diracgrid-forum
Hello,

The original question asked by Paul is how to describe the complete installation in the installation configuration file. The manual says this about it:

"Edit the installation configuration file. This file contains all the necessary information describing the installation. By editing the configuration file one can 
describe the complete DIRAC server or just a subset for the initial setup. Below is an example of a commented configuration file. This file corresponds to a 
minimal DIRAC server configuration which allows to start using the system."

So according to the manual this should be possible.

Question is how? 

I would like to know as i would also like to automate the complete installation.
Using the cli to run (hundreds?) of separate commands is not exactly what I'm looking for.

Ernst

Op donderdag 22 juli 2021 om 16:06:32 UTC+2 schreef andre.philippe.sailer:
Reply all
Reply to author
Forward
0 new messages