Questions tagged [knife]

Knife is a powerful command-line interface (CLI) that comes with Chef.

Knife is used by administrators to interact with the Chef Server API and the local Chef repository. It provides the capability to manipulate nodes, cookbooks, roles, databags, environments, etc., and can also be used to provision cloud resources and to bootstrap systems.

521 questions
-1
votes
1 answer

chef get converged-attributes without deploying

We are using chef to deploy all of our stacks. I need to build a runbook for each environment we deploy. I have been parsing the environment, node and recipe files but the more information I need to extract, the more complex it becomes because I am…
-1
votes
1 answer

Last line of batch file not running

I am using a batch file to make installing chef on servers a little bit less work. The last line of my code where I add the recipe seems to be completely ignored. Probably something stupid but what am I missing? @ECHO OFF set /p ip="Enter IP…
-1
votes
1 answer

knife softlayer server create with monthly billing

I am trying to create new VSI in Softlayer with monthly billing using knife softlayer plugin, there is tag for that: --billing-monthly but seems its now working. Also I tried as: '--billing-monthly' '--billing-monthly true'…
-1
votes
1 answer

Chef recipe to read from data bag and write to .SSH directory

I am trying to use the super useful chef data bag to store private keys that allows me access to a SFTP server. Now, the nodes that are managed by chef in my case each need to have these private keys in their .ssh directories. So far I have been…
summerNight
  • 1,446
  • 3
  • 25
  • 52
-1
votes
1 answer

How do you mass deploy using policyfiles in Chef?

With our current model we use the knife-vsphere plugin with a wrapper perl script that essentially for loops knife in conjunction with a csv file to mass deploy a list of VMs. I'm wondering if a workflow like this is possible with policyfiles?
TyMac
  • 783
  • 2
  • 9
  • 32
-1
votes
1 answer

Why do I get "unexpected tIDENTIFIER" syntax error in Chef recipe?

This cookbook recipe has a syntax error, but I don't understand why. I cannot upload the cookbook. #below reference information we saw in ohai if node[“platform”] == “ubuntu” execute “apt-get update” do command “apt-get update” …
ficestat
  • 313
  • 1
  • 4
  • 13
-2
votes
1 answer

Unable to execute any knife commands?

None of the knife commands is executing I am just getting a time out error... Initially I used to have Virtual Box 4.3.38 I did not have any issue at that time after upgrading Virtual Box 5.0.22 I having this issue... Same error for all knife…
-2
votes
1 answer

how to execute chef-client parallelly in all chef nodes

I have 20 nodes I want to run chef-client in all 20 nodes at the same time. How can I achieve this? What is knife ssh? If the above mentioned problem can be achieved using knife ssh: Can you please give examples to use?
user60679
  • 709
  • 14
  • 28
-2
votes
2 answers

No chef commands work after amazon ec2 instance restart

I restarted the amazon ec2 instance and now none of the my knife commands work. Please help me experts. Thanks
skyrocker
  • 199
  • 2
  • 8
  • 20
-3
votes
2 answers

Public IP address issue in AWS and Chef

When I stop and start the EC2 instance it sets a new IP address. but my chef server not aware of its changed IP. I am doing bootstrap each time I connect to apply new IP but I am loosing the versioning. How can I fix this?
Hareesh
  • 305
  • 1
  • 3
  • 12
-3
votes
1 answer

Pass CLI arguments to chef-client while knife ssh

I am trying to automate application deployment using chef. I had prepared cookbook which is generic(works based on input attribute values) to deploy APIs. I've kept all the attributes in my attribute folder. Here the problem am facing is I am able…
1 2 3
34
35