Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

TYPO3-cookbooks/t3-chef-client

Repository files navigation

Description

Wrapper cookbook for the chef-client cookbook, which installs Chef-Client.

Build Status master branch

Requirements

Platform:

No platforms defined

Cookbooks:

  • chef-client (= 4.3.3)
  • chef_handler
  • omnibus_updater (= 1.1.0)
  • runit

Attributes

  • node['omnibus_updater']['version'] - Version of chef-client to install. Defaults to 12.21.3.
  • node['omnibus_updater']['cache_dir'] - Cache path for chef-client package. Defaults to File.join(Chef::Config[:file_cache_path], 'chef-client').
  • node['chef_client']['init_style'] - Do not run chef-client as service. Defaults to none.
  • node['chef_client']['cron']['hour'] - Run chef-client every hour .. Defaults to *.
  • node['chef_client']['cron']['minute'] - ... at 0 and 30 minutes. Defaults to 0,30.
  • node['chef_client']['cron']['log_file'] - Path to log file. Defaults to /var/log/chef/client.log.
  • node['chef_client']['cron']['append_log'] - Append to log file. Defaults to true.
  • node['chef_client']['splay'] - Add a splay to prevent all nodes running chef-client at the same second. Defaults to 600.
  • node['chef_client']['log_rotation']['postrotate'] - avoid the restart of the chef-client service that the upstream cookbook initiates (see issue chef-client#284). Defaults to nil.
  • node['chef_client']['config']['ssl_verify_mode'] - Verify the SSL certificate of the Chef Server. Defaults to :verify_peer.
  • node['chef_client']['config']['chef_server_url'] - URL of our Chef Server. Defaults to https://chef.typo3.org.

Recipes

  • t3-chef-client::default
  • t3-chef-client::knife-lastrun

Chef-Client Version Updates

Beware when updating the chef-client version in attributes/versions.rb: When running this cookbook through the CI system with a different version, then the chef run will be killed after installing the target version.

Therefore, follow this procedure for updating the chef-client version:

  1. update the version number in chef-repo's support_files/test-kitchen/config.yml to test cookbooks locally against the new version
  2. update the version number in the site-chefcitypo3org cookbook so that Chef-CI tests the cookbooks with the new version
  3. update the version number in t3-chef-client (which would finally deploy it on all nodes)

License and Maintainer

Maintainer:: TYPO3 Association ([email protected])

License:: Apache 2.0