I'm looking at a module for learning purposes. My understanding was that everything needs to be in a class or definition, however below the module has a definition in init.pp however after the definiton "define netb {...} a new code block is started "{}", my thoughts run to what is this code block? what is its role and how does it fit in the scope of the module? Is this code block executed after some point or is it dependent on the "define netb" statement?
define netb (
$ifb,
) {
.....do something here with code e.g. set variables or check conditionins
}
Appreciate any guidance on this.
Thanks Dan