Server IP : 85.214.239.14 / Your IP : 18.222.161.57 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/root/usr/share/augeas/lenses/dist/ |
Upload File : |
(* -*- coding: utf-8 -*- Module: PuppetFileserver Parses /etc/puppet/fileserver.conf used by puppetmasterd daemon. Author: Frédéric Lespez <frederic.lespez@free.fr> About: Reference This lens tries to keep as close as possible to puppet documentation for this file: http://docs.puppetlabs.com/guides/file_serving.html About: License This file is licensed under the LGPL v2+, like the rest of Augeas. About: Lens Usage Sample usage of this lens in augtool * Create a new mount point > ins test_mount after /files/etc/puppet/fileserver.conf/*[last()] > defvar test_mount /files/etc/puppet/fileserver.conf/test_mount > set $test_mount/path /etc/puppet/files > set $test_mount/allow *.example.com > ins allow after $test_mount/*[last()] > set $test_mount/allow[last()] server.domain.com > set $test_mount/deny dangerous.server.com * List the definition of a mount point > print /files/etc/puppet/fileserver.conf/files * Remove a mount point > rm /files/etc/puppet/fileserver.conf/test_mount About: Configuration files This lens applies to /etc/puppet/fileserver.conf. See <filter>. *) module PuppetFileserver = autoload xfm (************************************************************************ * Group: USEFUL PRIMITIVES *************************************************************************) (* Group: INI File settings *) (* Variable: eol *) let eol = IniFile.eol (* Variable: sep Only treat one space as the sep, extras are stripped by IniFile *) let sep = Util.del_str " " (* Variable: comment Only supports "#" as commentary *) let comment = IniFile.comment "#" "#" (* Variable: entry_re Regexp for possible <entry> keyword (path, allow, deny) *) let entry_re = /path|allow|deny/ (************************************************************************ * Group: ENTRY *************************************************************************) (* View: entry - It might be indented with an arbitrary amount of whitespace - It does not have any separator between keywords and their values - It can only have keywords with the following values (path, allow, deny) *) let entry = IniFile.indented_entry entry_re sep comment (************************************************************************ * Group: RECORD *************************************************************************) (* Group: Title definition *) (* View: title Uses standard INI File title *) let title = IniFile.indented_title IniFile.record_re (* View: title Uses standard INI File record *) let record = IniFile.record title entry (************************************************************************ * Group: LENS *************************************************************************) (* View: lns Uses standard INI File lens *) let lns = IniFile.lns record comment (* Variable: filter *) let filter = (incl "/etc/puppet/fileserver.conf" .incl "/usr/local/etc/puppet/fileserver.conf" .incl "/etc/puppetlabs/puppet/fileserver.conf") let xfm = transform lns filter