Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does :: mean or do in Puppet?

Tags:

puppet

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?

like image 626
Propulsion Avatar asked May 27 '15 06:05

Propulsion


People also ask

What is double colon in Puppet?

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.

What is Puppet code?

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.

What are Puppet manifests?

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.


1 Answers

They are used for namespace seperators. It is analogous to the /

like image 146
Rahul Tripathi Avatar answered Oct 03 '22 03:10

Rahul Tripathi