Hello All! Im trying to write new type which will add resource to catalog, but i have problem with 'notify' property.
New resources are added to catalog, but unfortunately notify is not working. parameters = {:name => 'test', :notify => 'Service[test-service]', :value => '10} res = catalog.create_resource('test_resource', parameters) target = catalog.resource 'service', 'test-service' Puppet::Relationship.new(res, target, {:event => :ALL_EVENTS, :callback =>:refresh}) Log: Debug: /Stage[main]/Main/Asd[test_resource]: test_resource[test]: was not found in the catalog, creating it Info: Applying configuration version '1454091309' Notice: /test_resource[test]/value: value changed '123' to '10' Debug: Executing '/sbin/status test-service' Debug: Finishing transaction 29127600 Debug: Storing state Debug: Stored state in 0.75 seconds Notice: Finished catalog run in 1.45 seconds Manifest: asd { 'test_resource': data => { 'test' => {'value'=> '10'}, }, } service { 'test-service': ensure => running } Any hints what im missing? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/af6acce2-0e9c-43d6-8c35-40bed39151b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.