Error install plugin default-hostgroup

an error occurs when trying to install the default-hostgroup plugin

Expected outcome:

Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:

Other relevant data:

Did you try this option in addition?:


it doesn’t work that way either

Please don’t post screenshot. They are hard to read and impossible to search for. Please copy the text into a preformatted area (``` in a separate line before and after)

You have tried --enable-foreman-plugin-default-hostgroup-hostgroups and not --foreman-plugin-default-hostgroup-hostgroups

Did you configure the plugin in /etc/foreman/plugins/ ?

I apologize for the screenshots. Yes, I created a yaml file in /etc/foreman and filled it in, as in the example. After that, I restarted foreman, but still the group is not assigned automatically. Below is the code for filling in the file:

      "osfamily": "Debian"
      "lsbdistcodename": "bionic"
      "manufacturer": "VMware, Inc."

In fact, it does not work probably because of the missing plugin, because the config file should, as I understand it, appear itself after installation in /etc/foreman/plugins

[root@foreman]# foreman-installer --noop -v --enable-foreman-plugin-default-hostgroup-hostgroups
2021-08-12 12:02:01 [NOTICE] [root] Loading default values from puppet modules...
2021-08-12 12:02:06 [NOTICE] [root] ... finished
ERROR: Unrecognised option '--enable-foreman-plugin-default-hostgroup-hostgroups'

See: 'foreman-installer --help'

What version of the plugin do you have installed?

# rpm -q tfm-rubygem-foreman_default_hostgroup

There is no option --enable-foreman-plugin-default-hostgroup-hostgroups. The question was about an additional configuration of --foreman-plugin-default-hostgroup-hostgroups. What is shown as current setting for --foreman-plugin-default-hostgroup-hostgroups in foreman-installer?

It’s working now, thank you for your help. It turns out that the plugin was not installed. But now the problem is again: all hosts fall into the same group, and it is necessary that a group is assigned depending on the environment. is it possible to do this? Below is an example of my config

      "osfamily": "Ubuntu"
      "lsbdistcodename": "bionic"
      "osfamily": "CentOS"

Thanks, I figured it out myself. If someone needs it, below I publish a list of conditions that this plugin can check:

    "productname": "IBM System x -[7870K4G]-",
    "kernelmajversion": "2.6",
    "kernelversion": "2.6.32",
    "macaddress_vnet0": "FE:54:00:1E:45:13",
    "macaddress_br181": "E4:1F:13:CC:36:58",
    "macaddress_usb0": "E6:1F:13:D0:43:A3",
    "macaddress_vnet1": "FE:54:00:45:E5:3E",
    "rubysitedir": "/usr/lib/ruby/site_ruby/1.8",
    "macaddress_br182": "E4:1F:13:CC:36:58",
    "processor4": "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz",
    "macaddress_vnet2": "FE:54:00:93:F5:56",
    "macaddress_br183": "E4:1F:13:CC:36:58",
    "ps": "ps -ef",
    "processor5": "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz",
    "macaddress_vnet10": "FE:54:00:7D:F8:24",
    "uniqueid": "230a021b",
    "macaddress_vnet3": "FE:54:00:05:49:DE",
    "lsbdistcodename": "Santiago",
    "hardwareisa": "x86_64",
    "lsbdistrelease": "6.2",
    "processor6": "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz",
    "serialnumber": "abcdefg",
    "processor7": "Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz",
    "macaddress_vnet4": "FE:54:00:62:53:67",
    "hostname": "sinn1636.lan",
    "osfamily": "RedHat",
    "gateway_if": "br180",
    "lsbrelease": ":core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch",
    "kernelrelease": "2.6.32-131.12.1.el6.x86_64",
    "kernel": "Linux",
    "facterversion": "1.6.2",
    "uptime_seconds": "13651752",
    "macaddress_vnet5": "FE:54:00:01:B9:9C",
    "interfaces": "br180,br181,br182,br183,eth0,eth0_181,eth0_182,eth0_183,eth1,lo,usb0,vnet0,vnet1,vnet2,vnet3,vnet4,vnet5,vnet7,vnet10",
    "macaddress_vnet7": "FE:54:00:D8:F9:38",
    "netmask_br180": "",
    "macaddress_eth0": "E4:1F:13:CC:36:58",
    "is_virtual": "false",
    "macaddress": "E4:1F:13:CC:36:58",