Page MenuHomeDevCentral

getconfig: command to get a configuration file
ClosedPublic

Authored by dereckson on Nov 19 2015, 05:52.
Tags
None
Referenced Files
F3746244: D77.diff
Fri, Nov 15, 19:34
Unknown Object (File)
Wed, Nov 13, 11:27
Unknown Object (File)
Sat, Nov 9, 23:16
Unknown Object (File)
Thu, Nov 7, 14:14
Unknown Object (File)
Thu, Nov 7, 01:56
Unknown Object (File)
Fri, Nov 1, 12:10
Unknown Object (File)
Sun, Oct 27, 05:58
Unknown Object (File)
Sat, Oct 26, 09:57
Subscribers
None

Details

Summary

Currently, getcredentials allow to get one setting. If several
credentials are needed, we need to do several SSH connections
to get each of them.

We provide instead a getconfig script accepting a template in
stdin or a file name to a file located in rOPS' config folder as
parameter, and printing to stdout the configuration file after
template variable substitution.

Fixes T587.

Example:

bin/config forum/forum.yml

Template syntax:

%%command%% Runs the specified command and output the result
Test Plan

ssh zr@ysul.nasqueron.org getconfig forum/forum.yml

Diff Detail

Repository
rZR Zemke-Rhyne
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to getconfig: command to get a configuration file.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2015, 05:57
dereckson added inline comments.
lib/GetConfiguration.php
8

2015

dereckson edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2015, 06:01
This revision was automatically updated to reflect the committed changes.