- From: David Birdsong <
>
- To:
- Subject: [chef] Re: Re: help with users cookbook
- Date: Thu, 21 Mar 2013 20:31:09 -0700
On Thu, Mar 21, 2013 at 8:23 PM, Mike
<
>
wrote:
>
You might want to try this syntax:
>
>
knife search users "*:*"
>
knife search users "id:david"
>
knife search users -q "id:david" # -q not really necessary for this
>
query
>
>
-M
>
thanks for the help on the syntax, that returned results and also
called my attention to the mis-spelled group names in the data bag
that are probably to blame for missing user accounts.
>
On Thu, Mar 21, 2013 at 11:16 PM, David Birdsong
>
<
>
>
wrote:
>
> I'm still pretty new to chef, but this operation should be
>
> straight-forward.
>
>
>
> I'm on centos6.3 and trying to use this cookbook:
>
> http://community.opscode.com/cookbooks/users
>
>
>
> Let's start with the search not working. My data bag is clearly there:
>
>
>
>
>
> chef-repo{master}]$ knife data bag show users
>
> chris
>
> david
>
>
>
>
>
> chef-repo{master}]$ knife data bag show users david
>
> comment: DAVID
>
> email:
>
>
>
> groups:
>
> admin
>
> dev
>
> id: david
>
> shell: /bin/bash
>
> ssh_keys: ssh-dss AAAAB3NzaC1kc33/OVhcn8N1<snip>WOk5tocKAw=
>
> /Users/david/.ssh/id_dsa
>
> uid: 500
>
>
>
>
>
> but search returns 0 results for anything in the users data bag:
>
>
>
>
>
> chef-repo{master}]$ knife search users
>
> 0 items found
>
>
>
>
>
> chef-repo{master}]$ knife search users -q '*david*'
>
> 0 items found
>
>
>
> Any ideas?
Archive powered by MHonArc 2.6.16.