| popularity | question | answers | views | user | |
|---|---|---|---|---|---|
| 0 |
Run list with same cookbook, but different attributes
HI, I have a use case where I need to install both Java versions (64 and 32 bit). Can I run the same cookbook, once with a version attribute “32” and second run of the very same cookbook with a version attribute “64”? When I look @ the JSON file on my chef server for the node, I cannot see how to define the same version attribute for the two cookbooks separately. Regards, Sebastian |
1 | 8 | ||
| 0 |
Library method executed before recipe executed
I have a trouble when I created a library method to check availability of server. It is actually executed as soon as compilation finishes before the cookbook’s execution. |
0 | 1 | ||
| 1 |
Opensource Chef 11 server behind a firewall
Hi, I just upgraded our old Chef server to Chef 11, But I’m struggling to get my clients to reach the server. Our Chef-server is hosted internally, while our clients are in the cloud. Between them there’s a firewall that blocks all connections from the internet to the internal network. Since Chef-client now connects to port 80 or 443, I’m unable to setup a portforward to Chef-client to work without exposing the Chef Webinterface. Is there a way to tell Chef to use other ports for all communication? I tried setting the following in chef-server.rb. But this works only halve, the clients are added to the node-list, but the cookbook transfer fails because it wants to connect to https://chef-server.tld/bookshelf/organization….
Any ideas? |
0 | 12 | ||
| 0 |
no version specified, and no candidate version available for hadoop....
i want to install Hadoop using the chef.
FATA: Chef::Exceptions::Package: package[hadoop] (hadoop:default line 37) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for hadoop. /var/chef/cookbooks/hadoop/recipes/default.rb are as follows:
I need help. |
0 | 12 | ||
| 0 |
Chef Freelancers
Hi, We would like to automate the installation of TIBCO BusinessWorks (an enterprise integration platform) and it’s dependencies. It needs to work on both Windows and Linux. There are different installers for each platform and for the 32bit and 64bit versions. I’m new to chef, I get the basic concepts, but don’t know enough about best practices and “the right way to do it”. |
0 | 12 | ||
| 0 |
Can't install chef-client on Debian 5.0 system
Hi I’m having real trouble getting chef-client installed on one of our devices. It’s more a gem problem, but not sure where best to ask this question… 192.168.1.136 ERROR: While executing gem … (Gem::DependencyError) 192.168.1.136 Unable to resolve dependencies: chef requires net-ssh (~> 2.1.3) But, further up the script:– 192.168.1.136 Successfully installed net-ssh-2.6.7 192.168.1.136 Successfully installed net-ssh-gateway-1.2.0 192.168.1.136 Successfully installed net-ssh-multi-1.2.0 Any ideas? Thanks! |
0 | 13 | ||
| 0 |
How to reuse class/module
I used to have a separate rube files for highly common use sources, for example, FileOperate.rb, Log.rb etc. I tried to just put these file under the same folder with default.rb but chef could not recognize them. I tried convert them to library sources, but it was very hard to use and could not support arguments. How can I reuse some highly common source? I also tried to put them in an independent cookbook, but did not make it. |
0 | 9 | ||
| 0 |
knife cookbook upload --all returns internal server error
When I run: This is returned:
I checked the server logs with But it doesn’t seem like anything is there:
Any suggestions on why I can’t upload cookbooks? Where can I go to see more detailed errors? I’m at a loss. Thank you. |
0 | 25 | ||
| 0 |
Using JSON files to manage Chef
Hello everyone, I am currently using Chef on an architecture with a chef-server and a lot of nodes. For some reason, we’d like to set all the configuration on json file (role, environments, nodes and data_bags) but the knife command “from file” does not offer the possibility to update an object by reading this json file. It actually destroys the object and create another, which can be inconvenient for the nodes. Is there an alternative solution to do so ? |
0 | 8 | ||
| 0 |
knife bootstrap proxy
Hi, How do i specify a username/password for a proxy server via knife. I have tried the following: C:\chef-repo>knife bootstrap windows winrm xx —run-list “recipe[jenkins_windows]” -x xx -P xxx —config “C:\chef-r epo.chef\knife.rb” —bootstrap-proxy “http://PROXY_USER:PROXY_PASS@PROXY_IP:80/” But.. Accessed denied. Credentials are missing. Any ideas? |
4 | 41 |
