changing content of config file through puppet

96 views
Skip to first unread message

nidhi mittal hada

unread,
Oct 24, 2016, 3:34:30 PM10/24/16
to Puppet Users
https://github.com/openstack/fuel-plugin-solidfire-cinder/blob/master/deployment_scripts/puppet/modules/plugin_cinder_solidfire/manifests/solidfire.pp

 
a resource collector and dependency is defined.

My doubt is - this resource collector named as cinder::backend::solidfire is used to add a new stanza to configuration file.
But i dont find anywhere ini_subsetting or ini_setting or any file type rsource being used here
to modify content of config file.

Still this puppet works well by changing content of config file.

Can someone please help me to understand how using cinder::backend::solidfire we are changing content of a config file??

Rob Nelson

unread,
Oct 24, 2016, 5:32:02 PM10/24/16
to puppet...@googlegroups.com
Nidhi,

Your example does not have a link to the cinder::backend::solidfire type definition. Without seeing the log of the change that is occurring, the simplest possibility is that it is that code that has the ink related changes in it.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5575583d-07eb-4768-a530-00388adf438b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

nidhi mittal hada

unread,
Oct 25, 2016, 6:04:45 AM10/25/16
to Puppet Users
Hi Rob,

Thanks for your reply.

Thats the puppet repo. everything is here.


This line works well in changing content of config file as expected.
Even i did not get the definition of cinder::backend::solidfire anywhere.

I am surprised how this works.

i did not understand what you meant by "code that has the ink related changes in it"

Can you elaborate, i will try to find.

Chadwick Banning

unread,
Oct 25, 2016, 11:47:01 AM10/25/16
to Puppet Users
Hi Nidhi,

I think Rob was referring to https://github.com/openstack/puppet-cinder/blob/master/manifests/backend/solidfire.pp. This appears to be what is changing the config using a custom cinder_config type. You can see the provider code that is updating the config at https://github.com/openstack/puppet-cinder/blob/master/lib/puppet/provider/cinder_config/ini_setting.rb.


On Tuesday, October 25, 2016 at 2:04:45 AM UTC-4, nidhi mittal hada wrote:
Hi Rob,

Thanks for your reply.

Thats the puppet repo. everything is here.


This line works well in changing content of config file as expected.
Even i did not get the definition of cinder::backend::solidfire anywhere.

I am surprised how this works.

i did not understand what you meant by "code that has the ink related changes in it"

Can you elaborate, i will try to find.



On Monday, 24 October 2016 23:02:02 UTC+5:30, Rob Nelson wrote:
Nidhi,

Your example does not have a link to the cinder::backend::solidfire type definition. Without seeing the log of the change that is occurring, the simplest possibility is that it is that code that has the ink related changes in it.

On Monday, October 24, 2016, nidhi mittal hada <nidhim...@gmail.com> wrote:
https://github.com/openstack/fuel-plugin-solidfire-cinder/blob/master/deployment_scripts/puppet/modules/plugin_cinder_solidfire/manifests/solidfire.pp

 
a resource collector and dependency is defined.

My doubt is - this resource collector named as cinder::backend::solidfire is used to add a new stanza to configuration file.
But i dont find anywhere ini_subsetting or ini_setting or any file type rsource being used here
to modify content of config file.

Still this puppet works well by changing content of config file.

Can someone please help me to understand how using cinder::backend::solidfire we are changing content of a config file??

--


--

Rob Nelson

unread,
Oct 25, 2016, 12:31:13 PM10/25/16
to puppet...@googlegroups.com
Yes, that's what I meant! "ink" was an autocorrect mistake from my phone, no idea specifically what I was trying to convey before the phone mangled it, but we're on the right track now :)

--
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+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages