I know Puppet classes tend to be assigned with two colons. But I don't fully understand what the :: does. When are two colons necessary for defining a class in a Puppet file?
Syntax. Puppet class and defined type names can consist of any number of namespace segments separated by the double colon ( :: ) namespace separator, analogous to the slash ( / ) in a file path.
Puppet code is made up mostly of resource declarations. A resource describes a specific element about the system's desired state. For example, it can include that a specific file should exist or a package should be installed. A Puppet program, called a manifest, has a file name that uses the ". pp" extension.
Advertisements. In Puppet, all the programs which are written using Ruby programming language and saved with an extension of . pp are called manifests. In general terms, all Puppet programs which are built with an intension of creating or managing any target host machine is called a manifest.
They are used for namespace seperators. It is analogous to the /
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With