Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Help with developing simple Puppet Module for Havana ceilometer

Hi,

I was hoping to get some help in writing a Puppet module for ceilometer.

I need to understand what services need to be restarted when config files change. I am very new to openstack and know a little puppet.

For my ceilometer::controller I have this puppet code:

I have File resources for these files ...

file { 'ceilometer.conf': ... }
file { 'pipeline.yaml': ...}
file { 'policy.json': ...}
file { 'sources.json': ...}

... and I have these Service resources ...

 service { "openstack-ceilometer-alarm-evaluator":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-alarm-notifier":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-api":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-central":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-collector":
   ensure  => running,
   enable => true,
 }

So my question is, "Do I need to add this line ...

subscribe => File[ 'ceilometer.conf', 'pipeline.yaml', 'policy.json', 'sources.json'],

... to all my Service resource types or is there some other combination I need to use for one Service and not another? "

What services need to be restarted when the ceilometer.conf changes? What services need to be restarted when the pipeline.yaml changes? What services need to be restarted when the policy.json changes? What services need to be restarted when the sources.json changes?

In my ceilometer::compute is simpler. I think I need to define my service resource like this ...

 service { "openstack-ceilometer-compute":
   ensure  => running,
   enable => true,
   subscribe => File[ 'ceilometer.conf', 'pipeline.yaml', 'policy.json', 'sources.json' ],
 }

... right?

Thanks

Help with developing Developing simple Puppet Module for Havana ceilometer

Hi,

I was hoping to get some help in writing a Puppet module for ceilometer.

ceilometer. I need to understand what services need to be restarted when config files change. change. I am very new to openstack and know a little puppet.

For my ceilometer::controller I have this puppet code:

I have File resources for these files ...

file { 'ceilometer.conf': ... }
file { 'pipeline.yaml': ...}
file { 'policy.json': ...}
file { 'sources.json': ...}

... and I have these Service resources ...

 service { "openstack-ceilometer-alarm-evaluator":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-alarm-notifier":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-api":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-central":
   ensure  => running,
   enable => true,
 } ->

 service { "openstack-ceilometer-collector":
   ensure  => running,
   enable => true,
 }

So my question is, "Do I need to add this line ...

subscribe => File[ 'ceilometer.conf', 'pipeline.yaml', 'policy.json', 'sources.json'],

... to all my Service resource types or is there some other combination I need to use for one Service and not another? "

What services need to be restarted when the ceilometer.conf changes? What services need to be restarted when the pipeline.yaml changes? What services need to be restarted when the policy.json changes? What services need to be restarted when the sources.json changes?

In my ceilometer::compute is simpler. I think I need to define my service resource like this ...

 service { "openstack-ceilometer-compute":
   ensure  => running,
   enable => true,
   subscribe => File[ 'ceilometer.conf', 'pipeline.yaml', 'policy.json', 'sources.json' ],
 }

... right?

Thanks