microwave 11.400.5 → 11.400.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/VERSION +1 -1
  2. data/lib/chef/daemon.rb +0 -2
  3. metadata +3 -118
  4. data/distro/README +0 -2
  5. data/distro/arch/etc/conf.d/chef-client.conf +0 -5
  6. data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
  7. data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
  8. data/distro/arch/etc/conf.d/chef-server.conf +0 -10
  9. data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
  10. data/distro/arch/etc/rc.d/chef-client +0 -90
  11. data/distro/arch/etc/rc.d/chef-expander +0 -78
  12. data/distro/arch/etc/rc.d/chef-server +0 -78
  13. data/distro/arch/etc/rc.d/chef-server-webui +0 -78
  14. data/distro/arch/etc/rc.d/chef-solr +0 -78
  15. data/distro/common/html/chef-client.8.html +0 -145
  16. data/distro/common/html/chef-expander.8.html +0 -164
  17. data/distro/common/html/chef-expanderctl.8.html +0 -146
  18. data/distro/common/html/chef-server-webui.8.html +0 -185
  19. data/distro/common/html/chef-server.8.html +0 -182
  20. data/distro/common/html/chef-shell.1.html +0 -286
  21. data/distro/common/html/chef-solo.8.html +0 -191
  22. data/distro/common/html/chef-solr.8.html +0 -165
  23. data/distro/common/html/knife-bootstrap.1.html +0 -241
  24. data/distro/common/html/knife-client.1.html +0 -219
  25. data/distro/common/html/knife-configure.1.html +0 -170
  26. data/distro/common/html/knife-cookbook-site.1.html +0 -241
  27. data/distro/common/html/knife-cookbook.1.html +0 -384
  28. data/distro/common/html/knife-data-bag.1.html +0 -238
  29. data/distro/common/html/knife-environment.1.html +0 -267
  30. data/distro/common/html/knife-exec.1.html +0 -134
  31. data/distro/common/html/knife-index.1.html +0 -125
  32. data/distro/common/html/knife-node.1.html +0 -250
  33. data/distro/common/html/knife-role.1.html +0 -200
  34. data/distro/common/html/knife-search.1.html +0 -288
  35. data/distro/common/html/knife-ssh.1.html +0 -156
  36. data/distro/common/html/knife-status.1.html +0 -128
  37. data/distro/common/html/knife-tag.1.html +0 -137
  38. data/distro/common/html/knife.1.html +0 -315
  39. data/distro/common/man/man1/chef-shell.1 +0 -220
  40. data/distro/common/man/man1/knife-bootstrap.1 +0 -201
  41. data/distro/common/man/man1/knife-client.1 +0 -99
  42. data/distro/common/man/man1/knife-configure.1 +0 -88
  43. data/distro/common/man/man1/knife-cookbook-site.1 +0 -145
  44. data/distro/common/man/man1/knife-cookbook.1 +0 -345
  45. data/distro/common/man/man1/knife-data-bag.1 +0 -136
  46. data/distro/common/man/man1/knife-environment.1 +0 -178
  47. data/distro/common/man/man1/knife-exec.1 +0 -43
  48. data/distro/common/man/man1/knife-index.1 +0 -29
  49. data/distro/common/man/man1/knife-node.1 +0 -134
  50. data/distro/common/man/man1/knife-role.1 +0 -88
  51. data/distro/common/man/man1/knife-search.1 +0 -280
  52. data/distro/common/man/man1/knife-ssh.1 +0 -79
  53. data/distro/common/man/man1/knife-status.1 +0 -29
  54. data/distro/common/man/man1/knife-tag.1 +0 -43
  55. data/distro/common/man/man1/knife.1 +0 -285
  56. data/distro/common/man/man8/chef-client.8 +0 -104
  57. data/distro/common/man/man8/chef-expander.8 +0 -97
  58. data/distro/common/man/man8/chef-expanderctl.8 +0 -62
  59. data/distro/common/man/man8/chef-server-webui.8 +0 -155
  60. data/distro/common/man/man8/chef-server.8 +0 -147
  61. data/distro/common/man/man8/chef-solo.8 +0 -158
  62. data/distro/common/man/man8/chef-solr.8 +0 -122
  63. data/distro/common/markdown/README +0 -3
  64. data/distro/common/markdown/man1/chef-shell.mkd +0 -195
  65. data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
  66. data/distro/common/markdown/man1/knife-client.mkd +0 -103
  67. data/distro/common/markdown/man1/knife-configure.mkd +0 -70
  68. data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
  69. data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
  70. data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
  71. data/distro/common/markdown/man1/knife-environment.mkd +0 -151
  72. data/distro/common/markdown/man1/knife-exec.mkd +0 -42
  73. data/distro/common/markdown/man1/knife-index.mkd +0 -30
  74. data/distro/common/markdown/man1/knife-node.mkd +0 -130
  75. data/distro/common/markdown/man1/knife-role.mkd +0 -85
  76. data/distro/common/markdown/man1/knife-search.mkd +0 -180
  77. data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
  78. data/distro/common/markdown/man1/knife-status.mkd +0 -36
  79. data/distro/common/markdown/man1/knife-tag.mkd +0 -39
  80. data/distro/common/markdown/man1/knife.mkd +0 -213
  81. data/distro/common/markdown/man8/chef-client.mkd +0 -74
  82. data/distro/common/markdown/man8/chef-expander.mkd +0 -82
  83. data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -58
  84. data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
  85. data/distro/common/markdown/man8/chef-server.mkd +0 -121
  86. data/distro/common/markdown/man8/chef-solo.mkd +0 -107
  87. data/distro/common/markdown/man8/chef-solr.mkd +0 -89
  88. data/distro/debian/etc/default/chef-client +0 -4
  89. data/distro/debian/etc/default/chef-expander +0 -8
  90. data/distro/debian/etc/default/chef-server +0 -9
  91. data/distro/debian/etc/default/chef-server-webui +0 -9
  92. data/distro/debian/etc/default/chef-solr +0 -8
  93. data/distro/debian/etc/init.d/chef-client +0 -210
  94. data/distro/debian/etc/init.d/chef-expander +0 -176
  95. data/distro/debian/etc/init.d/chef-server +0 -122
  96. data/distro/debian/etc/init.d/chef-server-webui +0 -123
  97. data/distro/debian/etc/init.d/chef-solr +0 -176
  98. data/distro/debian/etc/init/chef-client.conf +0 -17
  99. data/distro/debian/etc/init/chef-expander.conf +0 -17
  100. data/distro/debian/etc/init/chef-server-webui.conf +0 -17
  101. data/distro/debian/etc/init/chef-server.conf +0 -17
  102. data/distro/debian/etc/init/chef-solr.conf +0 -17
  103. data/distro/redhat/etc/init.d/chef-client +0 -121
  104. data/distro/redhat/etc/init.d/chef-expander +0 -104
  105. data/distro/redhat/etc/init.d/chef-server +0 -112
  106. data/distro/redhat/etc/init.d/chef-server-webui +0 -112
  107. data/distro/redhat/etc/init.d/chef-solr +0 -104
  108. data/distro/redhat/etc/logrotate.d/chef-client +0 -8
  109. data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
  110. data/distro/redhat/etc/logrotate.d/chef-server +0 -8
  111. data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
  112. data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
  113. data/distro/redhat/etc/sysconfig/chef-client +0 -15
  114. data/distro/redhat/etc/sysconfig/chef-expander +0 -7
  115. data/distro/redhat/etc/sysconfig/chef-server +0 -14
  116. data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
  117. data/distro/redhat/etc/sysconfig/chef-solr +0 -8
  118. data/distro/windows/service_manager.rb +0 -164
@@ -1,220 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "CHEF\-SHELL" "1" "February 2013" "Chef 11.2.0" "Chef Manual"
5
- .
6
- .SH "NAME"
7
- \fBchef\-shell\fR \- Interactive Chef Console
8
- .
9
- .SH "SYNOPSIS"
10
- \fBchef\-shell\fR [\fInamed configuration\fR] \fI(options)\fR
11
- .
12
- .TP
13
- \fB\-S\fR, \fB\-\-server CHEF_SERVER_URL\fR
14
- The chef server URL
15
- .
16
- .TP
17
- \fB\-z\fR, \fB\-\-client\fR
18
- chef\-client mode
19
- .
20
- .TP
21
- \fB\-c\fR, \fB\-\-config CONFIG\fR
22
- The configuration file to use
23
- .
24
- .TP
25
- \fB\-j\fR, \fB\-\-json\-attributes JSON_ATTRIBS\fR
26
- Load attributes from a JSON file or URL
27
- .
28
- .TP
29
- \fB\-l\fR, \fB\-\-log\-level LOG_LEVEL\fR
30
- Set the logging level
31
- .
32
- .TP
33
- \fB\-s\fR, \fB\-\-solo\fR
34
- chef\-solo session
35
- .
36
- .TP
37
- \fB\-a\fR, \fB\-\-standalone\fR
38
- standalone session
39
- .
40
- .TP
41
- \fB\-v\fR, \fB\-\-version\fR
42
- Show chef version
43
- .
44
- .TP
45
- \fB\-h\fR, \fB\-\-help\fR
46
- Show command options
47
- .
48
- .P
49
- When no \-\-config option is specified, chef\-shell attempts to load a default configuration file:
50
- .
51
- .IP "\(bu" 4
52
- If a \fInamed configuration\fR is given, chef\-shell will load ~/\.chef/\fInamed configuration\fR/chef_shell\.rb
53
- .
54
- .IP "\(bu" 4
55
- If no \fInamed configuration\fR is given chef\-shell will load ~/\.chef/chef_shell\.rb if it exists
56
- .
57
- .IP "\(bu" 4
58
- chef\-shell falls back to loading /etc/chef/client\.rb or /etc/chef/solo\.rb if \-z or \-s options are given and no chef_shell\.rb can be found\.
59
- .
60
- .IP "\(bu" 4
61
- The \-\-config option takes precedence over implicit configuration paths\.
62
- .
63
- .IP "" 0
64
- .
65
- .SH "DESCRIPTION"
66
- \fBchef\-shell\fR is an irb(1) (interactive ruby) session customized for Chef\. \fBchef\-shell\fR serves two primary functions: it provides a means to interact with a Chef Server interactively using a convenient DSL; it allows you to define and run Chef recipes interactively\.
67
- .
68
- .SH "SYNTAX"
69
- chef\-shell uses irb\'s subsession feature to provide multiple modes of interaction\. In addition to the primary mode which is entered on start, \fBrecipe\fR and \fBattributes\fR modes are available\.
70
- .
71
- .SH "PRIMARY MODE"
72
- The following commands are available in the primary session:
73
- .
74
- .TP
75
- \fBhelp\fR
76
- Prints a list of available commands
77
- .
78
- .TP
79
- \fBversion\fR
80
- Prints the Chef version
81
- .
82
- .TP
83
- \fBrecipe\fR
84
- Switches to \fBrecipe\fR mode
85
- .
86
- .TP
87
- \fBattributes\fR
88
- Switches to \fBattributes\fR mode
89
- .
90
- .TP
91
- \fBrun_chef\fR
92
- Initiates a chef run
93
- .
94
- .TP
95
- \fBreset\fR
96
- reinitializes chef\-shell session
97
- .
98
- .TP
99
- \fBecho :on|:off\fR
100
- Turns irb\'s echo function on or off\. Echo is \fIon\fR by default\.
101
- .
102
- .TP
103
- \fBtracing :on|:off\fR
104
- Turns irb\'s function tracing feature on or off\. Tracing is extremely verbose and expected to be of interest primarily to developers\.
105
- .
106
- .TP
107
- \fBnode\fR
108
- Returns the \fInode\fR object for the current host\. See knife\-node(1) for more information about nodes\.
109
- .
110
- .TP
111
- \fBohai\fR
112
- Prints the attributes of \fInode\fR
113
- .
114
- .P
115
- In addition to these commands, chef\-shell provides a DSL for accessing data on the Chef Server\. When working with remote data in chef\-shell, you chain method calls in the form \fIobject type\fR\.\fIoperation\fR, where \fIobject type\fR is in plural form\. The following object types are available:
116
- .
117
- .IP "\(bu" 4
118
- \fBnodes\fR
119
- .
120
- .IP "\(bu" 4
121
- \fBroles\fR
122
- .
123
- .IP "\(bu" 4
124
- \fBdata_bags\fR
125
- .
126
- .IP "\(bu" 4
127
- \fBclients\fR
128
- .
129
- .IP "\(bu" 4
130
- \fBcookbooks\fR
131
- .
132
- .IP "" 0
133
- .
134
- .P
135
- For each \fIobject type\fR the following operations are available:
136
- .
137
- .TP
138
- \fIobject type\fR\.all(\fI&block\fR)
139
- Loads all items from the server\. If the optional code \fIblock\fR is given, each item will be passed to the block and the results returned, similar to ruby\'s \fBEnumerable#map\fR method\.
140
- .
141
- .TP
142
- \fIobject type\fR\.show(\fIobject name\fR)
143
- Aliased as \fIobject type\fR\.load
144
- .
145
- .IP
146
- Loads the singular item identified by \fIobject name\fR\.
147
- .
148
- .TP
149
- \fIobject type\fR\.search(\fIquery\fR, \fI&block\fR)
150
- Aliased as \fIobject type\fR\.find
151
- .
152
- .IP
153
- Runs a search against the server and returns the matching items\. If the optional code \fIblock\fR is given each item will be passed to the block and the results returned\.
154
- .
155
- .IP
156
- The \fIquery\fR may be a Solr/Lucene format query given as a String, or a Hash of conditions\. If a Hash is given, the options will be ANDed together\. To join conditions with OR, use negative queries, or any advanced search syntax, you must provide give the query in String form\.
157
- .
158
- .TP
159
- \fIobject type\fR\.transform(:all|\fIquery\fR, \fI&block\fR)
160
- Aliased as \fIobject type\fR\.bulk_edit
161
- .
162
- .IP
163
- Bulk edit objects by processing them with the (required) code \fIblock\fR\. You can edit all objects of the given type by passing the Symbol \fB:all\fR as the argument, or only a subset by passing a \fIquery\fR as the argument\. The \fIquery\fR is evaluated in the same way as with \fBsearch\fR\.
164
- .
165
- .IP
166
- The return value of the code \fIblock\fR is used to alter the behavior of \fBtransform\fR\. If the value returned from the block is \fBnil\fR or \fBfalse\fR, the object will not be saved\. Otherwise, the object is saved after being passed to the block\. This behavior can be exploited to create a dry run to test a data transformation\.
167
- .
168
- .SH "RECIPE MODE"
169
- Recipe mode implements Chef\'s recipe DSL\. Exhaustively documenting this DSL is outside the scope of this document\. See the following pages in the Chef documentation for more information:
170
- .
171
- .IP "\(bu" 4
172
- \fIhttp://wiki\.opscode\.com/display/chef/Resources\fR
173
- .
174
- .IP "\(bu" 4
175
- \fIhttp://wiki\.opscode\.com/display/chef/Recipes\fR
176
- .
177
- .IP "" 0
178
- .
179
- .P
180
- Once you have defined resources in the recipe, you can trigger a convergence run via \fBrun_chef\fR
181
- .
182
- .SH "EXAMPLES"
183
- .
184
- .IP "\(bu" 4
185
- A "Hello World" interactive recipe
186
- .
187
- .IP
188
- chef > recipe chef:recipe > echo :off chef:recipe > file "/tmp/hello_world" chef:recipe > run_chef [Sat, 09 Apr 2011 08:56:56 \-0700] INFO: Processing file[/tmp/hello_world] action create ((irb#1) line 2) [Sat, 09 Apr 2011 08:56:56 \-0700] INFO: file[/tmp/hello_world] created file /tmp/hello_world chef:recipe > pp ls \'/tmp\' ["\.", "\.\.", "hello_world"]
189
- .
190
- .IP "\(bu" 4
191
- Search for \fInodes\fR by role, and print their IP addresses
192
- .
193
- .IP
194
- chef > nodes\.find(:roles => \'monitoring\-server\') {|n| n[:ipaddress] } => ["10\.254\.199\.5"]
195
- .
196
- .IP "\(bu" 4
197
- Remove the role \fIobsolete\fR from every node in the system
198
- .
199
- .IP
200
- chef > nodes\.transform(:all) {|n| n\.run_list\.delete(\'role[obsolete]\') } => [node[chef098b2\.opschef\.com], node[ree\-woot], node[graphite\-dev], node[fluke\.localdomain], node[ghost\.local], node[kallistec]]
201
- .
202
- .IP "" 0
203
- .
204
- .SH "BUGS"
205
- \fBchef\-shell\fR often does not perfectly replicate the context in which chef\-client(8) configures a host, which may lead to discrepancies in observed behavior\.
206
- .
207
- .P
208
- \fBchef\-shell\fR has to duplicate much code from chef\-client\'s internal libraries and may become out of sync with the behavior of those libraries\.
209
- .
210
- .SH "SEE ALSO"
211
- chef\-client(8) knife(1) \fIhttp://wiki\.opscode\.com/display/chef/Chef+Shell\fR
212
- .
213
- .SH "AUTHOR"
214
- Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\. chef\-shell was written by Daniel DeLeo\.
215
- .
216
- .SH "DOCUMENTATION"
217
- This manual page was written by Daniel DeLeo \fIdan@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\.
218
- .
219
- .SH "CHEF"
220
- chef\-shell is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -1,201 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-BOOTSTRAP" "1" "February 2013" "Chef 11.2.0" "Chef Manual"
5
- .
6
- .SH "NAME"
7
- \fBknife\-bootstrap\fR \- Install Chef Client on a remote host
8
- .
9
- .SH "SYNOPSIS"
10
- \fBknife\fR \fBbootstrap\fR \fI(options)\fR
11
- .
12
- .TP
13
- \fB\-i\fR, \fB\-\-identity\-file IDENTITY_FILE\fR
14
- The SSH identity file used for authentication
15
- .
16
- .TP
17
- \fB\-N\fR, \fB\-\-node\-name NAME\fR
18
- The Chef node name for your new node
19
- .
20
- .TP
21
- \fB\-P\fR, \fB\-\-ssh\-password PASSWORD\fR
22
- The ssh password
23
- .
24
- .TP
25
- \fB\-x\fR, \fB\-\-ssh\-user USERNAME\fR
26
- The ssh username
27
- .
28
- .TP
29
- \fB\-p\fR, \fB\-\-ssh\-port PORT\fR
30
- The ssh port
31
- .
32
- .TP
33
- \fB\-\-bootstrap\-version VERSION\fR
34
- The version of Chef to install
35
- .
36
- .TP
37
- \fB\-\-bootstrap\-proxy PROXY_URL\fR
38
- \fBThe proxy server for the node being bootstrapped\fR
39
- .
40
- .TP
41
- \fB\-\-prerelease\fR
42
- Install pre\-release Chef gems
43
- .
44
- .TP
45
- \fB\-r\fR, \fB\-\-run\-list RUN_LIST\fR
46
- Comma separated list of roles/recipes to apply
47
- .
48
- .TP
49
- \fB\-\-template\-file TEMPLATE\fR
50
- Full path to location of template to use
51
- .
52
- .TP
53
- \fB\-\-sudo\fR
54
- Execute the bootstrap via sudo
55
- .
56
- .TP
57
- \fB\-d\fR, \fB\-\-distro DISTRO\fR
58
- Bootstrap a distro using a template
59
- .
60
- .TP
61
- \fB\-\-[no\-]host\-key\-verify\fR
62
- Enable host key verification, which is the default behavior\.
63
- .
64
- .TP
65
- \fB\-\-hint HINT_NAME[=HINT_FILE]\fR
66
- Provide the name of a hint (with option JSON file) to set for use by Ohai plugins\.
67
- .
68
- .SH "DESCRIPTION"
69
- Performs a Chef Bootstrap on the target node\. The goal of the bootstrap is to get Chef installed on the target system so it can run Chef Client with a Chef Server\. The main assumption is a baseline OS installation exists\. This sub\-command is used internally by some cloud computing plugins\.
70
- .
71
- .P
72
- The bootstrap sub\-command supports supplying a template to perform the bootstrap steps\. If the distro is not specified (via \fB\-d\fR or \fB\-\-distro\fR option), an Ubuntu 10\.04 host bootstrapped with RubyGems is assumed\. The \fBDISTRO\fR value corresponds to the base filename of the template, in other words \fBDISTRO\fR\.erb\. A template file can be specified with the \fB\-\-template\-file\fR option in which case the \fBDISTRO\fR is not used\. The sub\-command looks in the following locations for the template to use:
73
- .
74
- .IP "\(bu" 4
75
- \fBbootstrap\fR directory in the installed Chef Knife library\.
76
- .
77
- .IP "\(bu" 4
78
- \fBbootstrap\fR directory in the \fB$PWD/\.chef\fR\.
79
- .
80
- .IP "\(bu" 4
81
- \fBbootstrap\fR directory in the users \fB$HOME/\.chef\fR\.
82
- .
83
- .IP "" 0
84
- .
85
- .P
86
- The default bootstrap templates are scripts that get copied to the target node (FQDN)\. The following distros are supported:
87
- .
88
- .IP "\(bu" 4
89
- centos5\-gems
90
- .
91
- .IP "\(bu" 4
92
- fedora13\-gems
93
- .
94
- .IP "\(bu" 4
95
- ubuntu10\.04\-gems
96
- .
97
- .IP "\(bu" 4
98
- ubuntu10\.04\-apt
99
- .
100
- .IP "" 0
101
- .
102
- .P
103
- The gems installations will use RubyGems 1\.3\.6 and Chef installed as a gem\. The apt installation will use the Opscode APT repository\.
104
- .
105
- .P
106
- In addition to handling the software installation, these bootstrap templates do the following:
107
- .
108
- .IP "\(bu" 4
109
- Write the validation\.pem per the local knife configuration\.
110
- .
111
- .IP "\(bu" 4
112
- Write a default config file for Chef (\fB/etc/chef/client\.rb\fR) using values from the \fBknife\.rb\fR\.
113
- .
114
- .IP "\(bu" 4
115
- Create a JSON attributes file containing the specified run list and run Chef\.
116
- .
117
- .IP "" 0
118
- .
119
- .P
120
- In the case of the RubyGems, the \fBclient\.rb\fR will be written from scratch with a minimal set of values; see \fBEXAMPLES\fR\. In the case of APT Package installation, \fBclient\.rb\fR will have the \fBvalidation_client_name\fR appended if it is not set to \fBchef\-validator\fR (default config value), and the \fBnode_name\fR will be added if \fBchef_node_name\fR option is specified\.
121
- .
122
- .P
123
- When this is complete, the bootstrapped node will have:
124
- .
125
- .IP "\(bu" 4
126
- Latest Chef version installed from RubyGems or APT Packages from Opscode\. This may be a later version than the local system\.
127
- .
128
- .IP "\(bu" 4
129
- Be validated with the configured Chef Server\.
130
- .
131
- .IP "\(bu" 4
132
- Have run Chef with its default run list if one is specfied\.
133
- .
134
- .IP "" 0
135
- .
136
- .P
137
- Additional custom bootstrap templates can be created and stored in \fB\.chef/bootstrap/DISTRO\.erb\fR, replacing \fBDISTRO\fR with the value passed with the \fB\-d\fR or \fB\-\-distro\fR option\. See \fBEXAMPLES\fR for more information\.
138
- .
139
- .SH "EXAMPLES"
140
- Setting up a custom bootstrap is fairly straightforward\. Create a \fB\.chef/bootstrap\fR directory in your Chef Repository or in \fB$HOME/\.chef/bootstrap\fR\. Then create the ERB template file\.
141
- .
142
- .IP "" 4
143
- .
144
- .nf
145
-
146
- mkdir ~/\.chef/bootstrap
147
- vi ~/\.chef/bootstrap/debian5\.0\-apt\.erb
148
- .
149
- .fi
150
- .
151
- .IP "" 0
152
- .
153
- .P
154
- For example, to create a new bootstrap template that should be used when setting up a new Debian node\. Edit the template to run the commands, set up the validation certificate and the client configuration file, and finally to run chef\-client on completion\. The bootstrap template can be called with:
155
- .
156
- .IP "" 4
157
- .
158
- .nf
159
-
160
- knife bootstrap mynode\.example\.com \-\-template\-file ~/\.chef/bootstrap/debian5\.0\-apt\.erb
161
- .
162
- .fi
163
- .
164
- .IP "" 0
165
- .
166
- .P
167
- Or,
168
- .
169
- .IP "" 4
170
- .
171
- .nf
172
-
173
- knife bootstrap mynode\.example\.com \-\-distro debian5\.0\-apt
174
- .
175
- .fi
176
- .
177
- .IP "" 0
178
- .
179
- .P
180
- The \fB\-\-distro\fR parameter will automatically look in the \fB~/\.chef/bootstrap\fR directory for a file named \fBdebian5\.0\-apt\.erb\fR\.
181
- .
182
- .P
183
- Templates provided by the Chef installation are located in \fBBASEDIR/lib/chef/knife/bootstrap/*\.erb\fR, where \fIBASEDIR\fR is the location where the package or Gem installed the Chef client libraries\.
184
- .
185
- .SH "BUGS"
186
- \fBknife bootstrap\fR is not capable of bootstrapping multiple hosts in parallel\.
187
- .
188
- .P
189
- The bootstrap script is passed as an argument to sh(1) on the remote system, so sensitive information contained in the script will be visible to other users via the process list using tools such as ps(1)\.
190
- .
191
- .SH "SEE ALSO"
192
- \fBknife\-ssh\fR(1)
193
- .
194
- .SH "AUTHOR"
195
- Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
196
- .
197
- .SH "DOCUMENTATION"
198
- 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\.
199
- .
200
- .SH "CHEF"
201
- Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR
@@ -1,99 +0,0 @@
1
- .\" generated with Ronn/v0.7.3
2
- .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
- .
4
- .TH "KNIFE\-CLIENT" "1" "February 2013" "Chef 11.2.0" "Chef Manual"
5
- .
6
- .SH "NAME"
7
- \fBknife\-client\fR \- Manage Chef API Clients
8
- .
9
- .SH "SYNOPSIS"
10
- \fBknife\fR \fBclient\fR \fIsub\-command\fR \fI(options)\fR
11
- .
12
- .SH "SUB\-COMMANDS"
13
- Client subcommands follow a basic create, read, update, delete (CRUD) pattern\. The Following subcommands are available:
14
- .
15
- .SH "BULK DELETE"
16
- \fBknife client bulk delete\fR \fIregex\fR \fI(options)\fR
17
- .
18
- .P
19
- Delete clients where the client name matches the regular expression \fIregex\fR on the Chef Server\. The regular expression should be given as a quoted string, and not surrounded by forward slashes\.
20
- .
21
- .SH "CREATE"
22
- \fBknife client create\fR \fIclient name\fR \fI(options)\fR
23
- .
24
- .TP
25
- \fB\-a\fR, \fB\-\-admin\fR
26
- Create the client as an admin
27
- .
28
- .TP
29
- \fB\-f\fR, \fB\-\-file FILE\fR
30
- Write the key to a file
31
- .
32
- .P
33
- Create a new client\. This generates an RSA keypair\. The private key will be displayed on \fISTDOUT\fR or written to the named file\. The public half will be stored on the Server\. For \fIchef\-client\fR systems, the private key should be copied to the system as \fB/etc/chef/client\.pem\fR\.
34
- .
35
- .P
36
- Admin clients should be created for users that will use \fIknife\fR to access the API as an administrator\. The private key will generally be copied to \fB~/\.chef/client\e_name\.pem\fR and referenced in the \fBknife\.rb\fR configuration file\.
37
- .
38
- .SH "DELETE"
39
- \fBknife client delete\fR \fIclient name\fR \fI(options)\fR
40
- .
41
- .P
42
- Deletes a registered client\.
43
- .
44
- .SH "EDIT"
45
- \fBclient edit\fR \fIclient name\fR \fI(options)\fR
46
- .
47
- .P
48
- Edit a registered client\.
49
- .
50
- .SH "LIST"
51
- \fBclient list\fR \fI(options)\fR
52
- .
53
- .TP
54
- \fB\-w\fR, \fB\-\-with\-uri\fR
55
- Show corresponding URIs
56
- .
57
- .P
58
- List all registered clients\.
59
- .
60
- .SH "REREGISTER"
61
- \fBclient reregister\fR \fIclient name\fR \fI(options)\fR
62
- .
63
- .TP
64
- \fB\-f\fR, \fB\-\-file FILE\fR
65
- Write the key to a file
66
- .
67
- .P
68
- Regenerate the RSA keypair for a client\. The public half will be stored on the server and the private key displayed on \fISTDOUT\fR or written to the named file\. This operation will invalidate the previous keypair used by the client, preventing it from authenticating with the Chef Server\. Use care when reregistering the validator client\.
69
- .
70
- .SH "SHOW"
71
- \fBclient show\fR \fIclient name\fR \fI(options)\fR
72
- .
73
- .TP
74
- \fB\-a\fR, \fB\-\-attribute ATTR\fR
75
- Show only one attribute
76
- .
77
- .P
78
- Show a client\. Output format is determined by the \-\-format option\.
79
- .
80
- .SH "DESCRIPTION"
81
- Clients are identities used for communication with the Chef Server API, roughly equivalent to user accounts on the Chef Server, except that clients only communicate with the Chef Server API and are authenticated via request signatures\.
82
- .
83
- .P
84
- In the typical case, there will be one client object on the server for each node, and the corresponding client and node will have identical names\.
85
- .
86
- .P
87
- In the Chef authorization model, there is one special client, the "validator", which is authorized to create new non\-administrative clients but has minimal privileges otherwise\. This identity is used as a sort of "guest account" to create a client identity when initially setting up a host for management with Chef\.
88
- .
89
- .SH "SEE ALSO"
90
- \fBknife\-node\fR(1)
91
- .
92
- .SH "AUTHOR"
93
- Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\.
94
- .
95
- .SH "DOCUMENTATION"
96
- 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\.
97
- .
98
- .SH "CHEF"
99
- Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR