This cookbook combines system account management for different services under a single interface. It currently manages users, groups and the associate ssh and sudo settings.
It provides the following definitions:
It uses the cookbook files directory for all the files used for each account (ssh, etc.), which could be a symlink, git submodule or however you would like to manage that data.
include_recipe "accounts" # optionally set node[:accounts][:cookbook] to the cookbook that contains the config files account "role" do uid "700" account_type "role" comment "Role Account" ssh false sudo true end agroup "users" do gid "100" sudo true end
Below are the attributes that you can set to influence how the cookbook behaves.
node[:accounts][:dir]- Home Directory for accounts, default
node[:accounts][:cookbook]- Cookbook to grab the actual account settings from, default
node[:accounts][:default][:shell]- Default Account Shell if none specified
node[:accounts][:default][:group]- Default Account Group if none specified
node[:accounts][:default][:do_ssh]- Boolean to copy over the
node[:accounts][:default][:do_sudo]- Boolean to enable
sudoaccess for the account
License and Authors
Author:: Sander van Zoest
Copyright:: 2009-2015 Alexander van Zoest
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.