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

Select Status

RSS

chef-ha (1) Versions 0.1.0

Installs/Configures Chef in high availibility

Policyfile
Berkshelf
Knife
cookbook 'chef-ha', '~> 0.1.0', :supermarket
cookbook 'chef-ha', '~> 0.1.0'
knife supermarket install chef-ha
knife supermarket download chef-ha
README
Dependencies
Changelog
Quality 33%

Build Status Dependency Status

chef-ha cookbook

This cookbook creates a Chef cluster in HA from beginning to end.

Local Requirements

To test this locally, the following needs to be available:

  • vagrant and plugins below
    • vagrant-triggers
    • vagrant-berkshelf
    • vagrant-ohai
    • vagrant-landrush
    • set the following entries via vagrant landrush set <host> <ip>
    • chef-vip.vagrant.dev 192.168.193.135 (back end vip)
    • chef.vagrant.dev 192.168.193.137 (front end entry point)

Also, this has only been tested against Centos 6.6. This may work on other RHEL os's, but it has not been tested.

If everything is in place, you should be able to bring up your local cluster via:

vagrant up chef1

vagrant up chef2

vagrant up chef3

They are meant to run concurrently as they expect each other to be up before they can finish converging. NFS is used on the bootstrap node to share out the configs. The configs will only be reachable by the cluster machines which are defined in the chef_data data bag.

Setup

When running this in your production environment, you'll need to do the following:

  • edit chef_data.json to include your servers and desired environment(s)
    • ldap settings optional
  • apply data bag to your chef server: knife data bag from file chef_resources chef_data.json
  • provision nodes -- it shouldn't matter what order, however, nodes will not finish converging until the primary and secondary nodes finish their DRBD sync.

Usage

chef-ha::rhel - required

This will remove ulimits and disable requiretty for rhel based os's.


chef-ha::drbd - required on backend nodes

This recipe needs to be applied to the back end nodes which need to be pre-defined in the data bag.


chef-ha::chef - required on all nodes

This recipe installs Chef in HA. This requires that the primary node finishes first so that the configs can be shared out to the dependant nodes.


chef-ha::opscode-manage - optional on front end nodes

This recipe installs the opscode-manage package on the front end node(s). This package is optional and is free up to 25 nodes per Chef's License Agreement.


chef-ha::opscode-reporting - optional

This recipe installs the opscode-reporting package on the chef system. If you want to install this pacakge, this recipe needs to be applied to all nodes. This package is optional and is free up to 25 nodes per Chef's License Agreement.


chef-ha::backend

This recipe includes everything required on the back end nodes to create Chef in HA as well as the configuration of opscode reporting.


chef-ha::frontend

This recipe includes everything required on the front end node(s) to create Chef in HA as well as the configuration of opscode-reporting and opscode-reporting.

Contributing

  1. Fork it ( https://github.com/activenetwork-automation/chef-ha/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License and Authors

License

Copyright: Copyright 2015 ACTIVE Network, LLC
License: Apache License, Version 2.0

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.

Dependent cookbooks

nfs ~> 2.2.4

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of chef-ha

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 1 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 passed this metric

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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number