403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.145.96.163
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/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_kdump.aug
(*
Module: Test_Kdump
  Provides unit tests and examples for the <Kdump> lens.
*)

module Test_Kdump =

   let conf = "# this is a comment
#another commented line

#comment after empty line
#
#comment after empty comment
auto_reset_crashkernel yes
path /var/crash  #comment after entry
core_collector makedumpfile -c
default poweroff
raw /dev/sda5
ext3 /dev/sda3
net my.server.com:/export/tmp
nfs my.server.com:/export/tmp
net [email protected]
ssh [email protected]
link_delay 60
kdump_pre /var/crash/scripts/kdump-pre.sh
kdump_post /var/crash/scripts/kdump-post.sh
#extra_bins /usr/bin/lftp /a/b/c
extra_bins /usr/bin/lftp  	   /a/b/c  # comment
disk_timeout 30
extra_modules gfs2 extra modules more
options babla 	 labl 	 kbak 	 	 df=dfg
options babla 	 labl 	 kbak 	 	 df=dfg
options babla 	 labl 	 kbak 	 	 df=dfg  # comment
sshkey /root/.ssh/kdump_id_rsa
force_rebuild 1
override_resettable 1
dracut_args --omit-drivers \"cfg80211 snd\" --add-drivers \"ext2 ext3\"
fence_kdump_args -p 7410 -f auto
fence_kdump_nodes 192.168.1.10 10.34.63.155
debug_mem_level 3
blacklist gfs2
"

  (* Test: Kdump.lns
     Check whole config file *)
  test Kdump.lns get conf =
    { "#comment" = "this is a comment" }
    { "#comment" = "another commented line" }
    {  }
    { "#comment" = "comment after empty line" }
    {  }
    { "#comment" = "comment after empty comment" }
    { "auto_reset_crashkernel" = "yes" }
    { "path" = "/var/crash"
      { "#comment" = "comment after entry" } }
    { "core_collector" = "makedumpfile -c" }
    { "default" = "poweroff" }
    { "raw" = "/dev/sda5" }
    { "ext3" = "/dev/sda3" }
    { "net" = "my.server.com:/export/tmp" }
    { "nfs" = "my.server.com:/export/tmp" }
    { "net" = "[email protected]" }
    { "ssh" = "[email protected]" }
    { "link_delay" = "60" }
    { "kdump_pre" = "/var/crash/scripts/kdump-pre.sh" }
    { "kdump_post" = "/var/crash/scripts/kdump-post.sh" }
    { "#comment" = "extra_bins /usr/bin/lftp /a/b/c" }
    { "extra_bins"
      { "1" = "/usr/bin/lftp" }
      { "2" = "/a/b/c" }
      { "#comment" = "comment" } }
    { "disk_timeout" = "30" }
    { "extra_modules"
      { "1" = "gfs2" }
      { "2" = "extra" }
      { "3" = "modules" }
      { "4" = "more" } }
    { "options"
      { "babla"
        { "labl" }
        { "kbak" }
        { "df" = "dfg" } } }
    { "options"
      { "babla"
        { "labl" }
        { "kbak" }
        { "df" = "dfg" } } }
    { "options"
      { "babla"
        { "labl" }
        { "kbak" }
        { "df" = "dfg" } }
      { "#comment" = "comment" } }
    { "sshkey" = "/root/.ssh/kdump_id_rsa" }
    { "force_rebuild" = "1" }
    { "override_resettable" = "1" }
    { "dracut_args" = "--omit-drivers \"cfg80211 snd\" --add-drivers \"ext2 ext3\"" }
    { "fence_kdump_args" = "-p 7410 -f auto" }
    { "fence_kdump_nodes"
      { "1" = "192.168.1.10" }
      { "2" = "10.34.63.155" } }
    { "debug_mem_level" = "3" }
    { "blacklist"
      { "1" = "gfs2" } }

Youez - 2016 - github.com/yon3zu
LinuXploit