I have created a module in puppet named patchmgmt and inside my init.pp file, i have defined my class name same as my module name. Do i need to declare my class or having the class name same as module name will do the magic.

  • The class name should be the same as the module name. I'm unsure if there's a further question, or if it isn't working. – Dominic Cleal Jan 4 '17 at 11:36
  • Didn't answer my question. Do i need to declare my class inside init.pp – Rajnish Kumar Soni Jan 4 '17 at 12:40
  • Yes, class patchmgmt { ... }. – Dominic Cleal Jan 4 '17 at 13:49
  • Thanks Dominic, I got that. Actually i was using foreman to deploy my manifests and got to know that when using foreman, you don't need to declare class. you just need to attach the manfest to the server. It automatically declare the class. – Rajnish Kumar Soni Jan 5 '17 at 5:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.