Closed kallekoo closed 11 years ago
From what you say I gather you would want '127.0.0.1'
to appear in the app.config
file?
Are you using the community cookbook? That cookbook uses a helper library to build the erlang strings, so I would start looking there:
default['riak']['config']['riak_api']['pb_ip'] = "#{node['ipaddress']}".to_erl_string
Ahh I completely missed that. Thanks!
p.s. littlechef is great. It strikes just the right balance between automation and deployment administration, or the lack of, for the projects I manage.
On Mar 31, 2013, at 10:24 PM, Miquel Torres notifications@github.com wrote:
From what you say I gather you would want '127.0.0.1' to appear in the app.config file?
Are you using the community cookbook? That cookbook uses a helper library to build the erlang strings, so I would start looking there:
default['riak']['config']['riak_api']['pb_ip'] = "#{node['ipaddress']}".to_erl_string — Reply to this email directly or view it on GitHub.
Great to hear that!
Hello!
I have a role.json which specifies in its default_attributes some IP addresses for a Riak app.config:
... "default_attributes": { "riak": { "config": { "riak_api": { "pb_ip": "127.0.0.1" } } ...
This "pb_ip" finds its way successfully into the app.config of this riak recipe, but the problem is that the string is single-quoted, when Erlang wants double-quoted strings in this app.config file.
Is there way to specify which quoting is preferred?