Added table for JSON data bag attributes

This commit is contained in:
Eric Renfro 2015-05-13 12:31:49 -04:00
parent 707b1eb299
commit a936dddd64

View file

@ -10,7 +10,6 @@ Requirements
Attributes Attributes
---------- ----------
e.g.
#### sudo_rules::default #### sudo_rules::default
Key | Type | Description | Default Key | Type | Description | Default
@ -57,14 +56,16 @@ And provide properly formatted data bag:
} }
``` ```
Id: Required: Name of Data Bag item, and sudoers.d/Id filename. Key | Type | Description | Default | Required?
Name: Optional: Instead of using Id, you can choose the name of the file for sudoers.d/Name instead. -------- | ------ | ------------------------------------------------------------------------------------ | ---------- | ---------
Hosts: Required: List of hosts to apply this rule to by fqdn, can be wildcard matched. Id | String | Name of Data Bag item, and sudoers.d/Id filename. | None | Yes
Action: `create` or `remove`: Default `create` Name | String | Instead of using Id, you can choose the name of the file for sudoers.d/Name instead. | Same as Id | No
User: Required: Username or %Groupname to use for the sudo rule. Hosts | Array | List of hosts to apply this rule to by fqdn, can be wildcard matched. | None | Yes
Runas: Allowed colon-separated list of users for sudoers runas: Default `ALL` Action | String | `create` or `remove` Sets whether to create or remove the entry. | `create` | No
Commands: Required: List of commands (and arguments) this rule adds for the user/group. User | String | Username or %Groupname to use for the sudo rule. | None | Yes
Defaults: List of defaults this user has. Runas | String | Allowed colon-separated list of users for sudoers runas. | `ALL` | No
Commands | Array | List of commands (and arguments) this rule adds for the user/group. | [] | Yes
Defaults | Array | List of defaults this user has. | [] | No
Contributing Contributing
------------ ------------