Server IP : 104.21.14.103 / Your IP : 18.217.141.52 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/puppetlabs/puppet/share/augeas/lenses/dist/ |
Upload File : |
(* Module: AptCacherNGSecurity Lens for config files like the one found in /etc/apt-cacher-ng/security.conf About: License Copyright 2013 Erik B. Andersen; this file is licenced under the LGPL v2+. *) module AptCacherNGSecurity = autoload xfm (* Define a Username/PW pair *) let authpair = [ key /[^ \t:\/]*/ . del /:/ ":" . store /[^: \t\n]*/ ] (* Define a record. So far as I can tell, the only auth level supported is Admin *) let record = [ key "AdminAuth". del /[ \t]*:[ \t]*/ ": ". authpair . Util.del_str "\n"] (* Define the basic lens *) let lns = ( record | Util.empty | Util.comment )* let filter = incl "/etc/apt-cacher-ng/security.conf" . Util.stdexcl let xfm = transform lns filter