"Puppet Classes" tab on host edit screen gone

I've upgraded foreman on Ubuntu LTS. This seemed to wipe out the database
which was no big deal since I was testing, but after setting things back up
I no longer have the "puppet classes" tab in the host edit screen. I do
have Host, Parameters and Additional Information. I've done the import from
the puppet master and I can even see the "puppet classes" tab in the host
groups. I can add general parameters, just not ones directly out of puppet.

Any idea how I can regain this functionality?

Thanks,
JSR/

The code shows that you need at least one SmartProxy puppet proxy set up for the "Puppet Classes" tab to be viable.

/app/views/hosts/_form.html.erb

  <% if SmartProxy.puppet_proxies.count > 0 -%>
    <li><a href="#puppet_klasses" data-toggle="tab"><%= _('Puppet Classes') -%></a></li>
  <% end -%>

I hope that helps.

Joseph Magen
Redhat

··· ----- Original Message ----- From: "Josiah Ritchie" To: foreman-users@googlegroups.com Sent: Tuesday, July 23, 2013 9:24:13 PM Subject: [foreman-users] "Puppet Classes" tab on host edit screen gone

I’ve upgraded foreman on Ubuntu LTS. This seemed to wipe out the database
which was no big deal since I was testing, but after setting things back up
I no longer have the “puppet classes” tab in the host edit screen. I do
have Host, Parameters and Additional Information. I’ve done the import from
the puppet master and I can even see the “puppet classes” tab in the host
groups. I can add general parameters, just not ones directly out of puppet.

Any idea how I can regain this functionality?

Thanks,
JSR/


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

That's good additional info. I do have one SmartProxy and it was used to
import the puppet classes that the Host Groups area can find. Perhaps it is
getting the count wrong somehow?

··· On Tue, Jul 23, 2013 at 3:20 PM, Joseph Magen wrote:

The code shows that you need at least one SmartProxy puppet proxy set up
for the “Puppet Classes” tab to be viable.

/app/views/hosts/_form.html.erb

  <% if SmartProxy.puppet_proxies.count > 0 -%>
    <li><a href="#puppet_klasses" data-toggle="tab"><%= _('Puppet

Classes’) -%>
<% end -%>

I hope that helps.

Joseph Magen
Redhat

----- Original Message -----
From: “Josiah Ritchie” josiah.ritchie@gmail.com
To: foreman-users@googlegroups.com
Sent: Tuesday, July 23, 2013 9:24:13 PM
Subject: [foreman-users] “Puppet Classes” tab on host edit screen gone

I’ve upgraded foreman on Ubuntu LTS. This seemed to wipe out the database
which was no big deal since I was testing, but after setting things back up
I no longer have the “puppet classes” tab in the host edit screen. I do
have Host, Parameters and Additional Information. I’ve done the import from
the puppet master and I can even see the “puppet classes” tab in the host
groups. I can add general parameters, just not ones directly out of puppet.

Any idea how I can regain this functionality?

Thanks,
JSR/


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


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

Do you have locations and/or organisations enabled?

I hit this the other day and it turned out to be that I hadn't added the
smart proxy to the org I was currently using.

··· On 23/07/13 20:25, Josiah Ritchie wrote: > That's good additional info. I do have one SmartProxy and it was used to > import the puppet classes that the Host Groups area can find. Perhaps it > is getting the count wrong somehow?


Dominic Cleal
Red Hat Engineering

Bingo, that's exactly what it was. Thanks Dominic!

··· On Wed, Jul 24, 2013 at 3:24 AM, Dominic Cleal wrote:

On 23/07/13 20:25, Josiah Ritchie wrote:

That’s good additional info. I do have one SmartProxy and it was used to
import the puppet classes that the Host Groups area can find. Perhaps it
is getting the count wrong somehow?

Do you have locations and/or organisations enabled?

I hit this the other day and it turned out to be that I hadn’t added the
smart proxy to the org I was currently using.


Dominic Cleal
Red Hat Engineering


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