Is there a way to set environment and host groups in foreman according to FQDN?

All the information is in our FQDN. Is there a way to have foreman parse it
and set environment and host group automaticly? Thanks.

Cheers,
Pan

So what you say is FQDN in format of:

host.hostgroup.environment.example.com

and you want Foreman to determine that once you enter hostname?

I am not aware of this feature, patches are welcomed.

LZ

··· On Tue, Sep 17, 2013 at 02:03:50PM -0700, Pan Luo wrote: > All the information is in our FQDN. Is there a way to have foreman parse it > and set environment and host group automaticly? Thanks. > > Cheers, > Pan > > -- > 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 foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman