Limit host provisioning

Hi mailing list,

I wonder if there is a way to limit host provisioning, for example assigning this limit to a hostgroup

Cheers,
Hello,

if by limit you mean something like there can exist only 5 hosts in this hostgroup, there's nothing like that in core AFAIK. If you use some compute resource, chance is limits/quotas can be set there. If you don't need hard limits and you simply want prevent users from misusing resources, there's a plugin foreman expire hosts [1] that could help.

[1] https://github.com/theforeman/foreman_expire_hosts


··· --
Marek

Dne pondělí 27. listopadu 2017 8:05:27 CET, Alejandro Cortina napsal(a):
Hi mailing list,

I wonder if there is a way to limit host provisioning, for example
assigning this limit to a hostgroup

Cheers,
thanks for reply

limit you mean something like there can exist only 5 hosts in this

yes, that is exactly what we need. My idea is that we can assign a hostgroup to a team so they can spin-up and destroy vmachines within specified limits.

since we are using different compute resources (ovirt and vmware) I was hoping to limit within foreman so I don't have to do it on target hypervisors


··· On Monday, November 27, 2017 at 4:17:45 PM UTC+9, Marek Hulán wrote:

Hello,

if by limit you mean something like there can exist only 5 hosts in this
hostgroup, there's nothing like that in core AFAIK. If you use some
compute
resource, chance is limits/quotas can be set there. If you don't need hard
limits and you simply want prevent users from misusing resources, there's
a
plugin foreman expire hosts [1] that could help.

[1] https://github.com/theforeman/foreman_expire_hosts

--
Marek

Dne pondělí 27. listopadu 2017 8:05:27 CET, Alejandro Cortina napsal(a):
Hi mailing list,

I wonder if there is a way to limit host provisioning, for example
assigning this limit to a hostgroup

Cheers,