Autoassign hosts to subnets

Hi,

when I deploy a new vm with foreman over hammer, I add the subnet as
argument und the host gets assiciated correctly ofc

but when I add an existing system to foreman with puppet, the interface is
not associated to a subnet automatically, is there a way to do so? I set
parameters like mailrelay over subnets

thanks in advance

funksen

Not directly, no. Hosts created from Puppet facts/reports are what we call
"unmanaged" hosts, which have all orchestration disabled. You might be able to
do what you want via the foreman_hooks[1] plugin though, take a look.

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

Greg

··· On Wednesday, 5 April 2017 13:19:11 BST funk sen wrote: > Hi, > > when I deploy a new vm with foreman over hammer, I add the subnet as > argument und the host gets assiciated correctly ofc > > > but when I add an existing system to foreman with puppet, the interface is > not associated to a subnet automatically, is there a way to do so? I set > parameters like mailrelay over subnets


IRC / Twitter: gwmngilfen
Diaspora: gwmngilfen@joindiaspora.com

thanks for the quick answer, I give it a try and post the result

··· On Wed, Apr 5, 2017 at 3:08 PM, Greg Sutcliffe wrote:

On Wednesday, 5 April 2017 13:19:11 BST funk sen wrote:

Hi,

when I deploy a new vm with foreman over hammer, I add the subnet as
argument und the host gets assiciated correctly ofc

but when I add an existing system to foreman with puppet, the interface
is
not associated to a subnet automatically, is there a way to do so? I set
parameters like mailrelay over subnets

Not directly, no. Hosts created from Puppet facts/reports are what we call
"unmanaged" hosts, which have all orchestration disabled. You might be
able to
do what you want via the foreman_hooks[1] plugin though, take a look.

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

Greg


IRC / Twitter: gwmngilfen
Diaspora: gwmngilfen@joindiaspora.com


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/foreman-users/f1ROiclHEkw/unsubscribe.
To unsubscribe from this group and all its topics, 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.