Grid環境構築用のChefリポジトリです。
Revision | 668bbded1e0bb2a3304c3ec42f1792cb20519300 (tree) |
---|---|
Zeit | 2016-01-23 15:08:41 |
Autor | whitestar <whitestar@gaea...> |
Commiter | whitestar |
update documents of cdh cookbook.
@@ -1,12 +1,6 @@ | ||
1 | 1 | # CHANGELOG for cdh |
2 | 2 | |
3 | -This file is used to list changes made in each version of cdh. | |
3 | +0.1.0 | |
4 | +----- | |
5 | +- Initial release of cdh | |
4 | 6 | |
5 | -## 0.1.0: | |
6 | - | |
7 | -* Initial release of cdh | |
8 | - | |
9 | -- - - | |
10 | -Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown. | |
11 | - | |
12 | -The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown. |
@@ -1,68 +1,67 @@ | ||
1 | 1 | cdh Cookbook |
2 | 2 | ============ |
3 | -TODO: Enter the cookbook description here. | |
4 | 3 | |
5 | -e.g. | |
6 | -This cookbook makes your favorite breakfast sandwhich. | |
4 | +This cookbook provides YUM utility recipes for CDH distribution. | |
7 | 5 | |
8 | 6 | Requirements |
9 | 7 | ------------ |
10 | -TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc. | |
11 | 8 | |
12 | -e.g. | |
9 | +#### cookbooks | |
10 | +- yum_utils | |
11 | + | |
13 | 12 | #### packages |
14 | -- `toaster` - cdh needs toaster to brown your bagel. | |
13 | +none. | |
15 | 14 | |
16 | 15 | Attributes |
17 | 16 | ---------- |
18 | -TODO: List you cookbook attributes here. | |
19 | 17 | |
20 | -e.g. | |
21 | 18 | #### cdh::default |
22 | -<table> | |
23 | - <tr> | |
24 | - <th>Key</th> | |
25 | - <th>Type</th> | |
26 | - <th>Description</th> | |
27 | - <th>Default</th> | |
28 | - </tr> | |
29 | - <tr> | |
30 | - <td><tt>['cdh']['bacon']</tt></td> | |
31 | - <td>Boolean</td> | |
32 | - <td>whether to include bacon</td> | |
33 | - <td><tt>true</tt></td> | |
34 | - </tr> | |
35 | -</table> | |
19 | +|Key|Type|Description (with examples)|Default| | |
20 | +|:--|:--|:--|:--| | |
21 | +|`['cdh']['version']`|String||`'4.3.1'`| | |
22 | +|`['cdh']['archive_url']`|String||`'http://archive.cloudera.com'`| | |
23 | +|`['cdh']['yum_repo']['with_gplextras']`|String|LZO etc. CDH4 only.|`false`| | |
24 | +|`['cdh']['yum_repo']['update']`|String||`false`| | |
25 | +|`['cdh']['yum_repo']['only_for_mirroring']`|String||`false`| | |
26 | +|`['cdh']['yum_repo']['mirroring']['platform']`|String|`'centos'`, `'rhel'`, `'suse'`|`'centos'`| | |
27 | +|`['cdh']['yum_repo']['mirroring']['platform_version']`|String||`'6'`| | |
28 | +|`['cdh']['yum_repo']['mirroring']['arch']`|String|`'i386'`, `'x86_64'`|`'x86_64'`| | |
29 | +|`['cdh']['yum_mirror']['user']`|String|mirroring user|`'yum-mirror'`| | |
30 | +|`['cdh']['yum_mirror']['cron_period']`|String|cron period expression|`'#0 4 * * *'` (inactive)| | |
31 | +|`['cdh']['yum_mirror']['base_path']`|String|base directory path|`'/var/spool/cdh-mirror'`| | |
32 | +|`['cdh']['yum_mirror']['yum_conf']`|String|YUM configuration file path|Debian: `'/etc/yum/yum.conf'`, RHEL: `'/etc/yum.conf'`| | |
33 | +|`['cdh']['yum_mirror']['repos_dir']`|String|repository configuration directory path|Debian: `'/etc/yum/repos.d'`, RHEL: `'/etc/yum.repos.d'`| | |
34 | +|`['cdh']['yum_mirror']['repo_ids']`|Array|mirroring repository ids|`[]` (empty)| | |
35 | +|`['cdh']['yum_mirror']['arch']`|String|system architecture|`'x86_64'`| | |
36 | +|`['cdh']['yum_mirror']['url_alias_with_authority_part']`|Boolean|use url alias with authority part|`true`| | |
36 | 37 | |
37 | 38 | Usage |
38 | 39 | ----- |
39 | 40 | #### cdh::default |
40 | -TODO: Write usage instructions for each cookbook. | |
41 | - | |
42 | -e.g. | |
43 | -Just include `cdh` in your node's `run_list`: | |
41 | +- do nothing. | |
44 | 42 | |
45 | -```json | |
46 | -{ | |
47 | - "name":"my_node", | |
48 | - "run_list": [ | |
49 | - "recipe[cdh]" | |
50 | - ] | |
51 | -} | |
52 | -``` | |
53 | - | |
54 | -Contributing | |
55 | ------------- | |
56 | -TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section. | |
43 | +#### cdh::yum_mirror | |
44 | +- set up mirroring configurations for CDH repository. | |
57 | 45 | |
58 | -e.g. | |
59 | -1. Fork the repository on Github | |
60 | -2. Create a named feature branch (like `add_component_x`) | |
61 | -3. Write you change | |
62 | -4. Write tests for your change (if applicable) | |
63 | -5. Run the tests, ensuring they all pass | |
64 | -6. Submit a Pull Request using Github | |
46 | +#### cdh::yum_repo | |
47 | +- set up YUM repository configurations of CDH. | |
65 | 48 | |
66 | 49 | License and Authors |
67 | 50 | ------------------- |
68 | -Authors: TODO: List authors | |
51 | +- Author:: whitestar at osdn.jp | |
52 | + | |
53 | +```text | |
54 | +Copyright 2013-2016, whitestar | |
55 | + | |
56 | +Licensed under the Apache License, Version 2.0 (the "License"); | |
57 | +you may not use this file except in compliance with the License. | |
58 | +You may obtain a copy of the License at | |
59 | + | |
60 | + http://www.apache.org/licenses/LICENSE-2.0 | |
61 | + | |
62 | +Unless required by applicable law or agreed to in writing, software | |
63 | +distributed under the License is distributed on an "AS IS" BASIS, | |
64 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
65 | +See the License for the specific language governing permissions and | |
66 | +limitations under the License. | |
67 | +``` |