cookbook 'deb_pkg_unautostart', '~> 3.0.0'
deb_pkg_unautostart
(21) Versions
3.0.0
-
Follow2
Provides a custom resource for suppressing Debian package autostart
cookbook 'deb_pkg_unautostart', '~> 3.0.0', :supermarket
knife supermarket install deb_pkg_unautostart
knife supermarket download deb_pkg_unautostart
deb_pkg_unautostart cookbook
Debian packages like to auto start processes during install, with default configurations, generally not even close to the desired configuration. This cookbook provides a custom resource that manages /usr/sbin/policy-rc.d so package installs can be staged without starting services prematurely.
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
Requirements
Platforms
- Debian 12+
- Ubuntu 24.04+
Chef
- Chef 15.3+
Cookbooks
- None
Usage
Declare deb_pkg_unautostart_policy_rc_d before the packages whose service autostart you want to suppress.
deb_pkg_unautostart_policy_rc_d 'suppress package autostart' package 'nginx'
When the package install happens during converge, declare the resource earlier in the run so /usr/sbin/policy-rc.d already exists before the package resource executes.
Compile-time package installation
If another cookbook installs packages during compile time, create the policy script at compile time explicitly:
deb_pkg_unautostart_policy_rc_d 'suppress package autostart' do compile_time true end package 'nginx'
This replaces the legacy node['deb_pkg_unautostart']['compiletime'] attribute with an explicit resource declaration at the call site, which makes ordering and side effects visible in the recipe that needs them.
Removing the managed policy
Remove the script after package installation when autostart suppression is no longer needed:
deb_pkg_unautostart_policy_rc_d 'suppress package autostart' do action :delete end
For safety, the delete action only removes files created by this resource unless you set force_delete true.
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
deb_pkg_unautostart Cookbook CHANGELOG
This file is used to list changes made in each version of the deb_pkg_unautostart cookbook.
3.0.0 (2026-04-22)
⚠ BREAKING CHANGES
- migrate cookbook to custom resources (#43)
Features
2.1.16 (2025-10-15)
Bug Fixes
2.1.4 - 2023-03-02
- Remove delivery workflow
- Update renovate configuration
- Use new worklflows
2.1.3 - 2023-02-14
- Remove delivery folder
2.1.2 - 2021-08-29
- Standardise files with files in sous-chefs/repo-management
2.1.1 - 2021-06-01
- Standardise files with files in sous-chefs/repo-management
2.1.0 - 2021-03-15
- Sous Chefs Adoption
- Add InSpec test
2.0.0 (2016-09-15)
- Testing updates
- Require Chef 12.1+
v1.0.0 (2016-08-05)
- Moved this cookbook from Heavy Water to Chef for maintenance
- Resolved all Foodcritic and Cookstyle warnings
- Added supported platforms to the metadata
- Added chef_version, issues_url, source_url and long_description to the metadata
- Added a requirements and license section to the README
- Added Contributing, Testing, and Maintainers docs
- Added a Rakefile for simplified testing
- Added a Berksfile
- Added a Gemfile for test deps
- Added integration testing in Travis CI with kitchen-dokken
- Added the Apache 2.0 license file
- Added a Test Kitchen config
Collaborator Number Metric
3.0.0 passed this metric
Contributing File Metric
3.0.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
Cookstyle Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 passed this metric
3.0.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
Cookstyle Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 passed this metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 failed this metric
3.0.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