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

dpkg_autostart (8) Versions 0.2.0

Control service actions initialized from dpkg

Berkshelf/Librarian
Policyfile
Knife
cookbook 'dpkg_autostart', '~> 0.2.0'
cookbook 'dpkg_autostart', '~> 0.2.0', :supermarket
knife cookbook site install dpkg_autostart
knife cookbook site download dpkg_autostart
README
Dependencies
Changelog
Quality

Dpkg Autostart

dpkg likes to start services after installation as the Debian convention dictates. This can be annoying and problematic, especially when you don't want services to be immediately started before custom configuration can be applied. Instead of disabling all services from auto starting on installation as the dpkg_deb_unautostart cookbook does, lets allow specifc services to be targeted.

Usage

LWRP

Include the cookbook as a dependency in your metadata:

depends 'dpkg_autostart'

Then, within your recipe, disable the service with the LWRP:

dpkg_autostart 'mysql-server' do
  allow false
end

That's it. When dpkg attempts to start the service after install (generally via apt) it will be instructed not to. This allows the proper configuration files to be generated, and the service to be started after everything is ready.

Attribute

You can also provide a list of services to disable via node attribute. Add the default recipe to the run list:

run_list 'recipe[dpkg_autostart]'

and set the services you want to restrict from auto starting:

node[:dpkg_autostart][:disabled_services] = ['mysql-server', 'apache2']

Info

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

hadoop Applicable Versions
jenkins Applicable Versions
lxc Applicable Versions
monit-ng Applicable Versions
nrpe-ng Applicable Versions
openldap Applicable Versions
rabbitmq Applicable Versions
serverdensity Applicable Versions
zookeeperd Applicable Versions

v0.2.0

NOTE: Release introduces minor breaking change due to updated interaction with resource collection. * Fix script syntax in bin file (#7 thanks @hamann!) * Allow multiple services and actions (#7 thanks @hamann!) * Use ResourceCollection#insert when adding bin resource * NOTE: This may require updating resource locations or adding the default recipe to the beginning of the run list

v0.1.12

  • Be a noop except on debian family

v0.1.10

  • Add support for upstart services (thanks @bkw)

v0.1.8

  • Add support for Chef 10 (#3)
  • Properly update resource_collection when unshifting (#4)
    • Thanks @mpasternacki

v0.1.6

  • Fix version number

v0.1.4

  • Use "heavyweight" resource/provider
  • Fix execution error on initial runs (#2)

v0.1.2

  • Add explicit :create action to template

v0.1.0

  • Initial commit

Collaborator Number Metric
            

0.2.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.0 failed this metric

FC064: Ensure issues_url is set in metadata: dpkg_autostart/metadata.rb:1
FC065: Ensure source_url is set in metadata: dpkg_autostart/metadata.rb:1
FC066: Ensure chef_version is set in metadata: dpkg_autostart/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: dpkg_autostart/metadata.rb:1
FC069: Ensure standardized license defined in metadata: dpkg_autostart/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.2.0 passed this metric

No Binaries Metric
            

0.2.0 passed this metric

Publish Metric
            

0.2.0 passed this metric

Supported Platforms Metric
            

0.2.0 failed this metric

dpkg_autostart should declare what platform(s) it supports.

Testing File Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number