| popularity | question | answers | views | user | |
|---|---|---|---|---|---|
| 0 |
Adding login user credentials in AWS Instance
Hi, Can you please help me on how to configure/setup a custom login user for my newly initailized AWS/AMI instance (RedHat)? I’m currently using putty to connect to my instance Thanks, Alex |
0 | 300 | ||
| 0 |
Modifying the nginx recipe to use HttpRealIpModule
Hi, Has anyone modified their nginx recipe to use HttpRealIpModule? If so, would they mind sharing how they did it? Thanks! Scott |
0 | 468 | ||
| 0 |
Force population of node attributes DURING run_list ?
I am trying to deploy a complex distributed application with Chef. There are two main recipe stage: – installation: which simply installs tarballs and rpm dependencies etc – configuration: queries the chef server with “search (:node, "role:component1”)“ and attempts to get IP address of the OTHER components in order to complete configuration The problem is: the node attribute data does not update in the server after the installation recipe, so the configuration recipe can not get the data it needs in order to complete! I have an overall run_list which looks like this:
and a role defined in JSON which contains this:
To my mind, when the role[component1] part completes (ie when the recipe[component1::install] completes), the node attributes data should be updated, and reflect that the node now has fulfilled the role that was defined in the JSON file. But no – Chef wants to run both ::install and ::config before it updates any node attribute data. So – how do I force Chef to update the node attributes after just the ::install recipe, so I can get the ::config recipe to run successfully? |
0 | 51 | ||
| 0 |
Ubuntu 11.10 chef-server install
Hey all… I’m trying to install chef-server on a brand-spanking new, stock install of Ubuntu 11.10 (i386), using this guide: http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packages I’ve performed all items successfully through the “sudo apt-get upgrade” step. Upon trying to “sudo apt-get install chef chef-server”, I get the following error: ubuntu@ubuntu:/etc/couchdb$ sudo apt-get install chef chef-server
Reading package lists… Done
Building dependency tree The following packages have unmet dependencies: chef : Depends: ohai (>= 0.6.0) but it is not going to be installed
chef-server : Depends: chef-server-api (>= 0.10.8) but it is not going to be installed
E: Unable to correct problems, you have held broken packages. So, it appears that the packages are referring to broken dependencies…what am I missing here? Thanks in advance. Bryan |
1 | 607 | ||
| 0 |
Test Kitchen dependencies
Hi, in the new vagrant 1.1.+ and another thing also , they add vmware and aws into provider, is there any plan when the test kitchen support this change? Best regards |
0 | 51 | ||
| 0 |
Using CVS as a SCM provider?
Hi I’m writing a cookbook to automate the installation of a particular piece of software. The only way to obtain it is to use CVS (with a username and password) to check out a few named modules. Is there a way to do this with Chef? The docs for the Deploy Resource only list SVN and git as providers. Obviously I could write a bash script to execute the CVS commands, but this seems a little inelegant. Thanks Glenn. |
0 | 290 | ||
| 0 |
Link to cookbook source code
Hay, i’m a chef user and of course cookbook developer. metadata.rb has many nice fields – but how do i add/change the “Homepage” link on a cookbook community website here at opscode automatically? Example: http://community.opscode.com/cookbooks/mysql => Homepage:
|
0 | 44 | ||
| 0 |
Add environment attribute via Web Gui
Hello, I’m new to Chef, and I’m having trouble to add an envirionment attribute via Web Gui (Chef Server 0.10.8). I’m trying to add an attribute for the “resolve” cookbook, it’s an array of name servers. The JSON format should be: “resolver”: { “nameservers”: [ “8.8.8.8”,“8.8.4.4”], “search”: domain } How can I add these attributes in an Environment via Web Gui? I’ve tried some values, but it’s not working, and I can’t find the correct syntax, I’m receiving errors like this: “SyntaxError: Unexpected token a” Thank you. Alexandre |
1 | 623 | ||
| 0 |
First run attributes on chef-client 11 for windows
Hi, I have some troubles importing attributes at first run with chef-clietn 11 for windows. I have a json file “c:/chef/first-boot.json” with similar content {“company”:{“company_name”:“My Company”},“run_list”:[“role[server_role]”]} I start the client with this line chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json I have a role, which is applied correctly and all recipes for that role are started to compile and run. However, if I want to use the “company” attribute at the first run, the attribute is missing (for example node[:company][:company_name] gives me “NoMethodError”, because node[:company] do not exist). If I do not use this attribute (i.e. all recipes pass trough the first run), the attribute node[:company] appears in the chef server and I can use it on the next run. This method for first run attributes works well on linux chef-client. There I’m able to use the node[:company] attribute on the first run without any problems. Am I doing something wrong or there is some limitation for chef-client for windows? Here is my log from the console chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json -E dev INFO: Chef 11.4.0 INFO: Client key c:/chef/client.pem is not present – registering INFO: Setting the run_list to [“role[server_role]”] from JSON INFO: Run List is [role[server_role]] INFO: Run List expands to [testbook::compnay_set] INFO: Starting Chef Run for node01 INFO: Running start handlers INFO: Start handlers complete. INFO: Loading cookbooks [testbook] Synchronizing Cookbooks: – sag_base – testbook Compiling Cookbooks… ================================================================================ Recipe Compile Error in c:/chef/cache/cookbooks/testbook/recipes/compnay_set.rb ================================================================================ NoMethodError undefined method `[]‘ for nil:NilClass Cookbook Trace: c:/chef/cache/cookbooks/testbook/recipes/install_dbc.rb:8:in `from_file' Relevant File Content: c:/chef/cache/cookbooks/testbook/recipes/install_dbc.rb: … 7: 8>> name = node[:company][:company_name] 9: … ERROR: Running exception handlers FATAL: Saving node information to c:/chef/cache/failed-run-data.json ERROR: Exception handlers complete Chef Client failed. 0 resources updated FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out FATAL: NoMethodError: undefined method `[]‘ for nil:NilClass |
0 | 127 | ||
| 0 |
knife client list timed out error
After following all the steps as given in hosted chef installation guide in ubuntu, knife client list gives me a timed out error. root@New:~/chef-repo/.chef# knife client list ERROR: Network Error: Error connecting to https://api.opscode.com/organizations/pssl/clients – Connection timed out – connect(2) Check your knife configuration and network settings |
3 | 1.3k |
