blob: f42b223a94597fcea107b7b5f751b7193e271c40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "KNIFE\-ROLE" "1" "February 2013" "Chef 11.0.0" "Chef Manual"
.
.SH "NAME"
\fBknife\-role\fR \- Group common configuration settings
.
.SH "SYNOPSIS"
\fBknife\fR \fBrole\fR \fIsub\-command\fR \fI(options)\fR
.
.SH "ROLE SUB\-COMMANDS"
The following \fBrole\fR subcommands are available:
.
.SH "LIST"
\fBknife role list\fR \fI(options)\fR
.
.TP
\fB\-w\fR, \fB\-\-with\-uri\fR
Show corresponding URIs
.
.P
List roles\.
.
.SH "SHOW"
\fBknife role show ROLE\fR \fI(options)\fR
.
.TP
\fB\-a\fR, \fB\-\-attribute ATTR\fR
Show only one attribute
.
.P
Show a specific role\.
.
.SH "CREATE"
\fBknife role create ROLE\fR \fI(options)\fR
.
.TP
\fB\-d\fR, \fB\-\-description\fR
The role description
.
.P
Create a new role\.
.
.SH "EDIT"
\fBknife role edit ROLE\fR \fI(options)\fR
.
.P
Edit a role\.
.
.SH "FROM FILE"
\fBknife role from file FILE\fR \fI(options)\fR
.
.P
Create or update a role from a role Ruby DSL (\fB\.rb\fR) or JSON file\.
.
.SH "DELETE"
\fBknife role delete ROLE\fR \fI(options)\fR
.
.P
Delete a role\.
.
.SH "BULK DELETE"
\fBknife role bulk delete REGEX\fR \fI(options)\fR
.
.P
Delete roles on the Chef Server based on a regular expression\. The regular expression (\fIREGEX\fR) should be in quotes, not in //\'s\.
.
.SH "DESCRIPTION"
Roles provide a mechanism to group repeated configuration settings\. Roles are data structures that contain \fBdefault_attributes\fR, and \fBoverride_attributes\fR, which are nested hashes of configuration settings, and a \fBrun_list\fR, which is an ordered list of recipes and roles that should be applied to a host by chef\-client\.
.
.P
\fBdefault_attributes\fR will be overridden if they conflict with a value on a node that includes the role\. Conversely, \fBoverride_attributes\fR will override any values set on nodes that apply them\.
.
.P
When \fBchef\-client\fR(8) configures a host, it will "expand" the \fBrun_list\fR included in that host\'s node data\. The expansion process will recursively replace any roles in the run_list with that role\'s run_list\.
.
.SH "SEE ALSO"
\fBknife\-node(1)\fR \fBknife\-environment(1)\fR \fIhttp://wiki\.opscode\.com/display/chef/Roles\fR \fIhttp://wiki\.opscode\.com/display/chef/Attributes\fR
.
.SH "AUTHOR"
Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
.
.SH "DOCUMENTATION"
This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
.
.SH "CHEF"
Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
|