Hi,

On 01/29/2016 07:19 PM, Bartosz Kupidura wrote:
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})
|

I don't follow. Where is this code from? Are you invoking this? How?


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?

Well...your manifest does *not* establish a notify relationship between those resources. How about a ~> arrow between them? Or a `notify => Service['test-service']` parameter for the asd resource?

HTH,
Felix

--
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/56BD16EC.8060800%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to