Rex::Gr...p::File(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the Rex::Gr...p::File(3) page β€” it's from the User Contributed Perl Documentation β€” and the module is literally Rex::Group::Lookup::File: read hostnames from a file. πŸŽ€

🌸 DESCRIPTION 🌸

With this module you can define hostgroups out of a file. That's the whole vibe: file goes in, hostgroups come out, slay. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, here's the exact energy:

use Rex::Group::Lookup::File;
group "webserver" => lookup_file("./hosts.lst");

πŸŽ€ EXPORTED FUNCTIONS πŸŽ€

πŸ’– lookup_file($file) πŸ’–

With this function you can read hostnames from a file β€” every hostname in one line, fr fr. no cap. ✨

like, lowkey iconic:

group "webserver"  => lookup_file("./webserver.lst");
group "mailserver" => lookup_file("./mailserver.lst");

mwah πŸ’‹ this page is serving perl v5.42.3 and is dated 2023-08-05 β€” bye bestie, go read those hostnames πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from