Kouhei Sutou
null+****@clear*****
Fri Jan 24 14:51:27 JST 2014
Kouhei Sutou 2014-01-24 14:51:27 +0900 (Fri, 24 Jan 2014) New Revision: beeb1b6064d1f1926ce7a60a29f1a09ed8bdd517 https://github.com/droonga/chef-cookbooks/commit/beeb1b6064d1f1926ce7a60a29f1a09ed8bdd517 Message: Create droonga-engine user Added files: README.md droonga/CHANGELOG.md droonga/README.md droonga/attributes/default.rb droonga/metadata.rb droonga/recipes/engine.rb droonga/recipes/user.rb Added: README.md (+11 -0) 100644 =================================================================== --- /dev/null +++ README.md 2014-01-24 14:51:27 +0900 (03d31b5) @@ -0,0 +1,11 @@ +# Droonga related chef cookbooks + +## Install + +Add the following line to your Berksfile: + +``` +cookbook "droonga", github: "droonga/chef-cookbooks", rel: "droonga" +``` + +Now, you can use `droonga` recipe. See [README.md](https://github.com/droonga/chef-cookbooks/tree/master/droonga) of the recipe for details. Added: droonga/CHANGELOG.md (+13 -0) 100644 =================================================================== --- /dev/null +++ droonga/CHANGELOG.md 2014-01-24 14:51:27 +0900 (d450772) @@ -0,0 +1,13 @@ +droonga CHANGELOG +================= + +This file is used to list changes made in each version of the droonga cookbook. + +0.1.0 +----- +- Kouhei Sutou - Initial release of droonga + +- - - +Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown. + +The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown. Added: droonga/README.md (+68 -0) 100644 =================================================================== --- /dev/null +++ droonga/README.md 2014-01-24 14:51:27 +0900 (f5f3310) @@ -0,0 +1,68 @@ +droonga Cookbook +================ +TODO: Enter the cookbook description here. + +e.g. +This cookbook makes your favorite breakfast sandwich. + +Requirements +------------ +TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc. + +e.g. +#### packages +- `toaster` - droonga needs toaster to brown your bagel. + +Attributes +---------- +TODO: List you cookbook attributes here. + +e.g. +#### droonga::default +<table> + <tr> + <th>Key</th> + <th>Type</th> + <th>Description</th> + <th>Default</th> + </tr> + <tr> + <td><tt>['droonga']['bacon']</tt></td> + <td>Boolean</td> + <td>whether to include bacon</td> + <td><tt>true</tt></td> + </tr> +</table> + +Usage +----- +#### droonga::default +TODO: Write usage instructions for each cookbook. + +e.g. +Just include `droonga` in your node's `run_list`: + +```json +{ + "name":"my_node", + "run_list": [ + "recipe[droonga]" + ] +} +``` + +Contributing +------------ +TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section. + +e.g. +1. Fork the repository on Github +2. Create a named feature branch (like `add_component_x`) +3. Write your change +4. Write tests for your change (if applicable) +5. Run the tests, ensuring they all pass +6. Submit a Pull Request using Github + +License and Authors +------------------- +Authors: TODO: List authors Added: droonga/attributes/default.rb (+3 -0) 100644 =================================================================== --- /dev/null +++ droonga/attributes/default.rb 2014-01-24 14:51:27 +0900 (857515a) @@ -0,0 +1,3 @@ +default.droonga.engine.user_name = "droonga-engine" +default.droonga.engine.group_name = "droonga-engine" +default.droonga.engine.home = "/home/droonga-engine" Added: droonga/metadata.rb (+7 -0) 100644 =================================================================== --- /dev/null +++ droonga/metadata.rb 2014-01-24 14:51:27 +0900 (41da771) @@ -0,0 +1,7 @@ +name 'droonga' +maintainer 'Kouhei Sutou' +maintainer_email 'kou �� clear-code.com' +license 'Apache 2.0' +description 'Installs/Configures droonga' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '0.1.0' Added: droonga/recipes/engine.rb (+20 -0) 100644 =================================================================== --- /dev/null +++ droonga/recipes/engine.rb 2014-01-24 14:51:27 +0900 (751c1dd) @@ -0,0 +1,20 @@ +# +# Cookbook Name:: droonga +# Recipe:: engine +# +# Copyright 2014, Kouhei Sutou +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +include_recipe "droonga::user" Added: droonga/recipes/user.rb (+31 -0) 100644 =================================================================== --- /dev/null +++ droonga/recipes/user.rb 2014-01-24 14:51:27 +0900 (fd6c791) @@ -0,0 +1,31 @@ +# +# Cookbook Name:: droonga +# Recipe:: user +# +# Copyright 2014, Kouhei Sutou +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +droonga_engine = node["droonga"]["engine"] + +user_name = droonga["user_name"] +group_name = droonga["group_name"] +home_dir = droonga["home"] + +user user_name do + home home_dir + group group_name + password nil + supports :manage_home => true +end -------------- next part -------------- HTML����������������������������...Download