You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Bèr Kessels d7d1725078 Extract sysadmins from chef-repo. 6 년 전
attributes Extract sysadmins from chef-repo. 6 년 전
recipes Extract sysadmins from chef-repo. 6 년 전
templates/default Extract sysadmins from chef-repo. 6 년 전
CHANGELOG.md Extract sysadmins from chef-repo. 6 년 전
README.md Extract sysadmins from chef-repo. 6 년 전
metadata.rb Extract sysadmins from chef-repo. 6 년 전

README.md

sysadmins Cookbook

Creates sysadmin accounts: accounts that can access the server over SSH.

Attributes

sysadmins::default

Key Type Description Default
['sysadmins'] Hash key: username empty, won't create sysadmins

Usage

Add sysadmins to your node configuration:

{
"sysadmins": {
  "bofh": {
    "password": "$1$d...HgH0",
    "ssh_keys": [
      "ssh-rsa AAA123...xyz== foo",
      "ssh-rsa AAA456...uvw== bar"
    ]
  }
}
  • Create a hashed password with openssl passwd -1 'plaintextpassword'. This password is needed for running sudo.
  • SSH-keys should be the public key. You can leave them out, in which case you have to log in with the password.