Puppet: System Administration Automated

Support

Ticket #358 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Ressources seem not to be exported

Reported by: mart Assigned to: luke
Priority: normal Milestone:
Component: puppet Version: 0.20.1
Severity: normal Keywords: export
Cc: Triage Stage:
Attached Patches: Complexity:

Description

The following class should produce some notifys when included, but it doesn't:

define naggo($host) {
  notify {
    $name :
    message => "Naggo $name -- $host"
  }
}
class naggi {
  @@naggo { "schnu" :
     host => $hostname
  }
  naggo <<||>>
}

Change History

12/03/06 22:28:18 changed by puppet

I am experiencing something similar:

define munin_node($port){
   # in the real configuration, this would have to do more
   file { "/etc/munin/$hostname-$port": ensure => present }
}

node A,B,C,D { @@munin_node{ node: port => 4950) }
node collector { Munin_node <<||>> }

The files are created on A-D, but not on collector, where I'd like to have them.

12/03/06 23:06:30 changed by puppet

As Luke advised on IRC, I tried to export the file instead of the defined type, but

define munin_node($port){
   # in the real configuration, this would have to do more
   @@file { munin_def: path => "/etc/munin/$hostname-$port": ensure => present }
}

node A,B,C,D { munin_node{ node: port => 4950) }
node collector { File <<| title == munin_def |>> }

still created the file on the nodes and not on the collector.

12/04/06 02:35:35 changed by luke

  • keywords set to export.
  • status changed from new to assigned.
  • milestone set to minor.

I've managed to replicate this on my system, embarrassingly.

It'll be fixed in the next release, which will be out in December at some point.

12/27/06 21:35:54 changed by luke

  • status changed from assigned to closed.
  • resolution set to fixed.

This is now fixed, as of the recent rails changes.

04/04/07 00:41:05 changed by

  • milestone deleted.

Milestone minor deleted