apache - modfying default ss directive using augeas -
i trying modify directory directive apache file using augeas in puppet manifest:
apache file extract:
<directory "/usr/share/doc/"> options indexes multiviews followsymlinks allowoverride none order deny,allow deny allow 127.0.0.0/255.0.0.0 ::1/128 </directory> now can run below using sudo augtool works fine , modifies "indexes" argument:
set /files/etc/apache2/sites-enabled/default/virtualhost/directory[4]/directive[1]/arg[1] "-indexes"
but if add manifest no luck !!!
manifest :
augeas{ 'default': context => "/files/etc/apache2/sites-enabled/default", notify => service["apache2"], changes => [ "set /virtualhost/directory[4]/directive[1]/arg[1] -indexes", ], } i have tried set command no luck
any ideas?
thanks
nads
ok fixed removed context , did following:
augeas{ 'default': #context => "/files/etc/apache2/sites-enabled/default", notify => service["apache2"], changes => [ "set /files/etc/apache2/sites-enabled/default/virtualhost/directory[4]/directive[1]/arg[1] -indexes", ], }
Comments
Post a Comment