getconfig: command to get a configuration file
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
Reviewers: dereckson
Maniphest Tasks: T587
Differential Revision: http://devcentral.nasqueron.org/D77