Adoptable Cookbooks List

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.

Specify a host running the discovery service for the Swarm cluster. If not specified then a search will be run instead. Only used with provider "consul", "etcd" or "zk"

['swarm']['discovery']['query']

"role:swarm-discovery AND chef_environment:#{node.chef_environment}"

When a discovery host is not specified the cookbook will attempt to find a discovery provider using the specified query. Only used with provider "consul", "etcd" or "zk"

['swarm']['discovery']['path']

nil

Path to append to the end of the key value store URL. Only used with provider "consul", "etcd" or "zk"

['swarm']['restart_policy']

'on-failure'

Swarm container restart policy

['swarm']['discovery_options']

[]

Discovery options passed in to the swarm containers

['swarm']['manager']['bind']

'0.0.0.0'

['swarm']['manager']['port']

3376

['swarm']['manager']['advertise']

node['ipaddress']

['swarm']['manager']['strategy']

'spread'

['swarm']['manager']['replication']

false

['swarm']['manager']['replication_ttl']

'30s'

['swarm']['manager']['heartbeat']

nil

['swarm']['manager']['cluster_driver']

'swarm'

['swarm']['manager']['cluster_options']

[]

Cluster driver options

['swarm']['manager']['additional_options']

{}

Hook for adding additional arguments to the swarm manage command. Specified as a Hash of argument names to values

['swarm']['worker']['ttl']

nil

['swarm']['worker']['heartbeat']

nil

['swarm']['worker']['delay']

nil

['swarm']['worker']['additional_options']

{}

Hook for adding additional arguments to the swarm join command. Specified as a Hash of argument names to values

Usage

To create a managing node include swarm::manager in your node's run list
To create a worker node include swarm::worker in your node's run list

Both of the above recipes assume that the Docker engine will be installed and running.
swarm::service can be included if the engine is not managed through some other cookbook

License

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

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Inital release

Foodcritic Metric

0.1.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/861494dd109ca904734457bd/swarm/libraries/helpers.rb:91FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/861494dd109ca904734457bd/swarm/libraries/helpers.rb:91