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

zypper (5) Versions 0.2.1

Provides resources for managing zypper repositories

Policyfile
Berkshelf
Knife
cookbook 'zypper', '= 0.2.1', :supermarket
cookbook 'zypper', '= 0.2.1'
knife supermarket install zypper
knife supermarket download zypper
README
Dependencies
Changelog
Quality 100%

zypper Cookbook

Cookbook that provides a lwrp for zypper repositories and also a
recipe to install and configure the smt-client for SLES.

Requirements

Tested with SLES 11sp3 and OpenSUSE 13.1

Attributes

zypper::smt_client

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['zypper']['smt_host']</tt></td>
<td>String</td>
<td>uri of the SMT host</td>
<td><tt>nil</tt></td>
</tr>
</table>

Resource/Provider

zypper_repo

Actions

  • add - adds a repo
  • delete - removes a repo

Attributes

  • repo_name - repo alias (name attribute)
  • uri - uri of the repo
  • autorefresh - enable autorefresh
  • key - location of repo key to import

Usage

zypper::default

Just include zypper in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[zypper]"
  ]
}

zypper::smt_client

Just include zypper::smt_client in your node's run_list
and set the smt_host attribute to your smt server:

{
  "name":"my_node",
  "normal": {
    "zypper": {
      "smt_host": "smt.example.com"
    }
  },
  "run_list": [
    "recipe[zypper]"
  ]
}

Testing

To test with test kitchen you need to have a SLES Vagrant box already on
your system(checkout github.com/opscode/bento). In order to test the smt recipe
with your smt server set the SMT_HOST env variable to your smt host:

export SMT_HOST=smt.example.com

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you 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

copyright (C) 2014-2015 Jim Rosser

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

asf Applicable Versions
b1h Applicable Versions
chef_nginx Applicable Versions
corosync Applicable Versions
gimp Applicable Versions
gliderlabs_registrator Applicable Versions
instana-agent Applicable Versions
nginx Applicable Versions
open-build-service Applicable Versions

zypper CHANGELOG

0.2.1

  • [gimler] - Use --non-interactive mode when running zypper refresh

0.2.0

  • [jarosser06] - Added Key attribute to allow importing a gpg key for a new repo
  • [jarosser06] - Renamed alias attribute to repo_name

0.1.0

  • [jarosser06] - Initial release of zypper

Foodcritic Metric
            

0.2.1 passed this metric