Project

General

Profile

Actions

Support #1424

closed

Click to expand module class list not working??

Added by Carlos Cruz Luengo over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

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:

  1. cat /etc/puppet/modules/local_pkgs/manifests/init.pp
    import "another"
    import "empty"
  1. cat /etc/puppet/modules/local_pkgs/manifests/another.pp
    class another_1_0 {
    package { another: ensure => "1.0" }
    }
  1. 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

foreman.png View foreman.png 38.8 KB What I see now Carlos Cruz Luengo, 01/03/2012 07:56 AM
Actions #1

Updated by Ohad Levy over 12 years ago

  • Status changed from New to Feedback

did you import your classes?

More --> puppet classes --> import

Actions #2

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!

Actions #3

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 {...

Actions #4

Updated by Carlos Cruz Luengo over 12 years ago

Thank you very much, solved! :)

Actions

Also available in: Atom PDF