All,
I have a user that I am creating using recipe in Chef. How can I create a ssh key for the user using data bags in chef.
the recipe in default.rb is,
user "abc" do
home "/home/abc"
action[:create]
mode 775
All,
I have a user that I am creating using recipe in Chef. How can I create a ssh key for the user using data bags in chef.
the recipe in default.rb is,
user "abc" do
home "/home/abc"
action[:create]
mode 775
The user
resource only manages creating a user, as in the /etc/passwd
entry. For managing ancillary stuff like SSH keys or sudo configurations you would need additional code. There are some community cookbooks that help with this, but you would have to evaluate if they meet your needs. User management tends to be very different for each organization so I encourage people to consider writing something themselves.