Hello
I would like to check in my manifest the presence of a line in a configuration file under [main] and above [config]
With my manifest configuration, it adds my line at the end of file
Can you have an idea?
thank you in advance
my manifest :
file_line { "yum protect":
line => "protect=1",
path => "/etc/yum.conf",
match => "protect=.*$",
ensure => present
}
my file :
[main]
enabled = 1
gpgcheck = 1
priority = 10
protect = 1
[config]
enabled = 1