diff options
Diffstat (limited to 'cookbooks/user')
-rw-r--r-- | cookbooks/user/CHANGELOG.md | 13 | ||||
-rw-r--r-- | cookbooks/user/README.md | 42 | ||||
-rw-r--r-- | cookbooks/user/metadata.rb | 7 | ||||
-rw-r--r-- | cookbooks/user/recipes/default.rb | 33 |
4 files changed, 95 insertions, 0 deletions
diff --git a/cookbooks/user/CHANGELOG.md b/cookbooks/user/CHANGELOG.md new file mode 100644 index 0000000..dec3520 --- /dev/null +++ b/cookbooks/user/CHANGELOG.md @@ -0,0 +1,13 @@ +user CHANGELOG +============== + +This file is used to list changes made in each version of the user cookbook. + +0.1.0 +----- +- [your_name] - Initial release of user + +- - - +Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown. + +The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown. diff --git a/cookbooks/user/README.md b/cookbooks/user/README.md new file mode 100644 index 0000000..7d85a9f --- /dev/null +++ b/cookbooks/user/README.md @@ -0,0 +1,42 @@ +user Cookbook +============= +Configures users and mechids + +Requirements +------------ + +Attributes +---------- +#### user::mech_users +<table> + <tr> + <th>Key</th> + <th>Type</th> + <th>Description</th> + <th>Default</th> + </tr> + <tr> + <td><tt>['aai-app-config']['mech-ids']</tt></td> + <td>Hash</td> + <td>Mech ID, is the mech ID enabled?, shoud the cookbook update the key?</td> + <td><tt>true</tt></td> + </tr> +</table> + +Usage +----- +#### user::default +Just include `user` in your node's `run_list`: + +```json +{ + "name":"my_node", + "run_list": [ + "recipe[user]" + ] +} +``` + +License and Authors +------------------- +Authors: AT&T A&AI diff --git a/cookbooks/user/metadata.rb b/cookbooks/user/metadata.rb new file mode 100644 index 0000000..9a97b5f --- /dev/null +++ b/cookbooks/user/metadata.rb @@ -0,0 +1,7 @@ +name 'user' +maintainer 'AT&T' +maintainer_email 'id@xxx.com' +license 'All rights reserved' +description 'Configures Users and Mech Ids' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '0.1.9' diff --git a/cookbooks/user/recipes/default.rb b/cookbooks/user/recipes/default.rb new file mode 100644 index 0000000..20c5ac3 --- /dev/null +++ b/cookbooks/user/recipes/default.rb @@ -0,0 +1,33 @@ +# +# Cookbook Name:: user +# Recipe:: default +# +# Copyright 2015, AT&T +# +# All rights reserved - Do Not Redistribute +# +group 'aaiadmin' do + append true +#gid 492381 + members members ['aaiadmin'] + action :create +end + +user 'aaiadmin' do + comment "A&AI Application User" + gid "aaiadmin" + home "/opt/aaihome/aaiadmin" + manage_home true + non_unique false + shell "/bin/ksh" +#uid 341790 + username "aaiadmin" + ignore_failure true + action :create +end +directory "/opt/aaihome/aaiadmin" do + owner 'aaiadmin' + group 'aaiadmin' + mode "0755" + ignore_failure true +end |