Module with smart class parameter

52 views
Skip to first unread message

huhm4n

unread,
Aug 18, 2014, 5:32:50 PM8/18/14
to puppet...@googlegroups.com
Hi, I am trying to create a module with smart class parameter. Actually, the simple one like

user { "$users":
       ensure => "present",
       uid => "$uid",
       gid => "$gid",
       }


I want to edit these functions via gui before pushing it out. What can be the solution? or can anyone give me link to the documentation on this one? Thanks in advance

jcbollinger

unread,
Aug 19, 2014, 9:45:28 AM8/19/14
to puppet...@googlegroups.com


I'm not clear on what you mean by a "smart" class parameter.  Moreover, the example you provide is of a resource declaration, not a class definition.  Perhaps, though, you should look into Puppet's provisions for automatic class parameter binding via Hiera.  You could create a GUI for your Hiera data, and maybe that would serve your purpose.


John

Yanis Guenane

unread,
Aug 19, 2014, 12:06:47 PM8/19/14
to puppet...@googlegroups.com
I've come across the word 'Smart Class' only when dealing with Foreman.

And typically Foreman would totally do what you seem to be asking for.
Take a look http://theforeman.org/

--
Yanis Guenane
Reply all
Reply to author
Forward
0 new messages