Jordi
Jordi

Reputation: 23237

configuration configuration on LWRP

I'm using this configuration provider in order to configure my elasticsearch:

elasticsearch_configure 'my_elasticsearch' do
  path_home     "/opt/elasticsearch"
  path_data     data_location
  ...
end

data_location value is picked up from:

data_location = node['living']['elastic']['data_location']

Nevertheless, this attribute is not setted on my current environment dev:

{
  "living": {
    "elastic": {
      "version": "5.4.0",
      "cluster": "cluster-dev",
      "node": "node1",
      "host": "localhost",
      "port": 9201,
      ...
    }
  }
}

So, according whether data_location is nil or not I need to set it on elasticsearch_configure or not...

I've absolutly no idea how to get it. Any ideas?

Upvotes: 0

Views: 22

Answers (1)

coderanger
coderanger

Reputation: 54211

That value is not required and has a default value so as long as you're happy with that default, just don't set it.

Upvotes: 1

Related Questions