Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

q2a (1) Versions 0.1.0

Installs/Configures q2a

Berkshelf/Librarian
Policyfile
Knife
cookbook 'q2a', '~> 0.1.0'
cookbook 'q2a', '~> 0.1.0', :supermarket
knife cookbook site install q2a
knife cookbook site download q2a
README
Dependencies
Changelog
Quality

Question2Answer Cookbook

Build Status

This cookbook install and configure "Question 2 answer".

Requirements

Attributes

<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>["q2a"]["admin"]</tt></td> <td>string</td> <td>Specify the apps database account.</td> <td><tt>q2a</tt></td> </tr> <tr> <td><tt>["q2a"]["password"]</tt></td> <td>string</td> <td>Specify the apps database password.</td> <td><tt>password</tt></td> </tr> <tr> <td><tt>["q2a"]["mysql_root_pw"]</tt></td> <td>string</td> <td>Specify the root database account.</td> <td><tt>password</tt></td> </tr> <tr> <td><tt>["q2a"]["database_server"]</tt></td> <td>string</td> <td>Specify the database host.</td> <td><tt>localhost</tt></td> </tr> <tr> <td><tt>["q2a"]["apps"]</tt></td> <td>string</td> <td>Specify the apps name.</td> <td><tt>q2a</tt></td> </tr> <tr> <td><tt>["q2a"]["repository"]</tt></td> <td>string</td> <td>Specify the projetct GIT repository.</td> <td><tt>https://github.com/q2a/question2answer.git</tt></td> </tr> <tr> <td><tt>["q2a"]["domain"]</tt></td> <td>string</td> <td>Specify the virtualhost domain name.</td> <td><tt>www.apps.com</tt></td> </tr> <tr> <td><tt>["q2a"]["apps_server"]</tt></td> <td>string</td> <td>Specify the apps server IP address*.</td> <td><tt>localhost</tt></td> </tr> <tr> <td><tt>["q2a"]["plugins"]["language"]</tt></td> <td>string</td> <td>Specify the link to download an additionnal language pack.</td> <td><tt>http://www.question2answer.org/third-party/question2answer-1.6-language-fr.zip</tt></td> </tr> </table>

* used to restrict the access to the database server.

Usage

Actually, this cookbook is composed by 2 recipes :

  • database.rb
  • apps.rb

The default recipe is not used here.

Database role (install the database)

You need to create a database role like this :

{
  "name": "q2a-db",
  "description": "Q2A Database role.",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
  },
  "chef_type": "role",
  "run_list": [
    "recipe[q2a::database]"
  ],
  "env_run_lists": {
  }
}

This role have to be applied to your database node so it can install and configure the database server for q2a.

Apps role (install the q2a apps)

You need to create an apps role like this :

{
  "name": "q2a-apps",
  "description": "Q2A Apps role.",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
  },
  "chef_type": "role",
  "run_list": [
    "recipe[q2a::apps]"
  ],
  "env_run_lists": {
  }
}

This role have to be applied to your webserver node so it can install and configure the apps server for q2a.

All in one role (install the q2a database and q2a app on the same server)

You can, of course, install all component in one server. Create the role like this :

{
  "name": "q2a-instance",
  "description": "Q2A All In One server.",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
  },
  "chef_type": "role",
  "run_list": [
    "recipe[q2a::database]",
    "recipe[q2a::apps]"
  ],
  "env_run_lists": {
  }
}

Apply this role to your server and you are done.

Contributing

  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

License

Copyright 2014 Léonard TAVAE

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.

Authors

  • Léonard TAVAE

Dependent cookbooks

postfix >= 0.0.0
ark >= 0.0.0
database >= 0.0.0
mysql >= 0.0.0
apache2 >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of q2a

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: q2a/metadata.rb:1
FC065: Ensure source_url is set in metadata: q2a/metadata.rb:1
FC066: Ensure chef_version is set in metadata: q2a/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: q2a/metadata.rb:1
FC069: Ensure standardized license defined in metadata: q2a/metadata.rb:1
Run with Foodcritic Version 10.3.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 failed this metric

q2a should declare what platform(s) it supports.

Testing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 passed this metric