[chef] Re: Re: Re: knife on windows


Chronological Thread 
  • From: Maven User < >
  • To:
  • Subject: [chef] Re: Re: Re: knife on windows
  • Date: Fri, 16 Sep 2011 13:18:50 -0400

So here's a question that isn't clear to me by looking over the documentation.

If you wanted to trigger deployments, could you just have ONLY knife installed?

It seems like if you want knife, you also have to have chef-client installed.

On Fri, Sep 16, 2011 at 11:50 AM, Daniel DeLeo < "> > wrote:
On Friday, September 16, 2011 at 6:25 AM, Maven User wrote:
> So I ran the git commit command by hand with " instead of single quotes:
>
> D:\buildtools\chef\cookbooks>git commit -m 'Import chef-client version 1.0.2'
> error: pathspec 'version' did not match any file(s) known to git.
>  error: pathspec '1.0.2'' did not match any file(s) known to git.
>
> D:\buildtools\chef\cookbooks>git commit -m "Import chef-client version 1.0.2"
> [chef-vendor-chef-client 0b23e8c] Import chef-client version 1.0.2
> 19 files changed, 1112 insertions(+), 0 deletions(-)
> create mode 100644 chef-client/README.md (http://README.md)
> create mode 100644 chef-client/attributes/default.rb
> create mode 100644 chef-client/metadata.json
> create mode 100644 chef-client/metadata.rb
> create mode 100644 chef-client/recipes/config.rb
> create mode 100644 chef-client/recipes/default.rb
> create mode 100644 chef-client/recipes/delete_validation.rb
> create mode 100644 chef-client/recipes/service.rb
> create mode 100644 chef-client/templates/arch/conf.d/chef-client.conf.erb
> create mode 100644 chef-client/templates/arch/rc.d/chef-client.erb
> create mode 100644 chef-client/templates/default/chef-client.pill.erb
> create mode 100644 chef-client/templates/default/client.rb.erb
> create mode 100644 chef-client/templates/default/debian/default/chef-client.erb
> create mode 100644 chef-client/templates/default/debian/init.d/chef-client.erb
> create mode 100644 chef-client/templates/default/debian/init/chef-client.conf.erb
> create mode 100644 chef-client/templates/default/redhat/init.d/chef-client.erb
> create mode 100644 chef-client/templates/default/redhat/sysconfig/chef-client.erb
> create mode 100644 chef-client/templates/default/sv-chef-client-log-run.erb
> create mode 100644 chef-client/templates/default/sv-chef-client-run.erb
>
> Any suggestions where this is controlled or why this is borked like this?

The code is here: https://github.com/opscode/chef/blob/master/chef/lib/chef/knife/cookbook_site_install.rb

Sounds like a bug, you should file a ticket at tickets.opscode.com for the CHEF project, knife component.
>
>
>
> On Fri, Sep 16, 2011 at 9:18 AM, Maven User < "> (mailto: "> )> wrote:
> >  Ok, made it by this - not sure if this was the right thing to do, but I pulled down the pem files from the master server and added it to my local .chef directory.
Yeah, generally each user should be using his own key. How did you create the first one? `knife configure -i` is designed to create your first user. Then you'd copy the key that it creates to your workstation. After that you can use `knife client create -a -n -f KEYFILE USERNAME` to create new admin users. From where you're at now, I'd recommend using that command to create a new user for yourself instead of using the webui user.

--
Dan DeLeo





Archive powered by MHonArc 2.6.16.

§