cookbook 'salt', '= 0.2.0'
salt (11) Versions 0.2.0 Follow5
Installs and configures Salt
cookbook 'salt', '= 0.2.0', :supermarket
knife supermarket install salt
knife supermarket download salt
Description
Because every Chef needs a little Salt.
Improved Remote Execution for Open Source Chef
Install Salt master and/or minion.
Why would anyone ever want to use both Salt and Chef?
I'm glad you asked!
Open Source Chef is weak in one key area that Salt just so happens to be very
strong: remote execution. knife ssh "name:*" "sudo chef-client"
really doesn't
scale very well.
Think of Salt as the Push Jobs plugin for Open Source Chef. They're even based
on the same basic messaging technology: ZeroMQ.
And as of SaltStack 2014.7, they have significantly improved Chef integration.
Want to do a chef client run on all your nodes: salt "*" chef.client
Then, you
can use the job management commands to check on the status of your run.
Requirements
Platforms
This cooked has been confirmed to work on:
- Ubuntu 10.04 or later
- CentOS 5+, RedHat 5+, Scientific Linux 5+
- Fedora 19, 20
- Debian 7 (Wheezy)
Dependencies
- apt
- yum
- yum-epel
Attributes
-
node['salt']['minion']['master']
- Address or list of masters, if not using built-in search functionality.
See attribute files for more supported attributes.
Recipes
default
Nothing; reserved to include future LWRPs.
master
Install Salt master using OS package manager.
minion
Install Salt master using OS package manager.
Resources/Providers
Usage
Define two roles named salt_master and salt_minion, which include the corresponding
recipes. The nodes will automatically discover each other within the same environment
(when using Chef Server).
If you want your Salt Masters to operate across all environments, set
node['salt']['minion']['master_environment']
to nil
for all minions.
At the moment, you will need to approve access for any minions with the salt-key -A
command. A future version of this cookbook
will handle this automatically.
Examples
License and Author
Author:: Daryl Robbins
Copyright:: 2014, Daryl Robbins
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
apt ~> 2.3.10 |
yum ~> 3.0 |
yum-epel >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.