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

RSS

nut (4) Versions 0.0.2

Installs/Configures Network UPS Tools

Berkshelf/Librarian
Policyfile
Knife
cookbook 'nut', '= 0.0.2'
cookbook 'nut', '= 0.0.2', :supermarket
knife cookbook site install nut
knife cookbook site download nut
README
Dependencies
Quality -%

Description

Installs and configures Network UPS Tools.

Requirements

  • Chef 0.10.10+.

Platform

  • Debian, Ubuntu

Tested on:

  • Debian 6.0 (Squeeze)
  • Ubuntu 12.04 (Precise Penguin)

Attributes

The main attributes are listed below. The complete list is documented in the metadata.rb and attributes/default.rb files included with the project.

  • node['nut']['mode'] - The mode determines which parts of NUT is to be started.
  • node['nut']['devices'] - Serial devices to change to the NUT group
  • node['nut']['ups'] - The driver settings for your UPS
  • node['nut']['users'] - Determines user access control, authentication and roles
  • node['nut']['monitors'] - The monitor configuration

Usage

Add the nut recipe to your run list.

Using knife to add nut to the run list
knife node run_list add [NODE] 'recipe[nut]'
Basic Node Structure
{
    "nut": {
        "mode": "standalone",

        "devices": ["ttyS0"],

        "ups": {
            'cyberpower': {
                "driver": "powerpanel",
                "port": "/dev/ttyS0",
                "desc": "Cyberpower CP1500AVR"
            }
        },

        "users": {
            "vagrant": {
                "password": "vagrant",
                "upsmod master": true
            }
        },

        "monitors": {
            "cyberpower": {
                "system": "cyberpower@localhost",
                "power_value": 1,
                "username": "vagrant",
                "password": "vagrant",
                "role": "master"
            }
        }

    }
}

Running inside vagrant

First you'll need to install Virtual Box, Vagrant and a UPS

Create the cookbook directory
 [ -s cookbooks/nut ] || (mkdir cookbooks && ln -s /vagrant cookbooks/nut)
Start Vagrant
vagrant up

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found