Page MenuHomeDevCentral

getconfig: command to get a configuration file
ClosedPublic

Authored by dereckson on Nov 19 2015, 05:52.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 21:15
Unknown Object (File)
Fri, Dec 13, 19:36
Unknown Object (File)
Mon, Dec 9, 08:35
Unknown Object (File)
Sun, Dec 8, 10:31
Unknown Object (File)
Wed, Dec 4, 01:57
Unknown Object (File)
Mon, Dec 2, 11:50
Unknown Object (File)
Mon, Dec 2, 01:19
Unknown Object (File)
Tue, Nov 26, 16:16
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.