Skip to content

Instantly share code, notes, and snippets.

@yannvery
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save yannvery/06cf7d16d81795ca4b01 to your computer and use it in GitHub Desktop.

Select an option

Save yannvery/06cf7d16d81795ca4b01 to your computer and use it in GitHub Desktop.
Can't specify password with chef solo and chef-user

Issue with chef-user

I use chef with knife solo. I want to create a user so I decided to use this cookbook : https://github.com/fnichol/chef-user.

{
  "id": "deploy",
  "home": "/srv/deploy",
  "system_user": true,
  "create_group": true,
  "shell": "/bin/bash",
  "ssh_keygen": true,
  "ssh_keys": [
    "ssh-rsa AAAAB3Nz..."
  ],
  "password": "HeyHeyBigPassword"
}

So I tried to cook and the user password is not set correctly. After reading documentation I miss a point :

user_account

Note: in order to use the password attribute, you must have the ruby-shadow gem installed. On Debian/Ubuntu you can get this by installing the "libshadow-ruby1.8" package.

Unfortunately I'm not able to install the specified package "libshadow-ruby1.8" on Ubuntu 14.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment