Support #1424
closedClick to expand module class list not working??
Description
Hi,
I don't know if this is the right place to ask this, I have looked for forums or mailing lists with no success...
The question is quite simple: is the 'Click to expand module class list' button when attaching classes to a host supposed to show all the classes available from an specific module? If so, how do I have to make the module to show all its classes listed below (now, each class has its own entry instead of being grouped by the module it belongs).
Thank you in advanced.
Notes:
- cat /etc/puppet/modules/local_pkgs/manifests/init.pp
import "another"
import "empty"
- cat /etc/puppet/modules/local_pkgs/manifests/another.pp
class another_1_0 {
package { another: ensure => "1.0" }
}
- cat /etc/puppet/modules/local_pkgs/manifests/empty.pp
class empty_2_0 {
package { empty: ensure => "2.0" }
}
When I add edit a host via Foreman, I want to see the name of the module ('local_pkgs') and when I click on it the classes it contains (another, empty). I attach what I see now.
Files
Updated by Ohad Levy over 12 years ago
- Status changed from New to Feedback
did you import your classes?
More --> puppet classes --> import
Updated by Carlos Cruz Luengo over 12 years ago
Yes, in fact I can attach those classes to hosts and everything works as expected. The only thing I can't get is the classes grouped by the module they belong, it seems like all classes are a module for theirselves.
Thanks!
Updated by Ohad Levy over 12 years ago
- Status changed from Feedback to Closed
Carlos Cruz Luengo wrote:
Yes, in fact I can attach those classes to hosts and everything works as expected. The only thing I can't get is the classes grouped by the module they belong, it seems like all classes are a module for theirselves.
Thanks!
oh, your class name should include the modulename
i.e.:
class local_pkgs::empty_2_0 {...