Augeas - create new ini section
Posted
by
Tim Brigham
on Server Fault
See other posts from Server Fault
or by Tim Brigham
Published on 2012-06-20T14:11:29Z
Indexed on
2012/06/20
15:18 UTC
Read the original article
Hit count: 143
augeas
I have a config file in augeas using a custom lens that outputs the data as follows.
/files/opt/../server.conf/target[1] = "general"
/files/opt/../server.conf/target[1]/serverName = "XXX"
/files/opt/../server.conf/target[1]/guid = "XXX0XXX"
/files/opt/../server.conf/target[2] = "sslConfig"
/files/opt/../server.conf/target[2]/sslKeysfilePassword = "$1$XXXXX"
This works well - some of the target names contain colons, etc so I need to use the target[x] format.
What is the correct ins syntax to create a new section in my INI using this syntax?
© Server Fault or respective owner