Comments (6)
@AdallomRoy what was the issue you saw?
I can install from source with
node[:zabbix][:server][:configure_options] = ["--with-libcurl", "--with-net-snmp"] without losing those options.
from zabbix.
Hi,
This could be since I'm using chef client 11.4.2 (have you tested it
against this version?)
The error I'm getting is "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"')" ...
This happens due to this line:
configure_options = (node['zabbix']['server']['configure_options'] || Array.
new).delete_if do |option|
If the configure_options are not empty, it will put the node object as the
configure options -> but node objects are immutable, which will cause an
error (either when attempting to delete, or later when attempting to append).
Cheers.
from zabbix.
I see. I'm still using chef 10 at this point. So the problem is trying to persist it back to the chef-server. Maybe we don't even need to do that given that we are only removing "--prefix", we can do that each time.
@laradji When server_source runs (agent_source will have this problem too) the "--prefix" option gets removed from the options array and then we try to persist it back to the chef-server. We can either update the code to persist properly for Chef 10 and Chef 11 or just not persist it back. The check has to happen on each run anyway. What do you think?
from zabbix.
It's a bit more problematic than that, because the new code uses configure_options to add other parameters later (e.g. mysql stuff) so even if you remove that delete_if, you will still have trouble..
from zabbix.
good point. So we need to change all of the node.set calls (and the delete_if) to set at a particular precedence level.
from zabbix.
Hello guys,
maybe we can remove the cleaning of prefix with delete_if. it was put to help migration from older version of the cookbook prior 0.0.18.
from zabbix.
Related Issues (20)
- Agent Registration search should be attribute
- mysql_chef_gem error HOT 2
- Installing from RPM HOT 2
- How is the PG gem included? HOT 1
- Dependency overload HOT 7
- Hardcoded paths in recipes
- InsufficientPermissions error on windows
- automatic chef-client runs fails with "NoMethodError: undefined method `full_name' for nil:NilClass" HOT 2
- node['fqdn'] should be lazy evalued during template rendering
- Recipe Compile Error on "Installing all 3" HOT 1
- /opt/zabbix is 0700 without the ability to override HOT 1
- Halite is not compatible with no_lazy_load false, please set no_lazy_load true in your Chef configuration file. HOT 4
- User ID not Found Exception
- Race condition for new host group and multiple hosts HOT 1
- Cookbook is not working properly at all HOT 1
- Not able to found source locations HOT 1
- Is this project still being maintained? HOT 1
- Custom intervals at schedual or flexible between yum and source installtion are different,It is a BUG HOT 1
- nginx OR chef_nginx HOT 2
- Property `method` of resource `zabbix_api_call` overwrites an existing method HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix.