Ignore Salt reports from hosts not managed by Foreman

We have salt-master which manages ec2 instances. Also we installed Foreman
to manage about 70 bare metal servers. We successfully installed and
configured salt-plugin and salt-proxy to manage bare metal servers via
existing salt-master. But now we are receiving reports for salt jobs from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare metal
serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use foreman-node it's
going to do it for every host, and that also triggers a host creation as
grains are uploaded then.

··· ----- Original Message ----- > From: "Denis Kot" > To: "Foreman users" > Sent: Tuesday, April 19, 2016 2:54:34 AM > Subject: [foreman-users] Ignore Salt reports from hosts not managed by Foreman > > > We have salt-master which manages ec2 instances. Also we installed Foreman > to manage about 70 bare metal servers. We successfully installed and > configured salt-plugin and salt-proxy to manage bare metal servers via > existing salt-master. But now we are receiving reports for salt jobs from > all hosts, not only managed by Foreman. > Is it possible to ignore such reports? Because instead of 70 bare metal > serves now in list we have more than 300 servers.

I see. I found option :upload_grains: in /etc/salt/foreman.yaml but can't
find what this option does.

Denis Kot
Skype: kot.denis

··· 2016-04-19 13:37 GMT+02:00 Stephen Benjamin :

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 2:54:34 AM
Subject: [foreman-users] Ignore Salt reports from hosts not managed by
Foreman

We have salt-master which manages ec2 instances. Also we installed
Foreman
to manage about 70 bare metal servers. We successfully installed and
configured salt-plugin and salt-proxy to manage bare metal servers via
existing salt-master. But now we are receiving reports for salt jobs from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare metal
serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use foreman-node it’s
going to do it for every host, and that also triggers a host creation as
grains are uploaded then.


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/TKZE8UewDu4/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.

> From: "Denis Kot" <denis.kot@gmail.com>
> To: foreman-users@googlegroups.com
> Sent: Tuesday, April 19, 2016 7:47:08 AM
> Subject: Re: [foreman-users] Ignore Salt reports from hosts not managed by Foreman
>
> I see. I found option :upload_grains: in /etc/salt/foreman.yaml but can't
> find what this option does.

That would turn off grain uploads, but not reports

··· ----- Original Message -----

Denis Kot
Skype: kot.denis

2016-04-19 13:37 GMT+02:00 Stephen Benjamin stephen@redhat.com:

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 2:54:34 AM
Subject: [foreman-users] Ignore Salt reports from hosts not managed by
Foreman

We have salt-master which manages ec2 instances. Also we installed
Foreman
to manage about 70 bare metal servers. We successfully installed and
configured salt-plugin and salt-proxy to manage bare metal servers via
existing salt-master. But now we are receiving reports for salt jobs from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare metal
serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use foreman-node it’s
going to do it for every host, and that also triggers a host creation as
grains are uploaded then.


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/TKZE8UewDu4/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.


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.

> From: "Stephen Benjamin" <stephen@redhat.com>
> To: foreman-users@googlegroups.com
> Sent: Tuesday, April 19, 2016 8:35:02 AM
> Subject: Re: [foreman-users] Ignore Salt reports from hosts not managed by Foreman
>
>
>
> > From: "Denis Kot" <denis.kot@gmail.com>
> > To: foreman-users@googlegroups.com
> > Sent: Tuesday, April 19, 2016 7:47:08 AM
> > Subject: Re: [foreman-users] Ignore Salt reports from hosts not managed by
> > Foreman
> >
> > I see. I found option :upload_grains: in /etc/salt/foreman.yaml but can't
> > find what this option does.
>
> That would turn off grain uploads, but not reports

Actually, there's two settings in Foreman:

create_new_host_when_report_is_uploaded
create_new_host_when_facts_are_uploaded

Maybe try those?

foreman_salt should obey both of them, so we won't create hosts for you, but existing
hosts will get reports and grains.

  • Stephen
··· ----- Original Message ----- > ----- Original Message -----

Denis Kot
Skype: kot.denis

2016-04-19 13:37 GMT+02:00 Stephen Benjamin stephen@redhat.com:

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 2:54:34 AM
Subject: [foreman-users] Ignore Salt reports from hosts not managed by
Foreman

