unattended_upgrades
Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- ,
Start using this module
Add this module to your Puppetfile:
mod 'puppet-unattended_upgrades', '8.1.0'
Learn more about managing modules with a PuppetfileDocumentation
Unattended Upgrades module for Puppet
Table of Contents
Overview
The unattended_upgrades module allows for the installation and configuration of automatic security (and other) updates through apt.
This functionality used to be part of the puppetlabs-apt module but was split off into its own module.
Module Description
The unattended_upgrades module automates the configuration of apt package updates.
Setup
What unattended_upgrades affects
- Package/configuration for unattended_upgrades
Beginning with unattended_upgrades
All you need to do is include the apt module, include apt
, and this module,
include unattended_upgrades
for it to work.
This module relies on the apt module and will not work without it.
Usage
Using unattended_upgrades simply consists of including the module and if needed altering some of the default settings.
Reference
Classes
unattended_upgrades
: Main class, installs the necessary packages and writes the configuration.
Parameters
unattended_upgrades
-
age
({}
): A hash of settings with two possible keys:min
(2
): Minimum age of a cache package file. File younger thanmin
will not be deleted.max
(0
): Maximum allowed age of a cache package file. File older thanmax
will be deleted.
Any of these keys can be specified and will be merged into the defaults:
class { 'unattended_upgrades': age => { 'max' => 10 }, }
-
auto
({}
): A hash of settings with these possible keys:clean
(0
): Remove packages that can no longer be downloaded from cache every X days (0
= disabled). Also supports 'always' as value to execute this operation every time the script is executed.fix_interrupted_dpkg
(true
): Try to fix package installation state.reboot
(false
): Reboot system after package update installation.reboot_withusers
(true
): If automatic reboot is enabled and needed, reboot even if there are users currently logged in.reboot_time
(now
): If automatic reboot is enabled and needed, reboot at the specific time (instead of immediately). Expects a string in the format "HH:MM", using the 24 hour clock with leading zeros. Examples: "16:37" for 37 minutes past 4PM, or "02:03" for 3 minutes past 2AM.remove
(true
): Remove unneeded dependencies after update installation.
Any of these keys can be specified and will be merged into the defaults:
class { 'unattended_upgrades': auto => { 'reboot' => true }, }
-
backup
({}
): A hash with two possible keys:archive_interval
(0
): Backup after n-days if archive contents changed.level
(3
): Backup level.
Any of these keys can be specified and will be merged into the defaults:
class { 'unattended_upgrades': backup => { 'level' => 5 }, }
-
blacklist
([]
): A list of packages to not automatically upgrade. -
dl_limit
(undef
): Use a bandwidth limit for downloading, specified in kb/sec. -
enable
(1
): Enable the automatic installation of updates. -
install_on_shutdown
(false
): Install updates on shutdown instead of in the background. -
mail
: A hash to configure email behaviour with the following possible keys:report
(undef
): Possible values are "always", "only-on-error" or "on-change". Defaults to "on-change". Note that "never" is achieved by not setting anyto
address.only_on_error
(true
): Only send mail when something went wrong. Deprecated in unattended-upgrades 1.13 and newer in favor ofreport
.to
(undef
): Email address to send email too
If the default for
to
is kept you will not receive any mail at all. You'll likely want to set this parameter.Any of these keys can be specified and will be merged into the defaults:
class { 'unattended_upgrades': mail => { 'to' => 'admin@domain.tld', }, }
-
minimal_steps
(true
): Split the upgrade process into sections to allow shutdown during upgrade. -
origins
: The repositories from which to automatically upgrade included packages.The default origins can be replaced with contents of an array:
class { 'unattended_upgrades': origins => [ 'origin=${distro_id},suite=${distro_codename}', 'origin=${distro_id},suite=${distro_codename}-security', 'origin=${distro_id},suite=${distro_codename}-backports', 'origin=${distro_id},suite=${distro_codename}-updates', ], }
-
extra_origins
: Additional repositories from which upgrades should be included. Can be used, if the defaultorigins
should be kept. -
package_ensure
(installed
): The ensure state for the 'unattended-upgrades' package. -
random_sleep
(undef
): Maximum amount of time (in seconds) that the apt cron job can sleep before the execution. The exact amount of time will be random but up to the value specified. The purpose is to avoid that servers/mirrors get hammered at exactly the same time when a lot of machines are switched on, e.g. 9:00 in the morning. Note: If this is left unset, the default value in the apt cron job applies, which is 1800 seconds. -
size
(0
): Maximum size of the cache in MB. -
update
(1
): Do "apt-get update" automatically every n-days. Also supports 'always' as value to execute this operation every time the script is executed. -
upgrade
(1
): Run the "unattended-upgrade" security upgrade script every n-days. Also supports 'always' as value to execute this operation every time the script is executed. -
days
([]
): Set the days of the week that updates should be applied. The days can be specified as localized abbreviated or full names. Or as integers where "0" is Sunday, "1" is Monday etc. -
upgradeable_packages
({}
): A hash with two possible keys:download_only
(0
): Do "apt-get upgrade --download-only" every n-days. Also supports 'always' as value to execute this operation every time the script is executed.debdelta
(1
): Use debdelta-upgrade to download updates if available.
Any of these keys can be specified and will be merged into the defaults:
class { 'unattended_upgrades': upgradeable_packages => { 'debdelta' => 1, }, }
-
verbose
(0
): Send report mail to root. -
remove_new_unused_deps
(undef
): Automatic removal of newly unused dependencies after the upgrade. -
remove_unused_kernel
(undef
): Remove unused automatically installed kernel-related packages. -
syslog_enable
(undef
): Enable logging to syslog. Default is False. -
syslog_facility
(undef
): Specify syslog facility. Default isdaemon
. -
only_on_ac_power
(undef
): Download and install upgrades only on AC power. Default istrue
. -
allow_downgrade
(undef
): Allow package downgrade if Pin-Priority exceeds 1000. Default isfalse
.
Limitations
This module should work across all versions of Debian, Ubuntu, and Linux Mint.
License
The original code for this module comes from Evolving Web and was licensed under the MIT license. Code added since the fork of that module into puppetlabs-apt is covered under the Apache License version 2 as is any code added since it was split off into this separate unattended_upgrades module.
The LICENSE contains both licenses.
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v8.1.0 (2023-10-30)
Implemented enhancements:
v8.0.0 (2023-06-23)
Breaking changes:
- Drop Puppet 6 support #226 (bastelfreak)
Implemented enhancements:
- Add ubuntu 22.04 support #232 (bastelfreak)
- puppetlabs/stdlib: Allow 9.x #231 (bastelfreak)
- Add puppet 8 support #230 (bastelfreak)
- Add allow_downgrade option to unattended-upgrades.erb #219 (wiemk)
Fixed bugs:
- Fix default LinuxMint origins so they pass validation #218 (djmofcourse)
Closed issues:
- document the origin configurations in README #105
Merged pull requests:
- README.md: add example for
origins
parameter #224 (clambertus) - Fix broken Apache-2 license #223 (bastelfreak)
v7.1.0 (2022-08-28)
Implemented enhancements:
- Add reboot_withusers option to unattended-upgrades.erb #214 (jps-help)
- Support the option Unattended-Upgrade::Package-Whitelist-Strict #213 (makmarius)
Fixed bugs:
Merged pull requests:
- puppetlabs/apt: Allow 9.x #215 (bastelfreak)
v7.0.0 (2022-06-16)
Breaking changes:
- Replace legacy Allowed-Origins with Origins-Pattern on all distros #204 (towo)
- retire options support #190 (anarcat)
Implemented enhancements:
- Cleanup legacy fact usage #210 (bastelfreak)
- Add only_on_ac_power option to unattended-upgrades.erb #208 (jps-help)
Fixed bugs:
- Add missing 'always' value support to periodic parameters (every n-days) #206 (Hufschmidt)
- params: debian default: re-add main origin #201 (kenyon)
Closed issues:
- [Ubuntu 20.04.3] Traceback when running unattended-upgrades --debug --dry-run #202
Merged pull requests:
v6.0.0 (2021-09-29)
Breaking changes:
- Drop support for Ubuntu 19.10 (EOL) #198 (smortex)
- Drop support of Puppet 5 (EOL) #196 (smortex)
- Drop support for Debian 8, 9 and Ubuntu 16.04 (EOL) #195 (smortex)
Implemented enhancements:
- Add support for Puppet 7 #197 (smortex)
- Add support for Debian 11 #193 (sboyd-m)
- add support for Package-Whitelist #188 (moritz-makandra)
- add SyslogEnable and SyslogFacility options to unattended-upgrades.erb #182 (kenyon)
- add the Unattended-Upgrade::MailReport setting to unattended-upgrades.erb #181 (kenyon)
- Support Ubuntu Extended Security Maintenance (ESM) #180 (raoulbhatia)
Fixed bugs:
Closed issues:
- Debian 11 changes name of security suite #187
Merged pull requests:
- Add a basic acceptance test #194 (smortex)
- Allow stdlib 8.0.0 #192 (smortex)
- Update dependencies #189 (saz)
- README: fix wording about the mail hash #183 (kenyon)
v5.1.0 (2020-08-23)
Implemented enhancements:
- Add support for Debian 10 #150
- Support Remove-New-Unused-Dependencies #106
- Add new options remove_new_unused_deps and remove_unused_kernel #177 (gfa)
Closed issues:
- No version of 'puppet-unattended_upgrades' can satisfy all dependencies #167
Merged pull requests:
- unattended-upgrades.erb: update signal comment #178 (kenyon)
- Revert "Add Puppet management headers in the config files" #173 (smortex)
- Add Debian 10 support #172 (ekohl)
v5.0.0 (2020-05-22)
Breaking changes:
- Drop EOL Linux Mint versions 13 and 17 #168 (ekohl)
- Drop Ubuntu 14.04 #164 (ekohl)
- Update Ubuntu releases per official support/EOL list #160 (raoulbhatia)
- drop Ubuntu 14.04 support #149 (bastelfreak)
Implemented enhancements:
Fixed bugs:
- incorrect Debian OS origin string #145
Closed issues:
- new release #158
- Typo in Readme #155
- License in metadata.json doesn't match the dual licensing documented in the README. #93
Merged pull requests:
- Unify specs for all supported operating systems #170 (ekohl)
- Correct tests for catalog compilation failure #169 (ekohl)
- Remove the $xfacts variable #165 (ekohl)
- Drop file mode checking #163 (mmoll)
- Add Puppet management headers in the config files #162 (arthurbarton)
- Spec: Follow puppetlabs-apt "MODULES-10548: make files readonly" #161 (raoulbhatia)
- Fixed README typo.
archive_internal
toarchive_interval
#156 (jhawz) - Allow puppetlabs/stdlib 6.x #154 (dhoppe)
- Remove duplicate CONTRIBUTING.md file #152 (dhoppe)
- Update README.md #151 (thepro101)
- * fix: debian origins since archive name changes, moved to codename … #148 (deubert-it)
- Allow puppetlabs/apt 7.x #147 (scoopex)
- Additional sanitization of params #143 (fetzerms)
v4.0.0 (2019-04-15)
Breaking changes:
- modulesync 2.7.0 and drop puppet 4 #140 (bastelfreak)
Implemented enhancements:
- Add support for Unattended-Upgrade::Update-Days #139 (ostavnaas)
- Support support for the KDE Neon distribution #138 (smortex)
Closed issues:
- Support puppetlabs-apt > 5 #133
v3.2.1 (2018-10-14)
Merged pull requests:
- modulesync 2.2.0 and allow puppet 6.x #134 (bastelfreak)
- Allow puppetlabs-apt 5 & 6 #132 (JayH5)
- allow puppetlabs/stdlib 5.x #130 (bastelfreak)
- Update README.md #129 (TheLimey)
v3.2.0 (2018-06-12)
Implemented enhancements:
- Allow configuration of Unattended-Upgrade::Sender parameter #119
- Optional argument for specifing the Unattended-Upgrade::Sender config flag #120 (LarsErikP)
Closed issues:
Merged pull requests:
- Add Ubuntu 18.04 LTS "bionic" to the list of supported OSes (fixes #124) #125 (mpdude)
- Remove docker nodesets #123 (bastelfreak)
- drop EOL OSs; fix puppet version range #121 (bastelfreak)
- Fix typo #117 (6uhrmittag)
v3.1.0 (2017-12-09)
Closed issues:
- Duplicate declaration due to contain ::apt #110
Merged pull requests:
- release 3.1.0 #116 (bastelfreak)
- Add Ubuntu artful #115 (danielhoherd)
v3.0.1 (2017-10-28)
Closed issues:
- Allowed-Origins contains ${distro_id}:${distro_codename} #107
Merged pull requests:
- Don't
contain
apt
butinclude
instead #111 (alexjfisher)
v3.0.0 (2017-07-07)
Breaking changes:
Implemented enhancements:
- Add Debian 9 - Stretch Support #102 (petems)
- Ubuntu: Add 17.04 Zesty Zapus. #89 (raoulbhatia)
Fixed bugs:
Closed issues:
- Not setting up a daily cron #87
Merged pull requests:
- Update Debian upstream names #101 (petems)
- Refactor specs #100 (petems)
- Add tags to metadata.json #98 (petems)
- Allow newer apt modules to satisfy dependency #91 (cpick)
- cleanup README - typos, remove splunk and fix ToC #83 (pono)
- Modulesync 0.18.0 #82 (bastelfreak)
v2.2.0 (2017-01-12)
Merged pull requests:
- Bump min version_requirement for Puppet #79 (juniorsysadmin)
- Include the release pocket on Ubuntu Xenial and Yakkety. #75 (MichaelGooden)
- Add missing badges #73 (dhoppe)
- Fix order of options to prevent swapping of lines #72 (leonkoens)
v2.1.0 (2016-10-05)
Implemented enhancements:
- [WIP] Ubuntu updates #62 (raoulbhatia)
Closed issues:
- Puppet 4 compatibility? #63
- Version on Puppet Forge seems to be missing reboot_time parameter in template #59
Merged pull requests:
- Remove 'pe' requirement from metadata #66 (alexjfisher)
- Modulesync 0.9.1 #65 (bastelfreak)
- Make parameter validation more strict #64 (pkkm)
- LinuxMint: Add support for Linux Mint #61 (raoulbhatia)
v2.0.0 (2016-05-26)
Implemented enhancements:
- Dependency cycle error if sources are managed exclusively by puppet #28
Closed issues:
- Documentation: random_sleep #54
- wrong documentation: legacy_origin #50
- unattended_upgrades module not loading - breaks on Apt::Update dependency #48
Merged pull requests:
- update default parameters for legacy_origin option #58 (GhostLyrics)
- Update from voxpupuli modulesync_config #57 (jyaworski)
- Add parameter to control reboot time #56 (mpdude)
- Small fix for random_sleep documentation. The value is set to undef i… #55 (spoofedpacket)
- add options support #52 (b4ldr)
- Default
notify_update
to false #51 (daenney)
v1.1.1 (2016-01-11)
Merged pull requests:
v1.1.0 (2016-01-09)
Fixed bugs:
- content variable seems like it's required for the init file #18
Closed issues:
- New release? #38
- cannot set "install_on_shutdown" and "remove" #36
- No way to define different keys for "auto" in different hiera sources #35
- Clarify random_sleep documentation #34
- clean key of auto hash not documented #24
- Not working on Ubuntu #22
- potential dependency cycle for users #16
- Unattended-Upgrade::Allowed-Origins variables don't work #15
- unattended_upgrades doesn't work with puppet \< 3.5.0 (I think...) #13
Merged pull requests:
- Doc and implementation fixes #44 (daenney)
- Remediate rubocop offenses #43 (rnelson0)
- cleanup(params) make linter happy #42 (igalic)
- feat(msync) move secure line into .sync.yml #40 (igalic)
- Rename reference to puppet-community #39 (rnelson0)
- Include variable 'RandomSleep'. #33 (fbarbeira)
- Add optional notify_update parameter #31 (clauded)
- Small fix typo #27 (fbarbeira)
- Enhancements by merging Debian defaults, puppetlabs-apt and own research #26 (raoulbhatia)
- Document auto -> clean #25 (zeha)
- Support for Raspbian #19 (lbdr)
- Check for strict_variables setting before using defined(), fixes compatibility with Puppet \< 3.5.0 #17 (apeeters)
- unattended-upgrades are broken on Ubuntu by default due to origins typo #14 (cpick)
1.0.3 (2015-04-23)
Closed issues:
- Duplicate declaration of Class[Apt] #12
Merged pull requests:
1.0.2 (2015-04-22)
1.0.1 (2015-04-22)
1.0.0 (2015-04-22)
Closed issues:
- Add a contributing.md #6
Merged pull requests:
- Prepare 1.0.1 release: #10 (daenney)
- Setup deploy #9 (daenney)
- Rake travis changelog #8 (daenney)
- Add metadata.json #7 (underscorgan)
- travis: Test only latest Ruby and Puppet. #5 (daenney)
- Test updates #4 (underscorgan)
- Test fixes #1 (underscorgan)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 10.0.0)
- puppetlabs/apt (>= 2.2.0 < 10.0.0)
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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.