Chef cookbook to create users for Balanced
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files/default/etc/security/limits.d
libraries
recipes
templates/default
test
.gitignore
.kitchen.yml
Berksfile
Berksfile.lock
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
metadata.rb

README.md

balanced-user

Build Status

Adding a new user

Welcome to Balanced! To get your SSH user created just update recipes/default.rb with a new balanced_user resource for yourself. If your Balanced and Github usernames are the same, you can just do:

balanced_user 'asmithee' do
  sudo true
  github_username 'asmithee'
end

Custom dotfiles

To add per-user dotfiles copy the file to templates/default/<username>/<filename> and add dotfiles %w{filename} to your balanced_user resource in recipes/default.rb.

Resources

balanced_user

The balanced_user resource defines a system user for a Balanced employee.

balanced_user 'username' do
  sudo true
  github_username 'username'
  ssh_keys ['ssh-rsa ...']
end
  • sudo – Does this user have sudo access. (default: false)
  • github_username – Github username to query for SSH keys. Set to your github username to enable. (default: false) (disabled)
  • ssh_keys – List of SSH keys to use in addition to auto-discovered keys. (default: [])

balanced_deploy_user

The balanced_user resource defines a deploy user for Balanced.

balanced_deploy_user 'username'

There are no attributes for balanced_deploy_user.