Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
19 views

“unable to get local issuer certificate” in chef when using knife bootstrap with windows domain auth

I have a working installation of open source chef and am trying to add domain authentication to bootstrap Windows servers. I've created the HTTPS listener as described in the knife windows ...
0
votes
1answer
26 views

Issues using knife bootstrap on FreeBSD 10

I'm fairly certain this is unrelated to my cookbook, since the following occurs immediately after connecting: 0.0.0.0 Unmatched '. 0.0.0.0 distro=FreeBSD: Command not found. 0.0.0.0 distro: Undefined ...
0
votes
1answer
34 views

Specifying SSH port with Chef, knife bootstrap

Per Chef's documentation, the -p (or --ssh-port) flag should allow me to specify an SSH port, however, the following: knife bootstrap host.com -x user -P password --ssh-port 5846 -N nodename --sudo ...
0
votes
0answers
123 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
0
votes
1answer
66 views

Not able to assign elastic ip using knife

I want to create a EC2 instance using knife with an elastic ip assigned to it. Knife has the option --associate-eip but when I use this option it fails with error "ERROR: Elastic IP requested is not ...
0
votes
0answers
12 views

Knife leaves stray processes on my system

I'm seeing stray knife processes on my system. I have an automated ruby script that runs bundle exec knife bootstrap against various nodes. Most of the time the knife process completes and goes away, ...
0
votes
1answer
24 views

how to list chef nodes that are not pingable - knife

I have bunch of ec2 nodes registered to chef server, more than half of them were terminated earlier. I still see them as nodes under knife node list. How do I delete them that are not pingable? My ...
0
votes
1answer
175 views

How to trigger chef-client on all nodes from my workstation

I have 5 nodes and all of them have one setup cook-book in common. Now I would like to add another task in this common cookbook that would configure SQL server for me on all the nodes. Is there a ...
2
votes
1answer
473 views

How do I get knife to bootstrap an EC2 instance in a public VPC?

I don't know much about routing and subnets and vpc's, I never had to use those with my old AWS account. In my new AWS account, I started a new Amazon Linux AMI instance (ami-043a5034). The security ...
0
votes
1answer
168 views

knife azure image list doesn't return User image

I'm trying to create and bootstrap a Windows VM in Azure using knife-azure. I initially tried using a Public Win 2008 r2 image, but quickly found out that winrm needs to be configured before this can ...
0
votes
1answer
547 views

Chef's knife ec2 plugin create server inside VPC with public IP

So I'm using knife ec2 plugin to create a server, inside a VPC, and then provision it with chef-solo. Here is my basic command: knife ec2 server create -S private-key -I ami-1234 ...
0
votes
1answer
28 views

Installing nginx via chef Role is not applying my changes

