Version information
This version is compatible with:
- Puppet Enterprise 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, 2019.8.x
- Puppet >= 6.21.0 < 8.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'athenahealth-vault', '3.0.1'Learn more about managing modules with a PuppetfileDocumentation
puppet-vault
Puppet module to install and run HashiCorp Vault.
Support
This module is currently only tested on:
- Ubuntu 18.04
- Ubuntu 20.04
- CentOS/RedHat 7
- CentOS/RedHat 8
Usage
include vault
By default, with no parameters the module will configure Vault with some sensible defaults to get you running. Please see Vault’s official config docs for further details of acceptable parameter values.
Parameters
Full documentation of the module’s parameters can be found in DOCS.md.
However, we highlight some important details below.
Installation parameters
When install_method is repo
When repo is set the module will attempt to install a package corresponding with the value of package_name.
package_name: Name of the package to install, default:vaultpackage_ensure: Desired state of the package, default:installedbin_dir: Set to the path where the package will install the Vault binary, this is necessary to correctly manage thedisable_mlockoption.manage_service_file: Will manage the service file in case it's not included in the package, default: falsemanage_file_capabilities: Will manage file capabilities of the vault binary. default:false
When install_method is archive
When archive the module will attempt to download and extract a zip file from the download_url, the extracted file will be placed in the bin_dir folder.
The module will not manage any required packages to un-archive, e.g. unzip. See puppet-archive setup documentation for more details.
download_url: Optional manual URL to download the vault zip distribution from. You can specify a local file on the server with a fully qualified pathname, or usehttp,https,ftpors3based URIs. default:undefdownload_url_base: This is the base URL for the hashicorp releases. If no manualdownload_urlis specified, the module will download from hashicorp. default:https://releases.hashicorp.com/vault/download_extension: The extension of the vault download when using hashicorp releases. default:zipdownload_dir: Path to download the zip file to, default:/tmpmanage_download_dir: Boolean, whether or not to create the download directory, default:falsedownload_filename: Filename to (temporarily) save the downloaded zip file, default:vault.zipversion: The Version of vault to download. default:1.4.2manage_service_file: Will manage the service file. default: truemanage_file_capabilities: Will manage file capabilities of the vault binary. default:true
Configuration parameters
By default, with no parameters the module will configure Vault with some sensible defaults to get you running. Please see Vault’s official config docs for further details of acceptable parameter values.
-
storage: A hash containing the Vault storage configuration. File and raft storage backends are supported. In the examples section you can find an example for raft. The file backend is the default:{ 'file' => { 'path' => '/var/lib/vault' } } -
listener: A hash or array of hashes containing the listener configuration(s), default:{ 'tcp' => { 'address' => '127.0.0.1:8200', 'tls_disable' => 1, } } -
ha_storage: An optional hash containing theha_storageconfiguration -
seal: An optional hash containing thesealconfiguration -
telemetry: An optional hash containing thetelemetryconfiguration -
disable_cache: A boolean to disable or enable the cache (default:undef) -
disable_mlock: A boolean to disable or enable mlock See below (default:undef) -
default_lease_ttl: A string containing the default lease TTL (default:undef) -
max_lease_ttl: A string containing the max lease TTL (default:undef) -
enable_ui: Enable the vault UI (requires vault 0.10.0+ or Enterprise) (default:undef) -
api_addr: Specifies the address (full URL) to advertise to other Vault servers in the cluster for client redirection. This value is also used for plugin backends. This can also be provided via the environment variable VAULT_API_ADDR. In general this should be set as a full URL that points to the value of the listener address (default:undef) -
extra_config: A hash containing extra configuration, intended for newly released configuration not yet supported by the module. This hash will get merged with other configuration attributes into the JSON config file.
Examples
class { 'vault':
storage => {
file => {
path => '/tmp',
},
},
listener => [
{
tcp => {
address => '127.0.0.1:8200',
tls_disable => 0,
}
},
{
tcp => {
address => '10.0.0.10:8200',
}
},
]
}
or alternatively, using Hiera:
vault::storage:
file:
path: /tmp
vault::listener:
- tcp:
address: 127.0.0.1:8200
tls_disable: 1
- tcp:
address: 10.0.0.10:8200
vault::default_lease_ttl: 720h
Configuring raft storage engine using Hiera:
vault::storage:
raft:
node_id: '%{facts.networking.hostname}'
path: /var/lib/vault
retry_join:
- leader_api_addr: https://vault1:8200
- leader_api_addr: https://vault2:8200
- leader_api_addr: https://vault3:8200
mlock
By default Vault will use the mlock system call, therefore the executable will need the corresponding capability.
In production, you should only consider setting the disable_mlock option on Linux systems that only use encrypted swap or do not use swap at all.
The module will use setcap on the vault binary to enable this.
If you do not wish to use mlock, set the disable_mlock attribute to true
class { 'vault':
disable_mlock => true,
}
Testing
If you’re using PDK, run every test with pdk validate
First, bundle install
To run RSpec unit tests: bundle exec rake spec
To run RSpec unit tests, puppet-lint, syntax checks and metadata lint: bundle exec rake test
To run Beaker acceptance tests: BEAKER_set=<nodeset name> bundle exec rake acceptance where <nodeset name> is one of the filenames in spec/acceptance/nodesets without the trailing .yml, e.g. ubuntu-20.04-x86_64-docker.
Related Projects
hiera-vault: A Hiera storage backend to retrieve secrets from HashiCorp's Vault
Reference
Table of Contents
Classes
vault: Install & configure a Vault server or Vault Agentvault::config: Set the Vault config via JSON file & optionally set up a system servicevault::install: Install Vault, either from a repository or archivevault::params: Parameters for thevaultclass. It sets variables according to platform.vault::service: Manage the Vault system service, enabled by default
Classes
vault
Install & configure a Vault server or Vault Agent
Examples
Basic usage
include vault
Specify a version
class { 'vault':
version => '1.11.1',
}
Parameters
The following parameters are available in the vault class:
usermanage_usergroupmanage_groupbin_dirconfig_dirconfig_modemanage_config_filepurge_config_dirdownload_urldownload_url_basedownload_extensionservice_nameservice_enableservice_ensureservice_providerservice_typeservice_optionsmanage_repomanage_servicemanage_service_filestoragemanage_storage_dirlistenerha_storagesealdisable_cachetelemetrydefault_lease_ttlmax_lease_ttldisable_mlockmanage_file_capabilitiesnum_procsinstall_methodpackage_namepackage_ensuredownload_dirmanage_download_dirdownload_filenameversionos_typearchenable_uiapi_addrextra_config
user
Data type: String
Customise the user vault runs as, will also create the user unless manage_user is false.
Default value: $vault::params::user
manage_user
Data type: Boolean
Whether or not the module should create the user.
Default value: $vault::params::manage_user
group
Data type: String
Customise the group vault runs as, will also create the user unless manage_group is false.
Default value: $vault::params::group
manage_group
Data type: Boolean
Whether or not the module should create the group.
Default value: $vault::params::manage_group
bin_dir
Data type: String
Directory the vault executable will be installed in.
Default value: $vault::params::bin_dir
config_dir
Data type: String
Directory the vault configuration will be kept in.
Default value: $vault::params::config_dir
config_mode
Data type: String
Mode of the configuration file (config.json). Defaults to '0750'
Default value: $vault::params::config_mode
manage_config_file
Data type: Boolean
Whether the config_file should be managed
Default value: $vault::params::manage_config_file
purge_config_dir
Data type: Boolean
Whether the config_dir should be purged before installing the
generated config.
Default value: true
download_url
Data type: Optional[String]
Manual URL to download the vault zip distribution from.
Default value: $vault::params::download_url
download_url_base
Data type: String
HashiCorp base URL to download vault zip distribution from.
Default value: $vault::params::download_url_base
download_extension
Data type: String
The extension of the vault download
Default value: $vault::params::download_extension
service_name
Data type: String
Customise the name of the system service
Default value: $vault::params::service_name
service_enable
Data type: Boolean
Set the enable value for service[$service_name]
Default value: $vault::params::service_enable
service_ensure
Data type: String
Set the ensure value for service[$service_name]
Default value: $vault::params::service_ensure
service_provider
Data type: String
Customise the name of the system service provider; this also controls the init configuration files that are installed.
Default value: $vault::params::service_provider
service_type
Data type: String
Choose between server or agent for which mode you want the
Vault binary to run as.
Default value: $vault::params::service_type
service_options
Data type: Optional[String]
Additional arguments or options, passed directly to the command run by the service
Default value: $vault::params::service_options
manage_repo
Data type: Boolean
Configure the upstream HashiCorp repository. Only relevant when $vault::install_method = 'repo'.
Default value: $vault::params::manage_repo
manage_service
Data type: Boolean
Instruct puppet to manage service or not
Default value: $vault::params::manage_service
manage_service_file
Data type: Optional[Boolean]
Whether to override the per-install-method management of the service file
Default value: $vault::params::manage_service_file
storage
Data type: Hash
Hash representation of the storage Vault config stanza
Default value: $vault::params::storage
manage_storage_dir
Data type: Boolean
Whether or not the directory for storing data is managed by this module If manage_storage_dir is true and a file or raft storage backend is configured, we create the directory configured in that backend.
Default value: $vault::params::manage_storage_dir
listener
Data type: Variant[Hash, Array[Hash]]
Hash representation of the listener Vault config stanza
Default value: $vault::params::listener
ha_storage
Data type: Optional[Hash]
Hash representation of the ha_storage Vault config stanza
Default value: $vault::params::ha_storage
seal
Data type: Optional[Hash]
Hash representation of the seal Vault config stanza
Default value: $vault::params::seal
disable_cache
Data type: Optional[Boolean]
Sets the disable_cache Vault config value
Default value: $vault::params::disable_cache
telemetry
Data type: Optional[Hash]
Hash representation of the telemetry Vault config
Default value: $vault::params::telemetry
default_lease_ttl
Data type: Optional[String]
Sets the default_lease_ttl Valut config value
Default value: $vault::params::default_lease_ttl
max_lease_ttl
Data type: Optional[String]
Sets the max_lease_ttl Valut config value
Default value: $vault::params::max_lease_ttl
disable_mlock
Data type: Optional[Boolean]
Sets the disable_mlock Valut config value
Default value: $vault::params::disable_mlock
manage_file_capabilities
Data type: Optional[Boolean]
Tightly coupled to $disable_mlock, see vault::install for details
Default value: $vault::params::manage_file_capabilities
num_procs
Data type: Integer
Sets the GOMAXPROCS environment variable, to determine how many CPUs Vault
can use. The official Vault Terraform install.sh script sets this to the
output of nprocs, with the comment, "Make sure to use all our CPUs,
because Vault can block a scheduler thread". Default: number of CPUs
on the system.
Default value: $vault::params::num_procs
install_method
Data type: Enum['archive', 'repo']
Can be one of archive or repo
repowill use a HashiCorp package repository to install Vaultarchivewill use a HashiCorp ZIP artifact to install Vault
Default value: $vault::params::install_method
package_name
Data type: String
The name of the package to install if using $install_method = 'repo'
Default value: $vault::params::package_name
package_ensure
Data type: String
Set the ensure parameter for a package install if using $install_method = 'repo'
Default value: $vault::params::package_ensure
download_dir
Data type: String
The directory to download to when using $install_method = 'archive'
Default value: $vault::params::download_dir
manage_download_dir
Data type: Boolean
Whether or not to create/manage the download directory when using $install_method = 'archive'
Default value: $vault::params::manage_download_dir
download_filename
Data type: String
The name of the downloaded file when using $install_method = 'archive'
Default value: $vault::params::download_filename
version
Data type: String
The version of Vault to install
Default value: $vault::params::version
os_type
Data type: String
Override the $facts['kernel'] supplied OS value (e.g., 'Linux')
Default value: $vault::params::os_type
arch
Data type: String
Override the $facts['os']['architecture'] supplied architecture value
Default value: $vault::params::arch
enable_ui
Data type: Optional[Boolean]
Whether or not to enable the Vault web UI
Default value: $vault::params::enable_ui
api_addr
Data type: Optional[String]
Specifies the address (full URL) to advertise to other Vault servers in the cluster for client redirection. This value is also used for plugin backends. This can also be provided via the environment variable VAULT_API_ADDR. In general this should be set as a full URL that points to the value of the listener address
Default value: undef
extra_config
Data type: Hash
Hash representation of any additional Vault configuration not already represented
Default value: {}
vault::config
Set the Vault config via JSON file & optionally set up a system service
vault::install
Install Vault, either from a repository or archive
vault::params
Parameters for the vault class.
It sets variables according to platform.
vault::service
Manage the Vault system service, enabled by default
CHANGELOG
2022-11-03 v3.0.1
- Add AlmaLinux 8 as a supported OS (h/t @abotelho-cbn)
- Avoid collision with built-in variable (#6 h/t @abotelho-cbn)
2022-10-20 v3.0.0
- Fork module to new maintainer, athenahealth
- Update to PDK v2.5.0 standards
- Apply rubocop & puppet-lint autofixes
- Add class parameter typecasting
- Add Puppet Strings documentation
- Update dependencies for Puppet 7 compatibility:
- Switch to
puppet/systemd - Allow
puppet/systemdup to v3.x - Allow
puppetlabs/stdlibup to v8.x - Allow
puppet/archiveup to v6.x - Allow
puppet/hashi_stackup to v2.x - Allow
stm/file_capabilityup to v5.x
- Switch to
- Update supported Linux distributions & versions
- Automate testing of module using PDK + GitHub Actions
- Fix
$manage_file_capabilitieswhen$package_name != 'vault' - Restart
Service[vault]on changes toFile[${vault::config_dir}/config.json] - Add upgrading of “archive” style installation
2020-05-27 v2.3.0
- Add
manage_config_fileoption - Update stm/file_capability dependency
- Update to vault 1.4.2
2020-02-01 v2.2.0
- Add support for
api_addrstanza - Update to vault 1.3.2
2019-08-19 v2.1.0
- Add support for
sealstanza - Remove duplicate TimeoutStopSec in systemd unit file
- Update to vault 1.2.2
2019-06-01 v2.0.1
- Allow puppetlabs/stdlib 6.x
- Allow stm/file_capability 2.x
- Allow puppet/archive 4.x
2019-03-17 v2.0.0
- Drop Puppet 3 support
- Add Puppet 6 support
- Allow specifying
$listeneras an array of listener hashes - Add
config_modeparameter - Update systemd unit file
- Support Ubuntu 18.04
- Support enabling Web UI
- Update to vault 1.0.3
- Use stm/file_capability to manage file capabilities
- Use camptocamp/systemd to manage systemd unit file
2017-10-16 v1.2.8
- Update to vault 0.8.3
2017-08-18 v1.2.7
- Update to vault 0.8.1
2017-08-10 v1.2.6
- Update to vault 0.8.0
2017-07-15 v1.2.5
- Added
manage_service_fileoption
2017-07-10 v1.2.4
- Fix and update beaker tests
- Update to vault 0.7.3
2017-05-09 v1.2.3
- Update to vault 0.7.2
2017-05-08 v1.2.2
- Update to vault 0.7.1
2017-04-22 v1.2.1
- Update to rspec 3.5
- Ruby 2.4 Fixnum deprecation
- Correctly set config dir owner and group as vault user
2017-03-27 v1.2.0
- Support Debian 7 and 8
- Update to vault 0.7.0
2017-03-13 v1.1.9
- Make download URL configuration more fine-grained
- Support upgrading when
versionchanges and installing viaarchivemethod
2017-02-13 v1.1.8
- Test with Puppet 4.9 by default
- Test with bleeding edge Puppet 4
- Allow legacy Puppet 3 builds to fail in CI
- Add
manage_serviceoption
2017-02-09 v1.1.7
- Update to vault 0.6.5
2017-01-21 v1.1.6
- Fix regression in vault_sorted_json
2017-01-10 v1.1.5
- Update to vault 0.6.4
2016-12-07 v1.1.4
- Update to vault 0.6.3
2016-11-04 v1.1.3
- Fix
cap_ipc_lockfor Debian/Ubuntu - Bump Puppet and Ruby versions used in CI
2016-11-03 v1.1.2
- Better code to ensure
cap_ipc_lockis set
2016-10-10 v1.1.1
- Documentation fixes
2016-10-07 v1.1.0
- Update to vault 0.6.2
- Add
manage_backend_diroption
2016-09-29 v1.0.0
- Replaced
config_hashparameter for more fine grained controls - Replaced nanliu/staging for puppet/archive
- Allow for package-based install method
- Generate pretty JSON configs
2016-08-27 v0.4.0
- Update to vault 0.6.1
- Add Amazon OS support
2016-07-19 v0.3.0
- Ensure config.json has correct user/group
2016-06-01 v0.2.3
- Configure log file for upstart
- Update to vault 0.6.0
- Deploy to PuppetForge via TravisCI
2016-06-01 v0.2.2
- Update to vault 0.5.3
2016-03-17 v0.2.1
- Update to vault 0.5.2
2016-03-17 v0.2.0
- Add RedHat7/CentOS7 support (including
systemdsupport) - Add
num_procsoption to controlGOMAXPROCSin init scripts - RedHat6 SysV init script improvements
- Improved beaker acceptance tests
2016-03-15 v0.1.9
- Update to vault 0.5.1
- Add
manage_userandmanage_groupparams
2016-02-11 v0.1.8
- Update to vault 0.5.0
2016-01-14 v0.1.7
- Update to vault 0.4.1
2016-01-05 v0.1.6
- Update to vault 0.4.0
2016-01-05 v0.1.5
- Add CentOS 6 support
2015-10-14 v0.1.4
- Fixes syntax error in bad release v0.1.3
2015-10-14 v0.1.3
- Use new Fastly CDN for default
download_urlparameter
2015-10-14 v0.1.2
- Support specifying
service_provider
2015-10-06 v0.1.1
- Fixed issue #1, containment bug
2015-07-28 v0.1.0
- Initial relase
- Add support exclusively for Ubuntu 14.04
Dependencies
- puppetlabs/stdlib (>= 4.24.0 < 9.0.0)
- puppet/archive (>= 2.0.0 < 7.0.0)
- puppet/hashi_stack (>= 1.0.0 < 3.0.0)
- puppet/systemd (>= 1.1.1 < 4.0.0)
- stm/file_capability (>= 1.0.1 < 6.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.