Manually adding new hosts to a Host Group

Is there a way to add a new host to a Host Group from the command
line. I'm using the 'puppet agent sign --all' command but after that I
want to run a command to place a system into the correct host group from
the command line.

Is this possible??

Thanks

I resolved my own issue…

Install the following plugin (Deafult Host group) allowed me to set a
default host group.

https://github.com/theforeman/foreman_default_hostgroup/

··· On Wednesday, March 8, 2017 at 4:47:30 AM UTC-5, Clarence H wrote: > > > Is there a way to add a new host to a Host Group from the command > line. I'm using the 'puppet agent sign --all' command but after that I > want to run a command to place a system into the correct host group from > the command line. > > Is this possible?? > > Thanks >

>
> Is there a way to add a new host to a Host Group from the command
> line. I'm using the 'puppet agent sign --all' command but after that I
> want to run a command to place a system into the correct host group from
> the command line.
>
> Is this possible??
>

Just to follow up, you can simply use foreman CLI (hammer) to update the
hostgroup attribute of your hosts.

Ohad

··· On Tue, Mar 7, 2017 at 11:37 PM, Clarence H wrote:

Thanks


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.