/usr/share/augeas/lenses/dist/tests/test_kdump.aug is in augeas-lenses 1.4.0-0ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | (*
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
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 user@my.server.com
ssh user@my.server.com
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" }
{ "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" = "user@my.server.com" }
{ "ssh" = "user@my.server.com" }
{ "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" } }
|