Need help in hostgroup mapping

Hi,

I am trying to create a hostgroup to map all the nodes having a custom
facter. I have installed the foreman_default_hostname 4.x plugin and I am
using foreman 1.12.3 version.

I have followed the below steps:

  1. Installed the foreman_default_hostname plugin
  2. Created the file /etc/foreman/plugins/default_hostname.yaml having below
    syntax:
··· ---

:default_hostgroup:
:facts_map:
“MY_FACT”:
“my_custom_fact”: “my_custom_fact_value”

  1. Restarted foreman and foreman-proxy service.

I am not able to see the hostgroup in foreman console. Please let me know
if I am missing anything here.

Thanks,
Sanjiv

Plugin name is: foreman-default-hostgroup. Can someone please help me with
this?

··· On Tuesday, January 10, 2017 at 9:48:16 AM UTC+5:30, Sanjiv wrote: > > Hi, > > I am trying to create a hostgroup to map all the nodes having a custom > facter. I have installed the foreman_default_hostname 4.x plugin and I am > using foreman 1.12.3 version. > > I have followed the below steps: > > 1. Installed the foreman_default_hostname plugin > 2. Created the file /etc/foreman/plugins/default_hostname.yaml having > below syntax: > --- > > :default_hostgroup: > :facts_map: > "MY_FACT": > "my_custom_fact": "my_custom_fact_value" > > 3. Restarted foreman and foreman-proxy service. > > I am not able to see the hostgroup in foreman console. Please let me know > if I am missing anything here. > > Thanks, > Sanjiv >