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

system (24) Versions 0.4.0

Installs/Configures system elements such as the hostname and timezone.

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

system Cookbook

Build Status
Code Climate

This cookbook is designed to provide a set of recipes to manage core system properties.

Requirements

  • Chef >= 10
  • Ruby 1.9

Platforms Supported

  • Debian, Ubuntu
  • CentOS, RHEL, Fedora
  • Arch Linux

Cookbooks

  • apt
  • cron
  • hostsfile

Attributes

See attributes/default.rb for default values.

  • node['system']['timezone'] - the system timezone to set, default UTC
  • node['system']['short_hostname'] - the short hostname to set on the node, default is node['hostname']
  • node['system']['domain_name'] - the domain name to set on the node, default localdomain
  • node['system']['static_hosts'] - an array of static hostnames to add to /etc/hosts
  • node['system']['upgrade_packages'] - whether to upgrade the system's packages, default true
  • node['system']['packages']['install'] - an array of packages to install
  • node['system']['packages']['install_compile_time'] - an array of packages to install in Chef's compilation phase
  • node['system']['permanent_ip'] - whether the system has a permenent IP address (http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution)

The following attributes should never need to be user set:

  • node['system']['cron_service_name']

Usage

Recipes

  • default
  • hostname

When using resources that reference node['fqdn'] in variables or attribute values, note that you will
need to lazy load to get the new hostname that is being set.

Use with variables:

template '/tmp/foobar.txt' do
source 'use_fqdn_in_variable.erb'
variables lazy {
{
fqdn: node['fqdn'],
foo: bar
}
}
end

Use with a resource attribute:

log 'lazy_log_fqdn' do
message lazy { node['fqdn'] }
level :debug
end

  • install_packages
  • reboot
  • timezone
  • update_package_list
  • upgrade_packages

See metadata.rb for more information.

License and Authors

Copyright 2011-2014, Chris Fordham

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.

system CHANGELOG

This file is used to list changes made in each version of the system cookbook.

0.0.1

  • Initial pre-release version

0.1.0

  • Initial 'pre 1' minor release

0.2.2

  • Includes bug fixes, revised code and more testing files

0.2.3

  • Fix missing quote for rs_tag command in hostname provider

0.3.2

  • Fix missing equals sign for service_action variable
  • Fix notifies for service[hostname] for Debian
  • Set 127.0.1.1 on Debian if needed
  • Fix for OHAI-389
  • Set supports status false for hostname service
  • Use service_name for hostname resource name
  • Minor log text improvements for show host info
  • Notify the hostname service immediately.
  • Address FC037: Invalid notification action
  • Add chefignore
  • Add TESTING.md

0.3.3

0.3.4

0.4.0

  • Better platform support for default cron service
  • timezone provider ensures inclusion of cron recipe
  • Other minor fixes for cron
  • Improve test suite, add basic tests
  • Add a recipe to test setting of the fqdn
  • New attribute, permanent_ip to affect usage of 127.0.1.1 on debian
  • Fix setting hosts in /etc/hosts by using lazy loading of fqdn
  • Set fqdn in compile phase, to be sure

Foodcritic Metric
            

0.4.0 passed this metric