Server IP : 85.214.239.14 / Your IP : 3.141.46.108 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/proc/2/task/2/root/usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_ntp = let conf = "# # Fichier genere par puppet # Environnement: development server dns01.echo-net.net version 3 server dns02.echo-net.net version 4 driftfile /var/lib/ntp/ntp.drift restrict default ignore #server dns01.echo-net.net restrict 192.168.0.150 nomodify # allow everything from localhost restrict 127.0.0.1 logfile /var/log/ntpd statsdir /var/log/ntpstats/ ntpsigndsocket /var/lib/samba/ntp_signd statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable link filegen peerstats file peerstats type day disable filegen clockstats file clockstats type day enable nolink interface ignore wildcard interface listen 127.0.0.1 " test Ntp.lns get conf = { "#comment" = "" } { "#comment" = "Fichier genere par puppet" } { "#comment" = "Environnement: development" } {} { "server" = "dns01.echo-net.net" { "version" = "3" } } { "server" = "dns02.echo-net.net" { "version" = "4" } } {} { "driftfile" = "/var/lib/ntp/ntp.drift" } {} { "restrict" = "default" { "action" = "ignore" } } {} { "#comment" = "server dns01.echo-net.net" } { "restrict" = "192.168.0.150" { "action" = "nomodify" } } {} { "#comment" = "allow everything from localhost" } { "restrict" = "127.0.0.1" } {} { "logfile" = "/var/log/ntpd" } { "statsdir" = "/var/log/ntpstats/" } { "ntpsigndsocket" = "/var/lib/samba/ntp_signd" } {} { "statistics" { "loopstats" } { "peerstats" } { "clockstats" } } { "filegen" = "loopstats" { "file" = "loopstats" } { "type" = "day" } { "enable" = "enable" } { "link" = "link" } } { "filegen" = "peerstats" { "file" = "peerstats" } { "type" = "day" } { "enable" = "disable" } } { "filegen" = "clockstats" { "file" = "clockstats" } { "type" = "day" } { "enable" = "enable" } { "link" = "nolink" } } { } { "interface" { "action" = "ignore" } { "addresses" = "wildcard" } } { "interface" { "action" = "listen" } { "addresses" = "127.0.0.1" } } (* Some things needed to process the default ntp.conf on Fedora *) test Ntp.lns get "server 66.187.233.4 # added by /sbin/dhclient-script\n" = { "server" = "66.187.233.4" { "#comment" = "# added by /sbin/dhclient-script" } } test Ntp.lns get "server 0.fedora.pool.ntp.org iburst dynamic\n" = { "server" = "0.fedora.pool.ntp.org" { "iburst" } { "dynamic" } } test Ntp.lns get "restrict 127.0.0.1 \n" = { "restrict" = "127.0.0.1" } test Ntp.lns get "restrict default kod nomodify notrap nopeer noquery\n" = { "restrict" = "default" { "action" = "kod" } { "action" = "nomodify" } { "action" = "notrap" } { "action" = "nopeer" } { "action" = "noquery" } } test Ntp.lns put "restrict default kod nomodify notrap nopeer noquery\n" after insb "ipv6" "restrict/action[1]" = "restrict -6 default kod nomodify notrap nopeer noquery\n" test Ntp.lns get "restrict -6 default kod nomodify notrap nopeer noquery\n" = { "restrict" = "default" { "ipv6" } { "action" = "kod" } { "action" = "nomodify" } { "action" = "notrap" } { "action" = "nopeer" } { "action" = "noquery" } } test Ntp.lns put "restrict default kod nomodify notrap nopeer noquery\n" after insb "ipv4" "restrict/action[1]" = "restrict -4 default kod nomodify notrap nopeer noquery\n" test Ntp.lns get "restrict -4 default notrap nomodify nopeer noquery\n" = { "restrict" = "default" { "ipv4" } { "action" = "notrap" } { "action" = "nomodify" } { "action" = "nopeer" } { "action" = "noquery" } } test Ntp.lns get "includefile /etc/ntp/crypto/pw\n" = { "includefile" = "/etc/ntp/crypto/pw" } test Ntp.lns get "fudge 127.127.1.0 stratum 10\n" = { "fudge" = "127.127.1.0" { "stratum" = "10" } } test Ntp.lns get "broadcast 192.168.1.255 key 42\n" = { "broadcast" = "192.168.1.255" { "key" = "42" } } test Ntp.lns get "multicastclient 224.0.1.1\n" = { "multicastclient" = "224.0.1.1" } test Ntp.lns put "broadcastclient\tnovolley # broadcast\n" after rm "/*/novolley" = "broadcastclient # broadcast\n" test Ntp.auth_command get "trustedkey 4 8 42\n" = { "trustedkey" { "key" = "4" } { "key" = "8" } { "key" = "42" } } test Ntp.auth_command get "trustedkey 42\n" = { "trustedkey" { "key" = "42" } } test Ntp.lns get "broadcastdelay 0.008\n" = { "broadcastdelay" = "0.008" } test Ntp.lns get "enable auth calibrate\ndisable kernel stats\n" = { "enable" { "flag" = "auth" } { "flag" = "calibrate" } } { "disable" { "flag" = "kernel" } { "flag" = "stats" } } (* Bug #103: tinker directive *) test Ntp.tinker get "tinker panic 0 huffpuff 3.14\n" = { "tinker" { "panic" = "0" } { "huffpuff" = "3.14" } } (* Bug #297: tos directive *) test Ntp.tos get "tos maxdist 16\n" = { "tos" { "maxdist" = "16" } }