<div dir="ltr"><div>The reason is that the openshift configuration in the lens is in the /var/www directory instead of under /etc.</div><div><br></div><div>(* Variable: filter *)</div><div>let filter =  incl "/var/www/openshift/console/httpd/httpd.conf"</div>
<div>            . incl "/var/www/openshift/console/httpd/conf.d/*.conf"</div><div>            . incl "/var/www/openshift/broker/httpd/conf.d/*.conf"</div><div>            . incl "/var/www/openshift/broker/httpd/httpd.conf"</div>
<div>            . incl "/var/www/openshift/console/httpd/console.conf"</div><div>            . incl "/var/www/openshift/broker/httpd/broker.conf"</div><div><br></div><div><br></div><div> IMHO putting config files under /var/www is not FHS compliant, and should be in /etc. However, to get going in meanwhile, you can add your config files to augeas and tell which lens to use to parse them:<br>
</div><div><br></div><div>$ cat /etc/foo.conf</div><div><div><FooConf></div><div>  BarDirective arg0 arg1 arg2 arg3</div><div></FooConf></div></div><div><br></div><div>$ augtool</div><div><div>augtool> set /augeas/load/OpenShift_Http/incl[last()+1] /etc/foo.conf</div>
<div>augtool> load </div><div>augtool> ls /augeas/files/etc/foo.conf/</div><div>path = /files/etc/foo.conf</div><div>mtime = 1409507012</div><div>lens/ = @OpenShift_Http</div><div>augtool> print /files/etc/foo.conf/</div>
<div>/files/etc/foo.conf</div><div>/files/etc/foo.conf/FooConf</div><div>/files/etc/foo.conf/FooConf/directive = "BarDirective"</div><div>/files/etc/foo.conf/FooConf/directive/arg[1] = "arg0"</div><div>
/files/etc/foo.conf/FooConf/directive/arg[2] = "arg1"</div><div>/files/etc/foo.conf/FooConf/directive/arg[3] = "arg2"</div><div>/files/etc/foo.conf/FooConf/directive/arg[4] = "arg3"</div></div>
<div><br></div><div>And then you are all set ;-)</div><div><br></div><div>Cheers,</div><div><br></div><div>Francis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-21 12:13 GMT-04:00 Alexandre Aguiar <span dir="ltr"><<a href="mailto:asouzaaguiar@gmail.com" target="_blank">asouzaaguiar@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I trying setup a openshift environment but augtool simply cant see the /etc/openshift directory.</div>
<div><br></div><div><div>augtool> </div><div>augtool> ls /files/etc/openshift</div>
<div>augtool> print /files/etc/broker.conf</div><div>augtool> </div></div><div><br></div><div>Someone can help.</div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Alexandre Aguiar</div>
</font></span></div>
<br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br></div>