cookbook 'weave', '~> 1.5.1'
weave (3) Versions 1.5.1 Follow4
Installs/Configures weave
cookbook 'weave', '~> 1.5.1', :supermarket
knife supermarket install weave
knife supermarket download weave
Weave Cookbook
Weave Cookbook is a library cookbook that provides resources to install and manage the Weave
Supported Platforms
This cookbook is intended to be used with Linux using systemd. SysV, Init.d and Upstart are not supported.
Requirements
- Chef 12.x.x
- Network access to Weave github repository
If you use the docker_hook
action:
- Docker will be installed and configured from that action, make sure no existing docker installation is present
- Set docker_hook property to true
Dependencies
Resources
This cookbook contains only one resource
- weave_service
Actions
-
:create
- Installs weave binary, creates the docker hook, and setup Weave service. -
:install
- Downloads weave binary to the default location. -
:docker_hook
- configures weave bridge and creates docker service configured to use it. -
:setup
- download weave docker images and configures the weave systemd service -
:start
- Start weave service (only if service exists already) -
:stop
- Stops weave service (only if service exists already) -
:restart
- Restarts the service
Properties
-
ip
: ip CIDR assigned to the weave interface for this node. -
ip_alloc_range
: CIDR that defines the IP range to be assigned to containers in all nodes. -
subnet
: CIDR that defines the IP range to be assigned to containers in this node. -
password
: weave network password. -
docker_hook
: if set to true, activates the docker_hook action. -
is_master
: set to true if this is the first node in the weave network. -
master
: set to an existing node to join its network. Won't be used ifis_master
is true. -
version
: weave release version. -
source
: URL where weave binary can be downloaded.
Usage
You will usually use the weave_service
resource in your cookbooks to create the weave service, including docker hooks, and then start it.
weave_service 'weave overlay docker' do
ip_alloc_range '10.2.0.0/16'
ip '10.2.1.1/16'
subnet '10.2.1.2/24'
is_master true
docker_hook true
password 'very.secret'
version 'latest_release'
action [ :create, :start ]
end
Dependent cookbooks
compat_resource >= 0.0.0 |
docker = 1.1.49 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of weave
Collaborator Number Metric
1.5.1 passed this metric
Contributing File Metric
1.5.1 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
1.5.1 failed this metric
FC066: Ensure chef_version is set in metadata: weave/metadata.rb:1
FC069: Ensure standardized license defined in metadata: weave/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.5.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
weave/files/nsenter_2.24.deb
Testing File Metric
1.5.1 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
1.5.1 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
1.5.1 passed this metric
1.5.1 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
1.5.1 failed this metric
FC066: Ensure chef_version is set in metadata: weave/metadata.rb:1
FC069: Ensure standardized license defined in metadata: weave/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.5.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
weave/files/nsenter_2.24.deb
Testing File Metric
1.5.1 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
1.5.1 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
1.5.1 failed this metric
FC069: Ensure standardized license defined in metadata: weave/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.5.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
weave/files/nsenter_2.24.deb
Testing File Metric
1.5.1 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
1.5.1 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
1.5.1 failed this metric
1.5.1 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