Forum: CFEngine Help
Subject: Section in config files/set_variable_values
Author: th
Link to topic: https://cfengine.com/forum/read.php?3,27257,27257#msg-27257

Hello,

For simple editions in simply structured configuration files, I'm using the 
method described in Diego Zamboni's book for editing sshd_config file (use of 
an array and set_variable_values). Actually, I'm using it on a secure_cp'ed 
"master" file which I later "local_dcp" in order to promise the whole file, but 
that doesn't change the question :

Could I still use this method (and how) to edit configuration directives inside 
a section, or a block (think Host foo-* blocks in sshd_config) ?

Note that I want "chirurgical edits" and not templates.

In other words :

I want to promise let's say the line "HostbasedAuthentication yes" in an 
existing  

Host foo-*

sshd_config block

Thanks

--
TH.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to