- From: Mike <
>
- To: "
" <
>
- Subject: [chef] Re: help with users cookbook
- Date: Thu, 21 Mar 2013 23:23:10 -0400
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
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.