Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Add extra value to a parameter in file

$
0
0
Hi, With this configuration , I can add the parameter "exclude" in the yum.conf file if it does not exist with the value " kernel" . augeas { yum_exclude_kernel: context => '/files/etc/yum.conf/main', changes => "set exclude 'kernel'" } But, if there is already this parameter with a different value, it is overwritten... My question is: how to add another value with a space between values ​​without overwrite the existing one ? Is this possible with augeas ? regards

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>