cookbook 'apparmor', '= 3.0.0'
apparmor
(27) Versions
3.0.0
-
Follow13
Disables apparmor service on Ubuntu
cookbook 'apparmor', '= 3.0.0', :supermarket
knife supermarket install apparmor
knife supermarket download apparmor
apparmor Cookbook
Default recipe installs and manages AppArmor service, or disables and removes AppArmor depending on default['apparmor']['disable']
attribute. Also includes a custom resource (LWRP) for managing AppArmor policies.
Requirements
Platforms
- Ubuntu
- Debian
Chef
- Chef 12.5+
Cookbooks
- none
Attributes
-
default['apparmor']['disable']
: Controls installing or removing apparmor service in thedefault.rb
recipe. Defaults to false which installs apparmor, starts the service, and enables the service.
Recipes
default.rb
This recipe either installs or removes the apparmor package and starts / enables the service depending on the state of default['apparmor']['disable']
.
Custom Resources
Policy
Adds or removes Apparmor policies
Actions
- :add: Adds a new Apparmor policy using a provided policy file
- :remove: Removes a specified Apparmor policy
Properties
- :name: Name attribute. The name of the policy as stored in /etc/apparmor.d/.
- :source_cookbook: Cookbook to source the policy file from if the provider is not in the same cookbook.
- :source_filename: Name of the source file in the cookbook if it doesn't match the name attribute.
Examples
Add the policy my_super_app where a cookbook file exists in the same cookbook and is named my_super_app
apparmor_policy 'my_super_app'
Add the policy my_super_app where a cookbook file exists in a different cookbook and the file is named my_super_app_am_policy
apparmor_policy 'my_super_app' do source_cookbook 'acme_apparmor_profiles' source_filename 'my_super_app_am_policy' end
Remove the policy my_super_app
apparmor_policy 'my_super_app' do action :remove end
License & Authors
Author: Cookbook Engineering Team (cookbooks@chef.io)
Copyright: 2009-2016, Chef Software, Inc.
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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
apparmor Cookbook CHANGELOG
This file is used to list changes made in each version of the apparmor cookbook.
3.0.0 (2017-02-14)
- Require Chef 12.5 and remove compat_resource
- Added integration testing in Travis CI
2.0.3 (2016-12-22)
- Remove Gemfile.lock file
- Depend on the latest compat_resource
- Add ChefSpec matchers
- Cookstyle and copyright header updates
2.0.2 (2016-09-15)
- Disable FC016
- Format markdown and clarify that we require Chef 12.1
- Add chef_version metadata and remove chef 11 compat code
- Depend on compat_resource 12.14+
v2.0.1 (2015-11-10)
- Fix usage of variables in the custom resource
v2.0.0 (2015-10-22)
- Converted the LWRP to a 12.5 custom resource with 12.X compatibility provided by compat_resource. This cookbook now requires Chef 12
- Updated Travis to use kitchen-docker for full integration tests and chefdk for lint/unit testing
- Added the Chef standard rubocop config
- Updated development dependencies in the Gemfile
- Fixed the integration test policy to sucessfully parse
v1.0.0 (2015-09-23)
WARNING: This is a breaking release that includes a refactor of the default behavior and the inclusion of a LWRP
- Default behavior is now to install and enable AppArmor instead of disable / remove
- Added new LWRP for managing AppArmor policies. See the Readme for usage.
- Added bats tests in Test Kitchen
v0.9.4 (2015-09-11)
- Updated Kitchen CI config for the latest format and platforms
- Updated Travis testing to include modern ruby releases
- Added basic cookbook convergence Chefspec
- Updated Berksfile to 3.0 format and remove apt/yum dependencies
- Updated Opscode -> Chef Software Inc.
- Updated Contributing and Testing documentation
- Updated development dependencies in the Gemfile
- Added a maintainers file and a Rake task for generating the md file from a toml file
- Migrated from opscode-cookbooks to chef-cookbooks
- Add cookbook release badge to the readme
- Set the minimum supported Chef release to 11
- Add a Rakefile for simplified testing
- Moved attributes/apparmor.rb to attributes/default.rb
- Added a chefignore file
- Added long_description, source_url and issues_url metadata
v0.9.2
Bug
- COOK-378 - Fix an issue where apparmor cannot be stopped by the service on Ubuntu 9.10+
v0.9.0
- First public release
Collaborator Number Metric
3.0.0 passed this metric
Contributing File Metric
3.0.0 passed this metric
Foodcritic Metric
3.0.0 passed this metric
License Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 passed this metric
Version Tag Metric
3.0.0 passed this metric
3.0.0 passed this metric
3.0.0 passed this metric
Foodcritic Metric
3.0.0 passed this metric
License Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 passed this metric
Version Tag Metric
3.0.0 passed this metric
3.0.0 passed this metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 passed this metric
Version Tag Metric
3.0.0 passed this metric
3.0.0 passed this metric
3.0.0 passed this metric
Version Tag Metric
3.0.0 passed this metric
3.0.0 passed this metric