We, as many other shops, have a server naming standard including a
numbering scheme. Is there any somewhat simple way to get Foreman to call
an external script on host creation to retrieve the next available server
name and populate the hostname field in the 'new host' form with this?
As a quick, but not-so-easy solution, I can suggest you to monkey-patch our
name generator:
For a better solution, please file a new feature request into our redmine.
Thanks!
Shim.
···
On Friday, May 5, 2017 at 4:31:16 PM UTC+3, AdamW wrote:
>
> Hello,
>
> We, as many other shops, have a server naming standard including a
> numbering scheme. Is there any somewhat simple way to get Foreman to call
> an external script on host creation to retrieve the next available server
> name and populate the hostname field in the 'new host' form with this?
>
> Thanks!
>
> Regards,
> Adam
>
As a quick, but not-so-easy solution, I can suggest you to monkey-patch
our name generator: https://github.com/theforeman/foreman/blob/
develop/app/services/name_generator.rb
For a better solution, please file a new feature request into our redmine.
Thanks!
Shim.
On Friday, May 5, 2017 at 4:31:16 PM UTC+3, AdamW wrote:
Hello,
We, as many other shops, have a server naming standard including a
numbering scheme. Is there any somewhat simple way to get Foreman to call
an external script on host creation to retrieve the next available server
name and populate the hostname field in the ‘new host’ form with this?