I wrote a role to use the default nginx cookbook. The role is not applying any of my attributes. It keeps installing nginx 1.2.1. { "name": "nginx", "json_class": "Chef::Role", "chef_type": ...
0
votes
1answer
191 views

How can I create a new Azure VM in an existing cloud service with knife azure (Chef)?

I have tried using the "--azure-connect-to-existing-dns" parameter but that doesn't work. I'd like to create Azure VM's, but have them inside an already existing cloud service instead of creating a ...
2
votes
1answer
253 views

Post Azure VM creation bootstrap process - Azure user-data mechanism during VM creation?

After creating an Azure Windows VM, how does bootstrapping (winrm or ssh) completed? I'm using knife azure and using either winrm or ssh, the VM is created but fails to bootstrap. Do I have to ...
1
vote
1answer
595 views

Can I use Chef-Solo to provision a server created with knife-eucalyptus

I am able to create a new server using knife-eucalyptus like so: knife euca server create The server gets created but provisioning fails with the following message: "ERROR: Errno::ENOENT: No such ...
0
votes
1answer
24 views

Knife ec2 Create

I am successfully running chef server and able to bootstrap server with my chef recipes. I would like to know is there any plugin which we can use to launch multiple servers using knife ec2 create ...
0
votes
1answer
652 views

ERROR: cannot verify www.opscode.com's certificate

I am using OSS Chef 11.0.4 on Ubuntu 12.04 LTS , while running Knife ec2 create command I am getting below error Bootstrapping Chef on ec2-xx-xx-xxx-xx.compute-1.amazonaws.com ...
1
vote
1answer
251 views

Bootstrap Chef on Vagrant Box

I'm trying to bootstrap a Vagrant box using hosted chef server. knife bootstrap testbed001.me --sudo -x root -N "testbed001" However, the command throws an error: Bootstrapping Chef on ...
2
votes
2answers
2k views

chef upload cookbook failed with network error

I've created a chef server on a virtual machine (192.168.0.21). The server runs fine on https (this is the last version from the opscode site). knife user list (and the other list commands) run fine, ...
0
votes
1answer
76 views

Knife will no longer download recipes from opscode

My setup is on Mac OS X and using Chef solo Somehow after running: knife configure -i I can no longer download anything when I run: knife cookbook download site apache2 I get back: ERROR: ...
0
votes
1answer
765 views

Chef: Knife ssh connection error

I try to run a command on all my nodes but get the following error. The chef docs say it should work like this. me$ sudo knife ssh "name:*" "uptime" -x myuser WARNING: Failed to connect to -- ...
1
vote
2answers
590 views

chef knife ec2 server create: error when spinning up new ec2 servers

I'm trying to use knife ec2 server create to automatically launch ec2 instances for the first time, but I'm getting "ERROR: Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)". ...
0
votes
1answer
213 views

How to update chef with knife solo?

I ran knife solo bootstrap [myserverssh] to initially install recipes on my server. Everything got installed correctly. I then made changes the recipes. I ran knife solo cook [myserverssh] to update ...
0
votes
1answer
454 views

Chef how to run a run list in filtered node

How to run a run list in several nodes? Now I wrote a script loop those severs and run using knife bootstrap. Is there better way to do it? Like how we use "knife ssh 'id:*', can we run a run list in ...
0
votes
1answer
391 views

Pass override attribute via command line for chef-solo

For chef-solo, is it possible to pass the override attributes via command line? Because sometimes the attribute is just adhoc decision and is diffent from host to host, e.g. hostname, we don't want ...
0
votes
2answers
720 views

node's FQDN is missing in chef

I am a newbie to the chef and knife, I am running couple of ec2 instances and have install chef-client and I can see all the instances in the node list of the chef, but couple of them are missing FQDN ...
5
votes
2answers
6k views

Chef: connection refused for cookbook upload

Be gentle, I'm new to chef, trying to get my environment set up and have some new recipes to upload to my new chef server. I'm able to do some commands, and I was able to knife bootstrap the new node, ...
3
votes
1answer
744 views

How to create an EC2 instance with knife?

I was able to make knife access AWS by following: http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife Now, I get a knife command almost working: $ knife ec2 server ...
1
vote
4answers
4k views

How to configure knife and EC2 to create a new instance from the command line?

I am playing with Amazon EC2 to create instance. I was reading here: here in the knife documenation for EC2, that I would need to set: # EC2: knife[:aws_access_key_id] = "Your AWS Access Key" ...
0
votes
1answer
354 views

cscript fails when executed by winrm via but works when executed locally

I'm running the following as a part of chef deployment of a windows server. cscript /nologo C:\chef\wget.vbs /url:http://www.opscode.com/chef/install.msi ...
0
votes
2answers
262 views

Provision server with chef-solo as root?

I'm using knife to bootstrap my VM with vanilla Debian 7.0 installation. In bootstrap stage I'm just setting sources.list, updating & upgrading system, then I install buil-essential, rsync and ...
0
votes
1answer
280 views

Spinning up multiple EC2 servers with knife and assigning elastic ips from a pool

I'm wondering how to go about spinning up multiple EC2 servers using knife of the same type, say 4 app servers, and assigning them each an elastic IP from a pool of available Elastic IPs. I have ...
1
vote
1answer
83 views

chef user action logging

I am using chef for managing all our cookbooks. The problem is not only me who uses chef, I wonder if whether there is a way to logging all actions that uses completes. In particular, I am ...
1
vote
1answer
724 views

Chef command to create new ec2 instance with second ebs volume attached and mounted instead of the default ephemeral volume?

We currently use this command to create a new ec2 instance with chef: knife ec2 server create --node-name=prod-apache-1 --availability-zone us-east-1c --image ami-3d4ff254 --distro ubuntu12.04-gems ...
2
votes
2answers
229 views

Chef-client kills processes

I use the knife ec2 plugin to bootstrap a new instance (Ubuntu 12.04) and install a software on it. Everything works great but after chef-client ends, some processes of the new software are killed. ...
1
vote
1answer
359 views

How to pass attributes from knife command (ssh)?

Is it possible to attributes from knife command (ssh), e.g. knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
1
vote
1answer
560 views

How to get the public instance address from knife ec2 server create with chef-solo

I'd like to somehow get the public instance address or hostname from knife ec2 create ..., but I can't find any mechanism for doing so. Since I'm currently using chef-solo, I've written a simple ...
2
votes
1answer
150 views

Where is the history for the knife executing on the open-source chef server?

For example, after I run a knife command of 'knife cookbook upload cookbook_name' from a chef workstation or somewhere, where can I find the history or log about who sent the knife command and when, ...
1
vote
1answer
69 views

Server specific usernames for each SSH connection in Chef with Knife

To set a default user for each ssh connection, I would normally adjust my .ssh/config file to Host *.server1.com User joe Host *.server2.com User mike I am now using Chef. The knife tool ...
4
votes
2answers
2k views

Why can't “knife data bag from file” find existing json file on chef server?

Summary: I'm running into a problem with "knife data bag from file", where knife doesn't recognize the .json data bag file pulled down from a remote git repo. Background: I'm currently trying to ...
3
votes
3answers
2k views

Upload everything with Knife

Let's say you have a standard Chef repository with directories as follows: cookbooks data_bags environments roles Is there way to upload it all in one go? Otherwise you have to do this: knife ...
4
votes
3answers
3k views

Chef bootstrap giving 401 unauthorized

I'm trying to bootstrap a new chef node by running: knife bootstrap <server ip> -x lewis -N gitlab --sudo But I get the following output: [Mon, 03 Sep 2012 14:45:17 +0000] INFO: *** Chef 10.12.0 ...
3
votes
1answer
151 views

knife on Windows inconsistently reads ~\.ssh\knife.rb on Management Workstation

I am implementing a new instance of (Open-source v10.12) Chef in an existing environment. Currently the environment is mostly Windows, but more Linux is being introduced. I have used Chef in a ...
1
vote
1answer
689 views

How to use an SSH Gateway with Chef's Knife Bootstrap

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based ...
2
votes
1answer
494 views

Can you upload chef cookbooks directly from a hosted Git repository?

I'm learning Chef. My cookbooks are on Github. It seems the workflow goes: Install cookbooks locally (download them from Github with knife site install) Upload cookbooks to server (knife cookbook ...
1
vote
1answer
196 views

Get node names that have a specific role

How can I get list of nodes, that have a specific role? It could be got with something like that: for node in `knife node list`; do [[ -n "`knife node show $node | grep $ROLE_NAME`" ]] && ...
1
vote
1answer
1k views

What are the values for attributes in knife ssh? ( -a ipaddress etc ) [closed]

Knife ssh has the -a option. I was lucky to find Knife SSH doesn't find my nodes to tell me that it's NOT called IP, as in knife search output, but ipaddress. I would love to know where to find ...
2
votes
3answers
1k views

creating cookbooks and roles with out chef-server

I want to run: knife role create blah I use chef-solo and don't need knife to connect to a server. I just would like to run these commands for helping me prepopulate the files quickly. Everytime ...
5
votes
3answers
2k views

Deploy an AWS Auto Scaling groups using Chef Server

You can, for example, to deploy an an Auto Scaling groups consists of web severs, ELB and DB using AWS CloudFormation (with Chef server): ...
0
votes
1answer
1k views

Knife command to check last node check-ins?

Is there a knife incantation that allows me to check the Last Check-In time of given (or all) nodes in my environment. (As opposed to the http:///status page in Open-Source Chef.)