Skip to content

Commit bc0f543

Browse files
author
Dylan Ratcliffe
committed
Added documentation (Fixes puppetlabs#14)
1 parent 84797fe commit bc0f543

File tree

4 files changed

+160
-1
lines changed

4 files changed

+160
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Gemfile.lock
33
.bundle/
44
spec/fixtures/
5+
.yardoc

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ group :development, :unit_tests do
2020
gem 'puppetlabs_spec_helper', :require => false
2121
gem 'rspec-puppet', '>= 2.3.2', :require => false
2222
gem 'simplecov', :require => false
23+
gem 'puppet-strings', :require => false
2324
end
2425
group :system_tests do
2526
gem 'inifile'

REFERENCE.md

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Reference
2+
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
3+
4+
## Table of Contents
5+
6+
**Resource types**
7+
8+
* [`rbac_group`](#rbac_group): A Puppet Enterprise Console RBAC group
9+
* [`rbac_role`](#rbac_role): A Puppet Enterprise Console RBAC role
10+
* [`rbac_user`](#rbac_user): A Puppet Enterprise Console RBAC user
11+
12+
## Resource types
13+
14+
### rbac_group
15+
16+
A Puppet Enterprise Console RBAC group
17+
18+
#### Properties
19+
20+
The following properties are available in the `rbac_group` type.
21+
22+
##### `ensure`
23+
24+
Valid values: present, absent
25+
26+
The basic property that the resource should be in.
27+
28+
Default value: present
29+
30+
##### `roles`
31+
32+
Array of role names for the group
33+
34+
##### `id`
35+
36+
The read-only ID of the group
37+
38+
#### Parameters
39+
40+
The following parameters are available in the `rbac_group` type.
41+
42+
##### `name`
43+
44+
namevar
45+
46+
The name of the group
47+
48+
### rbac_role
49+
50+
A Puppet Enterprise Console RBAC role
51+
52+
#### Properties
53+
54+
The following properties are available in the `rbac_role` type.
55+
56+
##### `ensure`
57+
58+
Valid values: present, absent
59+
60+
The basic property that the resource should be in.
61+
62+
Default value: present
63+
64+
##### `description`
65+
66+
The description of the role
67+
68+
##### `permissions`
69+
70+
Array of permission objects for the role
71+
72+
##### `user_ids`
73+
74+
Array of UUIDs of users (or names) assigned to the role
75+
76+
##### `group_ids`
77+
78+
Array of UUIDs of groups assigned to the role
79+
80+
##### `id`
81+
82+
The read-only ID of the role
83+
84+
#### Parameters
85+
86+
The following parameters are available in the `rbac_role` type.
87+
88+
##### `name`
89+
90+
namevar
91+
92+
The displayed name of the role
93+
94+
### rbac_user
95+
96+
A Puppet Enterprise Console RBAC user
97+
98+
#### Properties
99+
100+
The following properties are available in the `rbac_user` type.
101+
102+
##### `ensure`
103+
104+
Valid values: present, absent
105+
106+
The basic property that the resource should be in.
107+
108+
Default value: present
109+
110+
##### `display_name`
111+
112+
The displayed name of the user
113+
114+
##### `email`
115+
116+
Valid values: /@/
117+
118+
The email address of the user
119+
120+
##### `password`
121+
122+
The plaintext password of the user.
123+
124+
##### `roles`
125+
126+
List of role IDs the user is a member of. The only attribute which can be changed after creation.
127+
128+
Default value: [3]
129+
130+
##### `id`
131+
132+
The read-only ID of the user
133+
134+
##### `remote`
135+
136+
Remote users are managed by an external directory service
137+
138+
##### `superuser`
139+
140+
Whether this user has superuser privileges
141+
142+
##### `last_login`
143+
144+
The last login time for this user
145+
146+
#### Parameters
147+
148+
The following parameters are available in the `rbac_user` type.
149+
150+
##### `name`
151+
152+
Valid values: /^\S+$/
153+
154+
namevar
155+
156+
Login name of the user
157+

lib/puppet/type/rbac_role.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def insync?(is)
3232
end
3333

3434
newproperty(:user_ids, :array_matching =>:all) do
35-
desc 'Array of UUIDs of users assigned to the role'
35+
desc 'Array of UUIDs of users (or names) assigned to the role'
3636

3737
def insync?(is)
3838
# The current value may be nil and we don't

0 commit comments

Comments
 (0)