FATAL: Chef::Exceptions::ImmutableAttributeModification: Node attributes are read-only when you do not specify which precedence level to set. To set an attribute use code like `node.default["key"] = "value"'
■対処方法
zabbix/recipes/server_source.rb
の以下の部分を変更
↓↓↓まるごと以下のように変更↓↓↓
の以下の部分を変更
configure_options = (node['zabbix']['server']['configure_options'] || Array.new).delete_if do |option| option.match(/\s*--prefix(\s|=).+/) end
↓↓↓まるごと以下のように変更↓↓↓
node_options = node['zabbix']['server']['configure_options']
configure_options = Array.new
if node_options
node.set['zabbix']['server']['configure_options'].delete_if do |opt\
ion|
option.match(/\s*--prefix(\s|=).+/)
end
node_options.each do |item|
configure_options << item
end
end
Chefが11の場合に出ちゃうみたいです
issueにも挙げられてるみたいですが、masterにはまだマージされてないみたいです
あやうく自分でpull requestするところでしたw
やっぱりちゃんとissueは見ないとダメですね
https://github.com/AdallomRoy/zabbix/commit/0ecab38ce4545c479cb52f65b1a1b570baba7857
issueにも挙げられてるみたいですが、masterにはまだマージされてないみたいです
あやうく自分でpull requestするところでしたw
やっぱりちゃんとissueは見ないとダメですね
https://github.com/AdallomRoy/zabbix/commit/0ecab38ce4545c479cb52f65b1a1b570baba7857
0 件のコメント:
コメントを投稿