I would suggest using foreman_hooks for this, have a look at https://github.com/theforeman/foreman_hooks
I've only ever use foreman_hooks for host create/destroy task but I think it can be used for what you want. Sean <https://github.com/theforeman/foreman_hooks> On Tuesday, 13 September 2016, Unix SA <[email protected]> wrote: > Hello, > > i have requirement to query my external CMDB, for different teams roles, > server life-cycle environment, group of servers belongs to some specific > group of application team, all those information and using those i want to > setup roles/permissions in katello/satello. > > I am planning to populate all information as yaml using node.rb by adding > some more code to query external CMDB, and by using those values i can > design where my host belongs to and to which application group and what all > users have permission to that host. > > Does anyone have any suggestion to make it better way? or extending > node.rb with all those information is the right way? > > if anyone has any experience before with similar or matching requirements ? > > Regards, > DJ > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','foreman-users%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