We have salt-master which manages ec2 instances. Also we installed
Foreman
to manage about 70 bare metal servers. We successfully installed and
configured salt-plugin and salt-proxy to manage bare metal servers via
existing salt-master. But now we are receiving reports for salt jobs
from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare metal
serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use foreman-node it’s
going to do it for every host, and that also triggers a host creation as
grains are uploaded then.


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/TKZE8UewDu4/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.


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.


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.

Thanks. Found them in Puppet settings. Set both to false, let's see.

Denis Kot

··· 2016-04-19 14:38 GMT+02:00 Stephen Benjamin :

----- Original Message -----

From: “Stephen Benjamin” stephen@redhat.com
To: foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 8:35:02 AM
Subject: Re: [foreman-users] Ignore Salt reports from hosts not managed
by Foreman

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 7:47:08 AM
Subject: Re: [foreman-users] Ignore Salt reports from hosts not
managed by

Foreman

I see. I found option :upload_grains: in /etc/salt/foreman.yaml but
can’t

find what this option does.

That would turn off grain uploads, but not reports

Actually, there’s two settings in Foreman:

create_new_host_when_report_is_uploaded
create_new_host_when_facts_are_uploaded

Maybe try those?

foreman_salt should obey both of them, so we won’t create hosts for you,
but existing
hosts will get reports and grains.

  • Stephen

Denis Kot
Skype: kot.denis

2016-04-19 13:37 GMT+02:00 Stephen Benjamin stephen@redhat.com:

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 2:54:34 AM
Subject: [foreman-users] Ignore Salt reports from hosts not
managed by

Foreman

We have salt-master which manages ec2 instances. Also we installed
Foreman
to manage about 70 bare metal servers. We successfully installed
and

configured salt-plugin and salt-proxy to manage bare metal servers
via

existing salt-master. But now we are receiving reports for salt
jobs

from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare
metal

serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use foreman-node
it’s

going to do it for every host, and that also triggers a host
creation as

grains are uploaded then.


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/TKZE8UewDu4/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.


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.


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.


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/TKZE8UewDu4/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.

No, doesn't work. After cleaning unmanaged hosts they appeared again.

Denis Kot
Skype: kot.denis

··· 2016-04-19 14:56 GMT+02:00 Denis Kot :

Thanks. Found them in Puppet settings. Set both to false, let’s see.

Denis Kot

2016-04-19 14:38 GMT+02:00 Stephen Benjamin stephen@redhat.com:

----- Original Message -----

From: “Stephen Benjamin” stephen@redhat.com
To: foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 8:35:02 AM
Subject: Re: [foreman-users] Ignore Salt reports from hosts not managed
by Foreman

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 7:47:08 AM
Subject: Re: [foreman-users] Ignore Salt reports from hosts not
managed by

Foreman

I see. I found option :upload_grains: in /etc/salt/foreman.yaml but
can’t

find what this option does.

That would turn off grain uploads, but not reports

Actually, there’s two settings in Foreman:

create_new_host_when_report_is_uploaded
create_new_host_when_facts_are_uploaded

Maybe try those?

foreman_salt should obey both of them, so we won’t create hosts for you,
but existing
hosts will get reports and grains.

  • Stephen

Denis Kot
Skype: kot.denis

2016-04-19 13:37 GMT+02:00 Stephen Benjamin stephen@redhat.com:

----- Original Message -----

From: “Denis Kot” denis.kot@gmail.com
To: “Foreman users” foreman-users@googlegroups.com
Sent: Tuesday, April 19, 2016 2:54:34 AM
Subject: [foreman-users] Ignore Salt reports from hosts not
managed by

Foreman

We have salt-master which manages ec2 instances. Also we installed
Foreman
to manage about 70 bare metal servers. We successfully installed
and

configured salt-plugin and salt-proxy to manage bare metal
servers via

existing salt-master. But now we are receiving reports for salt
jobs

from
all hosts, not only managed by Foreman.
Is it possible to ignore such reports? Because instead of 70 bare
metal

serves now in list we have more than 300 servers.

Not at the moment, you could file an feature request in Redmine.

Upload-salt-reports uploads them all, and report triggers
a host creation. Likewise, if salt is configured to use
foreman-node it’s

going to do it for every host, and that also triggers a host
creation as

grains are uploaded then.


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/TKZE8UewDu4/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.


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.


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.


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/TKZE8UewDu4/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.