Ask Your Question

A question related to classes in puppet

asked 2017-06-14 22:11:15 -0500

rohithmn03 gravatar image

Hi Team,

I an new to puppet. I have seen few classes in puppet like below,

class splunk_install::files

What is ::files indicate here..!? Why can't we just write class splunk_install ..! I just want to know the importance of ::files here..!?

Regards, Rohith

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-15 00:44:59 -0500

rajeevsharma gravatar image

If you have gone through the document you have seen that that's a namespace definition. In simple terms when you define class splunk_install that refers to your init.pp (initialization) file in manifests directory which has been taken by default. if you define multiple manifests (pp files) in your manifests directory then you must refer them with ::. For more info you can look here.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-06-14 22:11:15 -0500

Seen: 18 times

Last updated: Jun 15