0
我有兩本食譜:elasticsearch和curator。廚師:從另一本食譜中修改現有資源
Elasticsearch Cookbook安裝並配置elasticsearch。下面的資源(從elasticsearch食譜),必須從館長食譜修改:
elasticsearch_configure 'elasticsearch' do
configuration ({
'http.port' => port,
'cluster.name' => cluster_name,
'node.name' => node_name,
'bootstrap.memory_lock' => false,
'discovery.zen.minimum_master_nodes' => 1,
'xpack.monitoring.enabled' => true,
'xpack.graph.enabled' => false,
'xpack.watcher.enabled' => true
})
end
我需要修改它館長菜譜,並添加一行:
'path.repo' => (["/backups/s3_currently_dev", "/backups/s3_currently", "/backups/s3_daily", "/backups/s3_weekly", "/backups/s3_monthly"])
我怎麼能這樣做?
您是否嘗試過使用(https://docs.chef.io [edit_resource!] /dsl_recipe.html#id3)? – vase
我沒有!你能提供一個小例子嗎? – Lechucico