Home

Chef-solo-3-chef add multi user with data_bag include authorized_keys for ssh

  • Category: 電腦相關
  • Last Updated: Wednesday, 27 May 2015 14:05
  • Published: Tuesday, 26 May 2015 11:46
  • Written by sam

get latest code at

https://github.com/s0m1in/0522.git

create data bag

root@packer-virtualbox-iso-1411922062:/tmp/0522# knife solo data bag create users depo0

If occur this error.

ERROR: RuntimeError: Please set EDITOR environment variable
root@packer-virtualbox-iso-1411922062:/tmp/0522# export EDITOR=vim

than again

root@packer-virtualbox-iso-1411922062:/tmp/0522# knife solo data bag create users depo0
{
  "id": "depo0",
  "password": "$1$pXzsdwHH$1ZRSjvl/eDKO7zZCLJZp5/",
  "comment": "depo0"
}

 

Read more: Chef-solo-3-chef add multi user with data_bag include authorized_keys for ssh