Comments (6)
@jshrack-ssi this is likely something with the exports_config()
method, provided by the magic
cookbook.
I just discovered that cookbook has been archived to a separate repo by its maintainer, @sczizzo, with the original repo deleted.
I dug up the archived version of the exports_config()
method, and confirmed that is identical to the v1.5.0 published version of that method.
To save you a click:
def exports_config obj, header=nil
obj.map do |k, v|
if v.nil?
k.to_s
else
"export #{k}=#{Shellwords.escape v.to_s}"
end
end.join("\n")
end
In this case, it’s that Shellwords.escape()
that’s causing what you describe.
However, the string isn’t output with any quotations, so the escapes should make it work properly… Tricky business though.
from zookeeper-cookbook.
@jeffbyrnes Totally agree with your analysis. I actually wrapped my expression in a Shellwords.escape to see what would happen. Sure enough, it adds additional escape characters. The only real option I can think of is overwriting the entire config file to achieve the desired outcome. Thoughts?
from zookeeper-cookbook.
@jshrack-ssi, does it also quote your expression? If not, then the escaping might be a good thing.
Otherwise, if this is undesirable, we’ll want to abandon exports_config()
in favor of our own version. Phooey. I dislike that sort of thing.
from zookeeper-cookbook.
A pull request is welcome, by the way; I’ve very little bandwidth right now.
from zookeeper-cookbook.
No, no quoting. I actually was attempting to insert quotes as it's required when using special characters in JVM options. Those too are escaped of course. Let me see what I can do with it as a workaround and I'll submit a PR if successful.
from zookeeper-cookbook.
I’m going to go ahead & close this out; @jshrack-ssi if you ever managed a workaround, I’d still love to see it & perhaps include it.
from zookeeper-cookbook.
Related Issues (20)
- Upstart services fail to start zookeeper HOT 8
- Question about your pinning strategy HOT 2
- link logic for ZK not working. HOT 1
- No way to set Java Opts? HOT 2
- service[zookeeper] cannot be found in the resource collection. HOT 10
- cookbook dependancies in the metadata HOT 4
- Support "package" install style HOT 4
- Make the defaults for install_dir consistent across resources HOT 1
- Checksum has not changed with 3.4.9 update HOT 1
- Any feedback with ZK 3.5.2 dynamic configuration ? HOT 3
- Zookeeper sysv script
- How to run ZooKeeper as a service HOT 1
- Support Ubuntu 16.04 HOT 3
- support direct link to tar for download path HOT 2
- zookeeper-3.5.3-beta artifact breaks due to (lack of) gzip compression HOT 3
- 2.6.0 version error using chef-client 12 HOT 2
- MYID HOT 4
- Default install fails with failure to download Zookeeper 3.4.12 HOT 2
- Inconsistency in username properties across resources HOT 2
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 zookeeper-cookbook.