Issue #11799 has been reported by Nan Liu.

----------------------------------------
Bug #11799: notify resource for network device 
https://projects.puppetlabs.com/issues/11799

Author: Nan Liu
Status: Unreviewed
Priority: Normal
Assignee: 
Category: device
Target version: 
Affected Puppet version: 2.7.0
Keywords: device, tags
Branch: 


In Puppet 2.7 resources have a distinction between host vs. device resource. 
Certain resources such as notify are very useful, but are skipped. Seems 
helpful to log events to proxy servers on behalf of the network device so 
modifying the notify resource to support devices.

Also defines and classes that contain resources are all treated as host 
resources and not device resources, so they are skipped when running puppet 
device command. 

    class f5_a {
      f5_file { '/tmp/a':
        ensure => present,
        content => 'a' 
      }
    }
    class f5_b {
      f5_file { '/tmp/b':
        ensure => present,
        content => 'b',
      }
    }
    node 'f5.puppetlabs.lan' {
      class {['f5_a', 'f5_b']: }
      Class['f5_a'] -> Class['f5_b']
      f5_notify { 'welcome_f5': }
    }

When this is applied the f5 network resources are applied. However defines and 
classes are skipped:

    ...
    debug: Class[F5_a]: Skipping host resources because running on a device
    ...

This doesn't seem critical as relationship are still working as expected, but 
may have some unexpected side effects that I have yet to uncover.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to