From 326c514e1beaa96d7d8ef389488d2ab10c925968 Mon Sep 17 00:00:00 2001 From: Himani Anil Deshpande Date: Thu, 23 Jan 2025 15:40:41 -0500 Subject: [PATCH 1/3] [Dependency] Removing pyenv 3rd party cookbook --- Berksfile | 1 - .../aws-parallelcluster-awsbatch/Berksfile | 1 - .../aws-parallelcluster-awsbatch/metadata.rb | 1 - .../Berksfile | 1 - .../aws-parallelcluster-entrypoints/Berksfile | 1 - .../aws-parallelcluster-environment/Berksfile | 1 - .../aws-parallelcluster-platform/Berksfile | 1 - .../aws-parallelcluster-shared/Berksfile | 1 - .../aws-parallelcluster-shared/metadata.rb | 1 - cookbooks/aws-parallelcluster-slurm/Berksfile | 1 - .../aws-parallelcluster-slurm/metadata.rb | 1 - cookbooks/third-party/pyenv-4.2.3/Berksfile | 7 - .../third-party/pyenv-4.2.3/CHANGELOG.md | 153 ------------- .../pyenv-4.2.3/CODE_OF_CONDUCT.md | 3 - .../third-party/pyenv-4.2.3/CONTRIBUTING.md | 4 - cookbooks/third-party/pyenv-4.2.3/Dangerfile | 47 ---- cookbooks/third-party/pyenv-4.2.3/LICENSE | 202 ------------------ cookbooks/third-party/pyenv-4.2.3/README.md | 73 ------- cookbooks/third-party/pyenv-4.2.3/TESTING.md | 3 - cookbooks/third-party/pyenv-4.2.3/chefignore | 115 ---------- .../pyenv-4.2.3/documentation/.gitkeep | 0 .../pyenv-4.2.3/documentation/pyenv_global.md | 15 -- .../documentation/pyenv_install.md | 29 --- .../pyenv-4.2.3/documentation/pyenv_pip.md | 32 --- .../pyenv-4.2.3/documentation/pyenv_plugin.md | 16 -- .../pyenv-4.2.3/documentation/pyenv_python.md | 25 --- .../pyenv-4.2.3/documentation/pyenv_rehash.md | 19 -- .../pyenv-4.2.3/documentation/pyenv_script.md | 27 --- .../pyenv-4.2.3/kitchen.dokken.yml | 113 ---------- .../third-party/pyenv-4.2.3/kitchen.exec.yml | 7 - .../pyenv-4.2.3/kitchen.global.yml | 38 ---- cookbooks/third-party/pyenv-4.2.3/kitchen.yml | 36 ---- .../pyenv-4.2.3/libraries/helpers.rb | 68 ------ cookbooks/third-party/pyenv-4.2.3/metadata.rb | 25 --- .../third-party/pyenv-4.2.3/renovate.json | 17 -- .../pyenv-4.2.3/resources/global.rb | 36 ---- .../pyenv-4.2.3/resources/install.rb | 108 ---------- .../pyenv-4.2.3/resources/local.rb | 35 --- .../third-party/pyenv-4.2.3/resources/pip.rb | 154 ------------- .../pyenv-4.2.3/resources/plugin.rb | 34 --- .../pyenv-4.2.3/resources/python.rb | 62 ------ .../pyenv-4.2.3/resources/rehash.rb | 16 -- .../pyenv-4.2.3/resources/script.rb | 58 ----- .../pyenv-4.2.3/spec/spec_helper.rb | 2 - .../pyenv-4.2.3/templates/pyenv.sh | 17 -- .../cookbooks/test/files/requirements.txt | 3 - .../test/fixtures/cookbooks/test/metadata.rb | 4 - .../fixtures/cookbooks/test/recipes/dokken.rb | 11 - .../cookbooks/test/recipes/system_install.rb | 28 --- .../cookbooks/test/recipes/user_install.rb | 54 ----- .../integration/common/controls/common.rb | 19 -- .../system_install/controls/system_install.rb | 63 ------ .../integration/system_install/inspec.yml | 11 - .../user_install/controls/user_install.rb | 98 --------- .../test/integration/user_install/inspec.yml | 11 - .../virtualenv/controls/virtualenv.rb | 45 ---- .../test/integration/virtualenv/inspec.yml | 8 - metadata.rb | 1 - 58 files changed, 1963 deletions(-) delete mode 100644 cookbooks/third-party/pyenv-4.2.3/Berksfile delete mode 100644 cookbooks/third-party/pyenv-4.2.3/CHANGELOG.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/CODE_OF_CONDUCT.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/CONTRIBUTING.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/Dangerfile delete mode 100644 cookbooks/third-party/pyenv-4.2.3/LICENSE delete mode 100644 cookbooks/third-party/pyenv-4.2.3/README.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/TESTING.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/chefignore delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/.gitkeep delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_global.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_install.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_pip.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_plugin.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_python.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_rehash.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_script.md delete mode 100644 cookbooks/third-party/pyenv-4.2.3/kitchen.dokken.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/kitchen.exec.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/kitchen.global.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/kitchen.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/libraries/helpers.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/metadata.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/renovate.json delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/global.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/install.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/local.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/pip.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/plugin.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/python.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/rehash.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/resources/script.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/spec/spec_helper.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/templates/pyenv.sh delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/files/requirements.txt delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/metadata.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/dokken.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/system_install.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/user_install.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/common/controls/common.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/controls/system_install.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/inspec.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/controls/user_install.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/inspec.yml delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/controls/virtualenv.rb delete mode 100644 cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/inspec.yml diff --git a/Berksfile b/Berksfile index 7ea78d3177..a373f91b21 100644 --- a/Berksfile +++ b/Berksfile @@ -12,7 +12,6 @@ cookbook "iptables", path: "./cookbooks/third-party/iptables-8.0.0" cookbook "line", path: "./cookbooks/third-party/line-4.5.13" cookbook "nfs", path: "./cookbooks/third-party/nfs-5.1.2" cookbook "openssh", path: "./cookbooks/third-party/openssh-2.11.12" -cookbook "pyenv", path: "./cookbooks/third-party/pyenv-4.2.3" cookbook "yum", path: "./cookbooks/third-party/yum-7.4.13" cookbook "yum-epel", path: "./cookbooks/third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-awsbatch/Berksfile b/cookbooks/aws-parallelcluster-awsbatch/Berksfile index 2e957a1e1f..79370fbe7b 100644 --- a/cookbooks/aws-parallelcluster-awsbatch/Berksfile +++ b/cookbooks/aws-parallelcluster-awsbatch/Berksfile @@ -17,6 +17,5 @@ cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" cookbook "openssh", path: "../third-party/openssh-2.11.12" -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-awsbatch/metadata.rb b/cookbooks/aws-parallelcluster-awsbatch/metadata.rb index 36b83b51d8..807ad77a63 100644 --- a/cookbooks/aws-parallelcluster-awsbatch/metadata.rb +++ b/cookbooks/aws-parallelcluster-awsbatch/metadata.rb @@ -14,7 +14,6 @@ depends 'nfs', '~> 5.1.2' depends 'line', '~> 4.5.13' depends 'openssh', '~> 2.11.12' -depends 'pyenv', '~> 4.2.3' depends 'yum', '~> 7.4.13' depends 'yum-epel', '~> 5.0.2' depends 'aws-parallelcluster-shared', '~> 3.13.0' diff --git a/cookbooks/aws-parallelcluster-computefleet/Berksfile b/cookbooks/aws-parallelcluster-computefleet/Berksfile index 647a2463cd..11c12d8b40 100644 --- a/cookbooks/aws-parallelcluster-computefleet/Berksfile +++ b/cookbooks/aws-parallelcluster-computefleet/Berksfile @@ -5,6 +5,5 @@ metadata cookbook "aws-parallelcluster-shared", path: "../aws-parallelcluster-shared" # for shared cookbook -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-entrypoints/Berksfile b/cookbooks/aws-parallelcluster-entrypoints/Berksfile index 5de9af804c..0bb4edf7b3 100644 --- a/cookbooks/aws-parallelcluster-entrypoints/Berksfile +++ b/cookbooks/aws-parallelcluster-entrypoints/Berksfile @@ -14,7 +14,6 @@ cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" cookbook "openssh", path: "../third-party/openssh-2.11.12" -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-environment/Berksfile b/cookbooks/aws-parallelcluster-environment/Berksfile index c8ec9c4e94..ef8705fa32 100644 --- a/cookbooks/aws-parallelcluster-environment/Berksfile +++ b/cookbooks/aws-parallelcluster-environment/Berksfile @@ -10,6 +10,5 @@ cookbook "nfs", path: "../third-party/nfs-5.1.2" cookbook "line", path: "../third-party/line-4.5.13" # for shared cookbook -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-platform/Berksfile b/cookbooks/aws-parallelcluster-platform/Berksfile index 3ff0d6b3d9..006d2af801 100644 --- a/cookbooks/aws-parallelcluster-platform/Berksfile +++ b/cookbooks/aws-parallelcluster-platform/Berksfile @@ -7,6 +7,5 @@ cookbook "aws-parallelcluster-shared", path: "../aws-parallelcluster-shared" cookbook "line", path: "../third-party/line-4.5.13" # for shared cookbook -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-shared/Berksfile b/cookbooks/aws-parallelcluster-shared/Berksfile index 4d15ee95ed..8fb094b371 100644 --- a/cookbooks/aws-parallelcluster-shared/Berksfile +++ b/cookbooks/aws-parallelcluster-shared/Berksfile @@ -4,6 +4,5 @@ source chef_repo: "." metadata -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-shared/metadata.rb b/cookbooks/aws-parallelcluster-shared/metadata.rb index 9073686e0b..d4b5ab62ba 100644 --- a/cookbooks/aws-parallelcluster-shared/metadata.rb +++ b/cookbooks/aws-parallelcluster-shared/metadata.rb @@ -9,6 +9,5 @@ chef_version '>= 18' version '3.13.0' -depends 'pyenv', '~> 4.2.3' depends 'yum', '~> 7.4.13' depends 'yum-epel', '~> 5.0.2' diff --git a/cookbooks/aws-parallelcluster-slurm/Berksfile b/cookbooks/aws-parallelcluster-slurm/Berksfile index a0935186e1..830b32fff4 100644 --- a/cookbooks/aws-parallelcluster-slurm/Berksfile +++ b/cookbooks/aws-parallelcluster-slurm/Berksfile @@ -11,6 +11,5 @@ cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" cookbook "openssh", path: "../third-party/openssh-2.11.12" -cookbook "pyenv", path: "../third-party/pyenv-4.2.3" cookbook "yum", path: "../third-party/yum-7.4.13" cookbook "yum-epel", path: "../third-party/yum-epel-5.0.2" diff --git a/cookbooks/aws-parallelcluster-slurm/metadata.rb b/cookbooks/aws-parallelcluster-slurm/metadata.rb index 32b7d7de44..e5cee6172b 100644 --- a/cookbooks/aws-parallelcluster-slurm/metadata.rb +++ b/cookbooks/aws-parallelcluster-slurm/metadata.rb @@ -14,7 +14,6 @@ depends 'line', '~> 4.5.13' depends 'nfs', '~> 5.1.2' depends 'openssh', '~> 2.11.12' -depends 'pyenv', '~> 4.2.3' depends 'yum', '~> 7.4.13' depends 'yum-epel', '~> 5.0.2' depends 'aws-parallelcluster-computefleet', '~> 3.13.0' diff --git a/cookbooks/third-party/pyenv-4.2.3/Berksfile b/cookbooks/third-party/pyenv-4.2.3/Berksfile deleted file mode 100644 index aa1183454c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/Berksfile +++ /dev/null @@ -1,7 +0,0 @@ -source 'https://supermarket.chef.io' - -metadata - -group :test do - cookbook 'test', path: 'test/fixtures/cookbooks/test' -end diff --git a/cookbooks/third-party/pyenv-4.2.3/CHANGELOG.md b/cookbooks/third-party/pyenv-4.2.3/CHANGELOG.md deleted file mode 100644 index d3e612cd3a..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/CHANGELOG.md +++ /dev/null @@ -1,153 +0,0 @@ -# pyenv Changelog - -## 4.2.3 - *2023-06-08* - -## 4.2.2 - *2023-06-08* - -Standardise files with files in sous-chefs/repo-management - -## 4.2.1 - *2023-02-02* - -- Update `templates/pyenv.sh` script to properly evaluate when to add a user install to `$PATH` - -## 4.2.0 - *2022-09-26* - -- Add support for ubuntu >= 22.04 and debian >= 11 - -## 4.1.0 - *2022-07-20* - -- Remove duplicate pyenv init from profile script, fixes "pyenv: cannot rehash: <...>/shims isn't writable" for system install - -## 4.0.1 - *2022-02-08* - -- Remove delivery folder - -## 4.0.0 - *2021-12-20* - -- Set unified_mode for Chef 17 support -- Require Chef 15.3 for unified_mode -- Fix pyenv not being on the path properly -- resolved cookstyle error: resources/global.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/pip.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/plugin.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/python.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/rehash.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/script.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/system_install.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- resolved cookstyle error: resources/user_install.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` -- Removed the pyenv_system_install and pyenv_user_install resources for a singular pyenv_install. - - - This resource acts like all other resources where it can install both as a user and system wide. - Please see the documentation for further information. - -## 3.5.1 - *2021-08-30* - -- Standardise files with files in sous-chefs/repo-management - -## 3.5.0 - *2021-07-22* - -- Add support for setting umask for pip resource. - -## 3.4.2 - *2021-06-01* - -- Standardise files with files in sous-chefs/repo-management - -## 3.4.1 - *2020-12-31* - -- resolved cookstyle error: resources/pip.rb:153:1 convention: `Layout/TrailingEmptyLines` - -## 3.4.0 (2020-11-05) - -- Add `:upgrade` action to the pyenv_pip resource - -## 3.3.2 (2020-08-05) - -- Do not attempt to rehash in a system-wide install -- Removed testing support for centos-6. Python 3.7.1 requires a newer version of openssl than centos-6 supplies. -- Removed testing support for debian-8. Debian-8 is no longer supported. Also has issues with the level of openssl that is available. - -## 3.3.1 - -- Namespace the run_state variables used in the resources - -## 3.3.0 - -- Chef 16 removed defaults for checkout_branch from the git resource, restore them to the previous default 'deploy' - -## 3.2.0 - -- resolved cookstyle error: resources/pip.rb:107:7 convention: `Style/RedundantReturn` -- resolved cookstyle error: resources/pip.rb:110:7 convention: `Style/RedundantReturn` -- Migrate to actions for builds -- Fix broken link in README -- Follow up tweaks after ownership migration - -## 3.1.1 - -- Migrated ownership to Sous-Chefs -- Latest cookstyle fixes (5.9.3) - -## 3.1.0 - -- invoke `pip install` only necessary #34 - -## 3.0.0 - -- deprecate support for Chef 13 due to [EOL][supported-versions] -- update cookbook to use `apt_update` and `build_essential` resources from Chef 14 make sure builds don't failed because of lack of packages - -## 2.1.0 - -- add support for virtualenv installation and uninstallation. -- add support for passing environment variable during pyenv, python and plugin installation. -- delete "reinstall" property from pip resource and replace it with general "options" property -- make pyenv_script fail on any subcommand failure - -Thanks to [@ssps](https://github.com/ssps)! - -## 2.0.0 - -- Dropping support for Chef 12 - -## 1.0.0 (BREAKING CHANGES!!) - -- Refactor and update the legacy code base. Recipes are no longer provided, and custom resources are used to manage pyenv installations instead. -- update `system_install` to be a resource -- update `user_install` to be a resource -- update `script` resource -- update `python` resource -- update `global` resource -- update `rehash` resource -- create `plugin` resource -- create `pip` resource -- update integration tests -- add linting to CI -- delete all recipes -- delete matchers -- delete `chef_pyenv_recipe_helpers` library -- delete `chef_pyenv_mixin` library -- add support for Fedora, RedHat distros and OpenSUSE - -## 0.2.0 - -- Add oracle linux support -- Update syntax for chef-client v13 -- Update gems and dependencies -- Add integration tests on travis - -## 0.1.4 - -- Updated deprecated methods used in attributes.rb - -## 0.1.0 - -- Update default pyenv version to v0.4.0-20140516 -- Add support for CentOS 6.5 -- Install `make`, `build-essential`, `libssl-dev`, `zlib1g-dev`, `wget`, - `curl`, and `llvm` on Debian machines - -## 0.0.1 - -- Initial port of [chef-rbenv](https://github.com/fnichol/chef-rbenv) - -[supported-versions]: https://docs.chef.io/platforms.html#supported-versions diff --git a/cookbooks/third-party/pyenv-4.2.3/CODE_OF_CONDUCT.md b/cookbooks/third-party/pyenv-4.2.3/CODE_OF_CONDUCT.md deleted file mode 100644 index 20b4adbd7d..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,3 +0,0 @@ -# Community Guidelines - -This project follows the Chef Community Guidelines diff --git a/cookbooks/third-party/pyenv-4.2.3/CONTRIBUTING.md b/cookbooks/third-party/pyenv-4.2.3/CONTRIBUTING.md deleted file mode 100644 index a946aea14e..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/CONTRIBUTING.md +++ /dev/null @@ -1,4 +0,0 @@ -# Contributing - -Please refer to -[https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD) diff --git a/cookbooks/third-party/pyenv-4.2.3/Dangerfile b/cookbooks/third-party/pyenv-4.2.3/Dangerfile deleted file mode 100644 index bc08b7aebf..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/Dangerfile +++ /dev/null @@ -1,47 +0,0 @@ -# Reference: http://danger.systems/reference.html - -# A pull request summary is required. Add a description of the pull request purpose. -# Changelog must be updated for each pull request that changes code. -# Warnings will be issued for: -# Pull request with more than 400 lines of code changed -# Pull reqest that change more than 5 lines without test changes -# Failures will be issued for: -# Pull request without summary -# Pull requests with code changes without changelog entry - -def code_changes? - code = %w(libraries attributes recipes resources files templates) - code.each do |location| - return true unless git.modified_files.grep(/#{location}/).empty? - end - false -end - -def test_changes? - tests = %w(spec test kitchen.yml kitchen.dokken.yml) - tests.each do |location| - return true unless git.modified_files.grep(/#{location}/).empty? - end - false -end - -failure 'Please provide a summary of your Pull Request.' if github.pr_body.length < 10 - -warn 'This is a big Pull Request.' if git.lines_of_code > 400 - -warn 'This is a Table Flip.' if git.lines_of_code > 2000 - -# Require a CHANGELOG entry for non-test changes. -if !git.modified_files.include?('CHANGELOG.md') && code_changes? - failure 'Please include a CHANGELOG entry.' -end - -# Require Major Minor Patch version labels -unless github.pr_labels.grep /minor|major|patch/i - warn 'Please add a release label to this pull request' -end - -# A sanity check for tests. -if git.lines_of_code > 5 && code_changes? && !test_changes? - warn 'This Pull Request is probably missing tests.' -end diff --git a/cookbooks/third-party/pyenv-4.2.3/LICENSE b/cookbooks/third-party/pyenv-4.2.3/LICENSE deleted file mode 100644 index 8f71f43fee..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/LICENSE +++ /dev/null @@ -1,202 +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. - diff --git a/cookbooks/third-party/pyenv-4.2.3/README.md b/cookbooks/third-party/pyenv-4.2.3/README.md deleted file mode 100644 index 25986439c8..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/README.md +++ /dev/null @@ -1,73 +0,0 @@ -# pyenv Chef Cookbook - -[![Cookbook Version](https://img.shields.io/cookbook/v/pyenv.svg)](https://supermarket.chef.io/cookbooks/pyenv) -[![Build Status](https://img.shields.io/circleci/project/github/sous-chefs/pyenv/master.svg)](https://circleci.com/gh/sous-chefs/pyenv) -[![OpenCollective](https://opencollective.com/sous-chefs/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/sous-chefs/sponsors/badge.svg)](#sponsors) -[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0) -[![Maintainability](https://api.codeclimate.com/v1/badges/693934e931aa1c52bfa0/maintainability)](https://codeclimate.com/github/sous-chefs/pyenv/maintainability) - -## Description - -Manages [pyenv][pyenv] and its installed Pythons. - -## Chef - -This cookbook requires Chef 15.3+. - -## Platform family - -- Debian derivatives (debian, ubuntu) -- Fedora -- RHEL derivatives (RHEL, CentOS, Amazon Linux, Oracle, Scientific Linux) -- openSUSE and openSUSE leap - -## Usage - -Examples installations are provided in `test/fixtures/cookbooks/test/recipes` - -A `pyenv_install` is required to be set so that pyenv knows which version you want to use, and is installed on the system. - -## Resources - -- [pyenv_global](documentation/pyenv_global.md) -- [pyenv_install](documentation/pyenv_install.md) -- [pyenv_pip](documentation/pyenv_pip.md) -- [pyenv_plugin](documentation/pyenv_plugin.md) -- [pyenv_python](documentation/pyenv_python.md) -- [pyenv_rehash](documentation/pyenv_rehash.md) -- [pyenv_script](documentation/pyenv_script.md) - -## System-Wide Mac Installation Note - -This cookbook takes advantage of managing profile fragments in an -`/etc/profile.d` directory, common on most Unix-flavored platforms. -Unfortunately, Mac OS X does not support this idiom out of the box, -so you may need to [modify][mac_profile_d] your user profile. - -## Contributors - -This project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890&button=false) - -### Backers - -Thank you to all our backers! - -![https://opencollective.com/sous-chefs#backers](https://opencollective.com/sous-chefs/backers.svg?width=600&avatarHeight=40) - -### Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. - -![https://opencollective.com/sous-chefs/sponsor/0/website](https://opencollective.com/sous-chefs/sponsor/0/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/1/website](https://opencollective.com/sous-chefs/sponsor/1/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/2/website](https://opencollective.com/sous-chefs/sponsor/2/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/3/website](https://opencollective.com/sous-chefs/sponsor/3/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/4/website](https://opencollective.com/sous-chefs/sponsor/4/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/5/website](https://opencollective.com/sous-chefs/sponsor/5/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/6/website](https://opencollective.com/sous-chefs/sponsor/6/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/7/website](https://opencollective.com/sous-chefs/sponsor/7/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/8/website](https://opencollective.com/sous-chefs/sponsor/8/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/9/website](https://opencollective.com/sous-chefs/sponsor/9/avatar.svg?avatarHeight=100) - -[pyenv]: https://github.com/pyenv/pyenv diff --git a/cookbooks/third-party/pyenv-4.2.3/TESTING.md b/cookbooks/third-party/pyenv-4.2.3/TESTING.md deleted file mode 100644 index 920e381f92..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/TESTING.md +++ /dev/null @@ -1,3 +0,0 @@ -# Testing - -Please refer to [the community cookbook documentation on testing](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD). diff --git a/cookbooks/third-party/pyenv-4.2.3/chefignore b/cookbooks/third-party/pyenv-4.2.3/chefignore deleted file mode 100644 index a27b0b258c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/chefignore +++ /dev/null @@ -1,115 +0,0 @@ -# Put files/directories that should be ignored in this file when uploading -# to a Chef Infra Server or Supermarket. -# Lines that start with '# ' are comments. - -# OS generated files # -###################### -.DS_Store -ehthumbs.db -Icon? -nohup.out -Thumbs.db -.envrc - -# EDITORS # -########### -.#* -.project -.settings -*_flymake -*_flymake.* -*.bak -*.sw[a-z] -*.tmproj -*~ -\#* -REVISION -TAGS* -tmtags -.vscode -.editorconfig - -## COMPILED ## -############## -*.class -*.com -*.dll -*.exe -*.o -*.pyc -*.so -*/rdoc/ -a.out -mkmf.log - -# Testing # -########### -.circleci/* -.codeclimate.yml -.delivery/* -.foodcritic -.kitchen* -.mdlrc -.overcommit.yml -.rspec -.rubocop.yml -.travis.yml -.watchr -.yamllint -azure-pipelines.yml -Dangerfile -examples/* -features/* -Guardfile -kitchen*.yml -mlc_config.json -Procfile -Rakefile -spec/* -test/* - -# SCM # -####### -.git -.gitattributes -.gitconfig -.github/* -.gitignore -.gitkeep -.gitmodules -.svn -*/.bzr/* -*/.git -*/.hg/* -*/.svn/* - -# Berkshelf # -############# -Berksfile -Berksfile.lock -cookbooks/* -tmp - -# Bundler # -########### -vendor/* -Gemfile -Gemfile.lock - -# Policyfile # -############## -Policyfile.rb -Policyfile.lock.json - -# Documentation # -############# -CODE_OF_CONDUCT* -CONTRIBUTING* -documentation/* -TESTING* -UPGRADING* - -# Vagrant # -########### -.vagrant -Vagrantfile diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/.gitkeep b/cookbooks/third-party/pyenv-4.2.3/documentation/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_global.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_global.md deleted file mode 100644 index 33d270402c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_global.md +++ /dev/null @@ -1,15 +0,0 @@ -# `pyenv_global` - -If a user is passed in to this resource it sets the global version for the user, under the users root_path (usually `~/.pyenv/version`), otherwise it sets the system global version. - -| Name | Type | Default | Description | -| ------------- | ------ | --------- | ----------- | -| pyenv_version | String | | | -| user | String | | | -| prefix | String | root_path | | - -## Examples - -```ruby -pyenv_global '3.6.1' -``` diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_install.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_install.md deleted file mode 100644 index 8f0283afbe..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_install.md +++ /dev/null @@ -1,29 +0,0 @@ -# `pyenv_install` - -Installs pyenv to either a user or system location. - -Install PyEnv under the vagrant home directory - -```ruby -pyenv_install 'user' do - user 'vagrant' -end -``` - -Install PyEnv globally - -```ruby -pyenv_install 'system' -``` - -| Name | Type | Allowed Options | Default | Description | -| ------------ | --------------- | ------------------------------------------ | ------------------------------------ | ------------------------------------------------------ | -| prefix_type | String | user system | | Whether to install pyenv to a user or system directory | -| user | String | | `root` | User directory to install pyenv to | -| group | String, | | `user` | Group for the pyenv directories and files | -| git_url | String | | `https://github.com/pyenv/pyenv.git` | | -| git_ref | String, | | | `master` | -| home_dir | String | | user home | | -| prefix | String | `/usr/local/pyenv` or users home directory | Path to install pyenv to | | -| environment | Hash | | | | -| update_pyenv | `true`, `false` | | false | | diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_pip.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_pip.md deleted file mode 100644 index 54913501b1..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_pip.md +++ /dev/null @@ -1,32 +0,0 @@ -# `pyenv_pip` - -Used to install a Python package into the selected pyenv environment. - -```ruby -pyenv_pip 'requests' do - virtualenv - version - user - umask - options - requirement - editable -end -``` - -## Actions - -- `:install` - Default. Install a python package. If a version is specified, install the specified version of the python package. -- `:upgrade` - Install/upgrade a python package. Call `install` command with `--upgrade` flag. If version is not specified, latest version will be installed. -- `:uninstall` - Uninstall a python package. - -| Name | Type | Default | Description | -| ------------ | ----------------- | -------------- | ----------- | -| package_name | String | true | | -| virtualenv | String | | | -| version | String | | | -| user | String | | | -| umask | [String, Integer] | | | -| options | String | | | -| requirement | [true, false] | false | | -| editable | [true, false] | default: false | | diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_plugin.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_plugin.md deleted file mode 100644 index 4e08d7e9e2..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_plugin.md +++ /dev/null @@ -1,16 +0,0 @@ -# `pyenv_plugin` - -Installs a pyenv plugin. - -```ruby -pyenv_plugin 'virtualenv' do - git_url 'https://github.com/pyenv/pyenv-virtualenv' -end -``` - -| Name | Type | Default | Description | -| ----------- | ------ | -------- | ---------------------------------------------------- | -| git_url | String | | Git URL of the plugin | -| git_ref | String | `master` | Git reference of the plugin | -| environment | Hash | | Optional: pass environment variables to git resource | -| user | String | | # Optional: if passed installs to the users pyenv. | diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_python.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_python.md deleted file mode 100644 index 200fce78e4..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_python.md +++ /dev/null @@ -1,25 +0,0 @@ -# `pyenv_python` - -Installs Python. - -| Name | Type | Default | Description | -| ------------ | --------------- | ------- | ----------------------------- | -| version | `String` | | Version of Python to install | -| version_file | `String` | | | -| user | `String` | | User to install the Python to | -| environment | `Hash` | | | -| verbose | `[true, false]` | `false` | | - -## Examples - -```ruby -pyenv_python '3.6.1' -``` - -Install a Python for a user install - -```ruby -pyenv_python version do - user 'vagrant' -end -``` diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_rehash.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_rehash.md deleted file mode 100644 index 224b7902ab..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_rehash.md +++ /dev/null @@ -1,19 +0,0 @@ -# `pyenv_rehash` - -Rehashes the system or user pyenv. - -| Name | Type | Default | Description | -| ---- | -------- | ------- | -------------- | -| user | `String` | | User to rehash | - -## Examples - -```ruby -pyenv_rehash 'rehash' do - user 'vagrant' -end -``` - -```ruby -pyenv 'rehash' -``` diff --git a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_script.md b/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_script.md deleted file mode 100644 index d4201d8b49..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/documentation/pyenv_script.md +++ /dev/null @@ -1,27 +0,0 @@ -# pyenv_script - -Runs a pyenv aware script. - -| Name | Type | Default | Description | -| ------------- | ------------------- | ------- | ----------- | -| pyenv_version | `String` | | | -| code | `String` | | | -| creates | `String` | | | -| cwd | `String` | | | -| environment | `Hash` | | | -| group | `String` | | | -| path | `Array` | | | -| returns | `Array` | `[0]` | | -| timeout | Integer | | | -| user | String | | | -| umask | `[String, Integer]` | | | -| live_stream | `[true, false]` | `false` | | - -## Examples - -```ruby -pyenv_script 'create virtualenv' do - code "virtualenv #{venv_root}" - user 'vagrant' -end -``` diff --git a/cookbooks/third-party/pyenv-4.2.3/kitchen.dokken.yml b/cookbooks/third-party/pyenv-4.2.3/kitchen.dokken.yml deleted file mode 100644 index 47eff95d80..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/kitchen.dokken.yml +++ /dev/null @@ -1,113 +0,0 @@ -driver: - name: dokken - privileged: true - chef_version: <%= ENV['CHEF_VERSION'] || 'current' %> - -transport: { name: dokken } -provisioner: { name: dokken } - -platforms: - - name: almalinux-8 - driver: - image: dokken/almalinux-8 - pid_one_command: /usr/lib/systemd/systemd - - - name: almalinux-9 - driver: - image: dokken/almalinux-9 - pid_one_command: /usr/lib/systemd/systemd - - - name: amazonlinux-2023 - driver: - image: dokken/amazonlinux-2023 - pid_one_command: /usr/lib/systemd/systemd - - - name: centos-7 - driver: - image: dokken/centos-7 - pid_one_command: /usr/lib/systemd/systemd - - - name: centos-stream-8 - driver: - image: dokken/centos-stream-8 - pid_one_command: /usr/lib/systemd/systemd - - - name: centos-stream-9 - driver: - image: dokken/centos-stream-9 - pid_one_command: /usr/lib/systemd/systemd - - - name: debian-9 - driver: - image: dokken/debian-9 - pid_one_command: /bin/systemd - - - name: debian-10 - driver: - image: dokken/debian-10 - pid_one_command: /bin/systemd - - - name: debian-11 - driver: - image: dokken/debian-11 - pid_one_command: /bin/systemd - - - name: debian-12 - driver: - image: dokken/debian-12 - pid_one_command: /bin/systemd - - - name: fedora-latest - driver: - image: dokken/fedora-latest - pid_one_command: /usr/lib/systemd/systemd - - - name: opensuse-leap-15 - driver: - image: dokken/opensuse-leap-15 - pid_one_command: /usr/lib/systemd/systemd - - - name: oraclelinux-7 - driver: - image: dokken/oraclelinux-7 - pid_one_command: /usr/lib/systemd/systemd - - - name: oraclelinux-8 - driver: - image: dokken/oraclelinux-8 - pid_one_command: /usr/lib/systemd/systemd - - - name: oraclelinux-9 - driver: - image: dokken/oraclelinux-9 - pid_one_command: /usr/lib/systemd/systemd - - - name: rockylinux-8 - driver: - image: dokken/rockylinux-8 - pid_one_command: /usr/lib/systemd/systemd - - - name: rockylinux-9 - driver: - image: dokken/rockylinux-9 - pid_one_command: /usr/lib/systemd/systemd - - - name: ubuntu-18.04 - driver: - image: dokken/ubuntu-18.04 - pid_one_command: /bin/systemd - - - name: ubuntu-20.04 - driver: - image: dokken/ubuntu-20.04 - pid_one_command: /bin/systemd - - - name: ubuntu-22.04 - driver: - image: dokken/ubuntu-22.04 - pid_one_command: /bin/systemd - - - name: ubuntu-23.04 - driver: - image: dokken/ubuntu-23.04 - pid_one_command: /bin/systemd diff --git a/cookbooks/third-party/pyenv-4.2.3/kitchen.exec.yml b/cookbooks/third-party/pyenv-4.2.3/kitchen.exec.yml deleted file mode 100644 index ba7b2a962f..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/kitchen.exec.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -driver: { name: exec } -transport: { name: exec } - -platforms: - - name: macos-latest - - name: windows-latest diff --git a/cookbooks/third-party/pyenv-4.2.3/kitchen.global.yml b/cookbooks/third-party/pyenv-4.2.3/kitchen.global.yml deleted file mode 100644 index a382fcd0d2..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/kitchen.global.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -provisioner: - name: chef_infra - product_name: chef - product_version: <%= ENV['CHEF_VERSION'] || 'latest' %> - channel: stable - install_strategy: once - chef_license: accept - enforce_idempotency: <%= ENV['ENFORCE_IDEMPOTENCY'] || true %> - multiple_converge: <%= ENV['MULTIPLE_CONVERGE'] || 2 %> - deprecations_as_errors: true - log_level: <%= ENV['CHEF_LOG_LEVEL'] || 'auto' %> - -verifier: - name: inspec - -platforms: - - name: almalinux-8 - - name: almalinux-9 - - name: amazonlinux-2023 - - name: centos-7 - - name: centos-stream-8 - - name: centos-stream-9 - - name: debian-9 - - name: debian-10 - - name: debian-11 - - name: debian-12 - - name: fedora-latest - - name: opensuse-leap-15 - - name: oraclelinux-7 - - name: oraclelinux-8 - - name: oraclelinux-9 - - name: rockylinux-8 - - name: rockylinux-9 - - name: ubuntu-18.04 - - name: ubuntu-20.04 - - name: ubuntu-22.04 - - name: ubuntu-23.04 diff --git a/cookbooks/third-party/pyenv-4.2.3/kitchen.yml b/cookbooks/third-party/pyenv-4.2.3/kitchen.yml deleted file mode 100644 index 7561a77044..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/kitchen.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -driver: - name: vagrant - -provisioner: - product_name: chef - product_version: <%= ENV['CHEF_VERSION'] || "latest" %> - install_strategy: once - deprecations_as_errors: true - -verifier: - name: inspec - -platforms: - - name: amazonlinux2 - driver_config: - box: mvbcoding/awslinux - - name: debian-10 - - name: debian-11 - - name: centos-7 - - name: centos-8 - - name: oracle-7 - - name: fedora-29 - - name: ubuntu-18.04 - - name: ubuntu-20.04 - - name: ubuntu-22.04 - - name: opensuse-leap-15 - -suites: - - name: system_install - run_list: - - recipe[test::system_install] - - name: user_install - run_list: - - recipe[test::dokken] - - recipe[test::user_install] diff --git a/cookbooks/third-party/pyenv-4.2.3/libraries/helpers.rb b/cookbooks/third-party/pyenv-4.2.3/libraries/helpers.rb deleted file mode 100644 index 7f4e941310..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/libraries/helpers.rb +++ /dev/null @@ -1,68 +0,0 @@ -class PyEnv - module Cookbook - module ScriptHelpers - require 'chef/mixin/shell_out' - - include Chef::Mixin::ShellOut - def root_path - node.run_state['sous-chefs']['pyenv']['root_path']['prefix'] - end - - def script_code - script = [] - script << %(export PYENV_ROOT="#{root_path}") - script << %(export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:$PATH") - script << %{eval "$(pyenv init -)"} - if new_resource.pyenv_version - script << %(export PYENV_VERSION="#{new_resource.pyenv_version}") - end - script << new_resource.code - script.join("\n").concat("\n") - end - - def script_environment - script_env = { 'PYENV_ROOT' => root_path } - script_env.merge!(new_resource.environment) if new_resource.environment - - if new_resource.path - script_env['PATH'] = "#{new_resource.path.join(':')}:#{ENV['PATH']}" - end - - if new_resource.user - script_env['USER'] = new_resource.user - script_env['HOME'] = ::File.expand_path("~#{new_resource.user}") - end - - script_env - end - - def pip_command(command) - pip = if new_resource.virtualenv - "#{new_resource.virtualenv}/bin/pip" - else - 'pip' - end - - shell_out("#{pip} #{command}", - environment: { - 'PATH' => "#{root_path}/shims:#{ENV['PATH']}", - }, - user: new_resource.user) - end - - def pyenv_prerequisites - value_for_platform_family( - 'debian' => %w(make libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git) \ - << value_for_platform( - 'debian' => { '>= 11' => 'python3-openssl', 'default' => 'python-openssl' }, - 'ubuntu' => { '>= 22.04' => 'python3-openssl', 'default' => 'python-openssl' }, - 'default' => 'python-openssl' - ), - %w(rhel fedora amazon) => %w(git zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils), - 'suse' => %w(git git-core zlib-devel bzip2 libbz2-devel libopenssl-devel readline-devel sqlite3 sqlite3-devel xz xz-devel), - 'mac_os_x' => %w(git readline xz) - ) - end - end - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/metadata.rb b/cookbooks/third-party/pyenv-4.2.3/metadata.rb deleted file mode 100644 index 0ca61390b6..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/metadata.rb +++ /dev/null @@ -1,25 +0,0 @@ -name 'pyenv' -maintainer 'Sous Chefs' -maintainer_email 'help@sous-chefs.org' -license 'Apache-2.0' -description 'Manages pyenv and its installed Python versions.' -issues_url 'https://github.com/sous-chefs/pyenv/issues' -source_url 'https://github.com/sous-chefs/pyenv' -version '4.2.3' -chef_version '>= 15.3' - -%w( - ubuntu - linuxmint - debian - redhat - centos - fedora - amazon - scientific - opensuse - opensuseleap - oracle -).each do |os| - supports os -end diff --git a/cookbooks/third-party/pyenv-4.2.3/renovate.json b/cookbooks/third-party/pyenv-4.2.3/renovate.json deleted file mode 100644 index 7e7a8bad3c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/renovate.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base"], - "packageRules": [{ - "groupName": "Actions", - "matchUpdateTypes": ["patch", "pin", "digest"], - "automerge": true, - "addLabels": ["Release: Patch", "Skip: Announcements"] - }, - { - "groupName": "Actions", - "matchUpdateTypes": ["major"], - "automerge": false, - "addLabels": ["Release: Patch", "Skip: Announcements"] - } - ] -} diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/global.rb b/cookbooks/third-party/pyenv-4.2.3/resources/global.rb deleted file mode 100644 index 1490713fa2..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/global.rb +++ /dev/null @@ -1,36 +0,0 @@ -unified_mode true -include PyEnv::Cookbook::ScriptHelpers - -property :pyenv_version, - String, - name_property: true - -property :user, - String - -property :prefix, - String, - default: lazy { root_path } - -action :create do - pyenv_script 'globals' do - code "pyenv global #{new_resource.pyenv_version}" - user new_resource.user - action :run - not_if { current_global_version_correct? } - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers - - def current_global_version_correct? - current_global_version == new_resource.pyenv_version - end - - def current_global_version - version_file = ::File.join(new_resource.root_path, 'version') - - ::File.exist?(version_file) && ::IO.read(version_file).chomp - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/install.rb b/cookbooks/third-party/pyenv-4.2.3/resources/install.rb deleted file mode 100644 index 08c0954611..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/install.rb +++ /dev/null @@ -1,108 +0,0 @@ -unified_mode true - -property :prefix_type, - String, - equal_to: %w( user system ), - name_property: true, - description: 'Whether to install pyenv to a user or system directory.' - -property :user, - String, - default: 'root', - description: 'User directory to install pyenv to.' - -property :group, - String, - default: lazy { user }, - description: 'Group for the pyenv directories and files.' - -property :git_url, - String, - default: 'https://github.com/pyenv/pyenv.git' - -property :git_ref, - String, - default: 'master' - -property :home_dir, - String, - default: lazy { ::File.expand_path("~#{user}") } - -property :prefix, - String, - default: lazy { - if prefix_type == 'user' - ::File.join(home_dir, '.pyenv') - else - '/usr/local/pyenv' - end - }, - description: 'Path to install pyenv to' - -property :environment, - Hash - -property :update_pyenv, - [true, false], - default: false - -action :install do - node.run_state['sous-chefs'] ||= {} - node.run_state['sous-chefs']['pyenv'] ||= {} - node.run_state['sous-chefs']['pyenv']['root_path'] ||= {} - node.run_state['sous-chefs']['pyenv']['root_path']['prefix'] ||= new_resource.prefix - - build_essential 'build packages' - package pyenv_prerequisites - - directory '/etc/profile.d' do - owner 'root' - mode '0755' - end - - template '/etc/profile.d/pyenv.sh' do - cookbook 'pyenv' - source 'pyenv.sh' - owner 'root' - mode '0755' - variables(prefix: new_resource.prefix) - end - - git new_resource.prefix do - repository new_resource.git_url - revision new_resource.git_ref - user new_resource.user - group new_resource.group - depth 1 - action new_resource.update_pyenv ? :sync : :checkout - environment(new_resource.environment) - notifies :run, 'ruby_block[Add pyenv to PATH]', :immediately - notifies :run, 'execute[Initialize pyenv]', :immediately - end - - %w(plugins shims versions).each do |dir| - directory "#{new_resource.prefix}/#{dir}" do - owner new_resource.user - group new_resource.group - mode '0755' - end - end - - # Initialize pyenv - ruby_block 'Add pyenv to PATH' do - block do - ENV['PATH'] = "#{new_resource.prefix}/shims:#{new_resource.prefix}/bin:#{ENV['PATH']}" - end - action :nothing - end - - execute 'Initialize pyenv' do - command %(PATH="#{new_resource.prefix}/bin:$PATH" pyenv init -) - environment('PYENV_ROOT' => new_resource.prefix) - action :nothing - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/local.rb b/cookbooks/third-party/pyenv-4.2.3/resources/local.rb deleted file mode 100644 index 78081f260b..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/local.rb +++ /dev/null @@ -1,35 +0,0 @@ -unified_mode true - -property :python_version, - String, - name_property: true -property :path, - String, - required: true - -property :user, - String - -action :create do - pyenv_script 'local' do - code "pyenv local #{new_resource.python_version}" - cwd new_resource.path - user new_resource.user if new_resource.user - action :run - not_if { current_local_version_correct? } - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers - - def current_local_version_correct? - current_local_version == new_resource.python_version - end - - def current_local_version - version_file = ::File.join(new_resource.path, '.python-version') - - ::File.exist?(version_file) && ::IO.read(version_file).chomp - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/pip.rb b/cookbooks/third-party/pyenv-4.2.3/resources/pip.rb deleted file mode 100644 index b34dda3e45..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/pip.rb +++ /dev/null @@ -1,154 +0,0 @@ -unified_mode true - -property :package_name, - String, - name_property: true - -property :virtualenv, - String - -property :version, - String - -property :user, - String - -property :umask, - [String, Integer] - -property :options, - String - -property :requirement, - [true, false], - default: false - -property :editable, - [true, false], - default: false - -action :install do - install_mode = if new_resource.requirement - '--requirement' - elsif new_resource.editable - '--editable' - else - '' - end - - install_target = if new_resource.version - "#{new_resource.package_name}==#{new_resource.version}" - else - new_resource.package_name - end - - pip_args = "install #{new_resource.options} #{install_mode} #{install_target}" - - # without virtualenv, install package with system's pip - command = if new_resource.virtualenv - "#{new_resource.virtualenv}/bin/pip #{pip_args}" - else - "pip #{pip_args}" - end - - pyenv_script new_resource.package_name do - code command - user new_resource.user - umask new_resource.umask - only_if { require_install? } - end -end - -action :upgrade do - upgrade_target = if new_resource.version - "#{new_resource.package_name}==#{new_resource.version}" - else - new_resource.package_name.to_s - end - - pip_args = "install --upgrade #{new_resource.options} #{upgrade_target}" - - # without virtualenv, upgrade package with system's pip - command = if new_resource.virtualenv - "#{new_resource.virtualenv}/bin/pip #{pip_args}" - else - "pip #{pip_args}" - end - - pyenv_script new_resource.package_name do - code command - user new_resource.user - umask new_resource.umask - only_if { require_upgrade? } - end -end - -action :uninstall do - uninstall_mode = if new_resource.requirement - '--requirement' - else - '' - end - - pip_args = ["uninstall --yes #{new_resource.options}", - "#{uninstall_mode} #{new_resource.package_name}"].join - - # without virtualenv, uninstall package with system's pip - command = if new_resource.virtualenv - "#{new_resource.virtualenv}/bin/pip #{pip_args}" - else - "pip #{pip_args}" - end - - pyenv_script new_resource.package_name do - code command - user new_resource.user - umask new_resource.umask - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers - - def require_install? - current_version = get_current_version - return true unless current_version - - unless new_resource.version - Chef::Log.debug("already installed: #{new_resource.package_name} #{current_version}") - return false - end - - is_different_version?(current_version) - end - - def require_upgrade? - current_version = get_current_version - return true unless current_version - - is_different_version?(current_version) - end - - def get_current_version - current_version = nil - show = pip_command("show #{new_resource.package_name}").stdout - show.split(/\n+/).each do |line| - current_version = line.split(/\s+/)[1] if line.start_with?('Version:') - end - Chef::Log.debug("current_version: #{new_resource.package_name} #{current_version}") - unless current_version - Chef::Log.debug("not installed: #{new_resource.package_name}") - end - current_version - end - - def is_different_version?(current_version) - if current_version != new_resource.version - Chef::Log.debug("different version installed: #{new_resource.package_name} current=#{current_version} candidate=#{new_resource.version}") - true - else - Chef::Log.debug("same version installed: #{new_resource.package_name} #{current_version}") - false - end - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/plugin.rb b/cookbooks/third-party/pyenv-4.2.3/resources/plugin.rb deleted file mode 100644 index a48471ac20..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/plugin.rb +++ /dev/null @@ -1,34 +0,0 @@ -unified_mode true - -property :git_url, - String, - required: true - -property :git_ref, - String, - default: 'master' - -property :environment, - Hash - -property :user, - String - -# https://github.com/pyenv/pyenv/wiki/Plugins -action :install do - # If we pass in a username, we then install the plugin to the user's home_dir - # See chef_pyenv_script_helpers.rb for root_path - git "Install #{new_resource.name} plugin" do - checkout_branch 'deploy' - destination ::File.join(root_path, 'plugins', new_resource.name) - repository new_resource.git_url - reference new_resource.git_ref - user new_resource.user - action :sync - environment(new_resource.environment) - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/python.rb b/cookbooks/third-party/pyenv-4.2.3/resources/python.rb deleted file mode 100644 index f9c7853f4c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/python.rb +++ /dev/null @@ -1,62 +0,0 @@ -unified_mode true - -property :version, - String, - name_property: true - -property :version_file, - String - -property :user, - String - -property :environment, - Hash - -property :verbose, - [true, false], - default: false - -action :install do - install_start = Time.now - - Chef::Log.info("Building Python #{new_resource.version}, this could take a while...") - - command = %(pyenv install #{verbose} #{new_resource.version}) - - pyenv_script "#{command}" do - code command - user new_resource.user - environment new_resource.environment - live_stream new_resource.verbose - action :run - not_if { python_installed? } - end - - Chef::Log.info("#{new_resource} build time was #{(Time.now - install_start) / 60.0} minutes") -end - -action :uninstall do - command = %(pyenv uninstall -f #{new_resource.version}) - - pyenv_script "#{command}" do - code command - user new_resource.user - environment new_resource.environment - live_stream new_resource.verbose - action :run - not_if { python_installed? } - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers - - def python_installed? - ::File.directory?(::File.join(root_path, 'versions', new_resource.version)) - end - - def verbose - return '-v' if new_resource.verbose - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/rehash.rb b/cookbooks/third-party/pyenv-4.2.3/resources/rehash.rb deleted file mode 100644 index 1c481e8dae..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/rehash.rb +++ /dev/null @@ -1,16 +0,0 @@ -unified_mode true - -property :user, - String - -action :run do - pyenv_script 'pyenv rehash' do - code %(pyenv rehash) - user new_resource.user - action :run - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers -end diff --git a/cookbooks/third-party/pyenv-4.2.3/resources/script.rb b/cookbooks/third-party/pyenv-4.2.3/resources/script.rb deleted file mode 100644 index 2cd6e7b830..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/resources/script.rb +++ /dev/null @@ -1,58 +0,0 @@ -unified_mode true - -property :pyenv_version, - String - -property :code, - String - -property :creates, - String - -property :cwd, - String - -property :environment, - Hash - -property :group, - String - -property :path, - Array - -property :returns, - Array, - default: [0] - -property :timeout, - Integer - -property :user, - String - -property :umask, - [String, Integer] - -property :live_stream, - [true, false], - default: false - -action :run do - execute new_resource.name do - command script_code - creates new_resource.creates - cwd new_resource.cwd - user new_resource.user - group new_resource.group - returns new_resource.returns - timeout new_resource.timeout - umask new_resource.umask - live_stream new_resource.live_stream - environment(script_environment) - end -end - -action_class do - include PyEnv::Cookbook::ScriptHelpers -end diff --git a/cookbooks/third-party/pyenv-4.2.3/spec/spec_helper.rb b/cookbooks/third-party/pyenv-4.2.3/spec/spec_helper.rb deleted file mode 100644 index 1dd5126bf6..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/spec/spec_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -require 'chefspec' -require 'chefspec/berkshelf' diff --git a/cookbooks/third-party/pyenv-4.2.3/templates/pyenv.sh b/cookbooks/third-party/pyenv-4.2.3/templates/pyenv.sh deleted file mode 100644 index 4af35fa79d..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/templates/pyenv.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# Prefer a user pyenv over a system-wide install -if [ -s "${HOME}/.pyenv/bin" ]; then - pyenv_root="${HOME}/.pyenv" - pyenv_init="pyenv init -" -else - pyenv_root="<%= @prefix %>" - export PYENV_ROOT="${pyenv_root}" - # Rehashing will fail in a system install - pyenv_init="pyenv init - --no-rehash" -fi - -if [ -d "$pyenv_root" ]; then - export PATH="${pyenv_root}/bin:$PATH" - eval "$($pyenv_init)" -fi diff --git a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/files/requirements.txt b/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/files/requirements.txt deleted file mode 100644 index cc64d0ac2c..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/files/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -fire==0.1.2 -requests==2.18.1 -urllib3==1.21.1 diff --git a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/metadata.rb b/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/metadata.rb deleted file mode 100644 index 49e81257ee..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/metadata.rb +++ /dev/null @@ -1,4 +0,0 @@ -name 'test' -version '0.1.0' - -depends 'pyenv' diff --git a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/dokken.rb b/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/dokken.rb deleted file mode 100644 index a950e21b55..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/dokken.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Make sure Vagrant user is on the box. This should fix the dokken user install -user 'vagrant' - -group 'vagrant' do - members 'vagrant' -end - -directory '/home/vagrant' do - owner 'vagrant' - group 'vagrant' -end diff --git a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/system_install.rb b/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/system_install.rb deleted file mode 100644 index b0e453d3d0..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/system_install.rb +++ /dev/null @@ -1,28 +0,0 @@ -# Install Python system wide -# and make it the global default - -version = '3.7.7' -local_folder = '/opt/pyenv_test' - -directory local_folder - -pyenv_install 'system' - -# pyenv_rehash 'for-new-python' - -pyenv_python version - -pyenv_local version do - path local_folder - user 'root' -end - -pyenv_global version - -pyenv_plugin 'virtualenv' do - git_url 'https://github.com/pyenv/pyenv-virtualenv' -end - -pyenv_pip 'requests' do - version '2.18.3' -end diff --git a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/user_install.rb b/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/user_install.rb deleted file mode 100644 index 5000c690a4..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/fixtures/cookbooks/test/recipes/user_install.rb +++ /dev/null @@ -1,54 +0,0 @@ -# Install pyenv -# and make it avilable to the selected user - -version = '3.7.7' -user = 'vagrant' -venv_root = "/home/#{user}/venv_test" - -cookbook_file '/tmp/requirements.txt' do - source 'requirements.txt' - owner user - group user - mode '0644' -end - -pyenv_install 'user' do - user user -end - -pyenv_python version do - user user -end - -pyenv_global version do - user user -end - -pyenv_plugin 'virtualenv' do - git_url 'https://github.com/pyenv/pyenv-virtualenv' - user user -end - -pyenv_pip 'requests' do - version '2.18.3' - user user -end - -pyenv_pip 'virtualenv' do - version '16.2.0' -end - -pyenv_script 'create virtualenv' do - code "virtualenv #{venv_root}" - user user -end - -pyenv_pip '/tmp/requirements.txt' do - virtualenv venv_root - requirement true -end - -pyenv_pip 'requests' do - virtualenv venv_root - action :uninstall -end diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/common/controls/common.rb b/cookbooks/third-party/pyenv-4.2.3/test/integration/common/controls/common.rb deleted file mode 100644 index d33a655d55..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/common/controls/common.rb +++ /dev/null @@ -1,19 +0,0 @@ -control 'Path' do - impact 1 - title 'pyenv should be on the path' - desc 'pyenv bin and shims should be on the path' - - describe bash('source /etc/profile.d/pyenv.sh && echo $PATH') do - its('stdout') { should match /shims/ } - end -end - -control 'Shims' do - impact 1 - title 'Pyenv shims should contain the correct Python' - desc 'When pyen shims is run we should have the correct version of Python shimmed' - describe bash('source /etc/profile.d/pyenv.sh && pyenv shims') do - its('stdout') { should match /shims/ } - its('stdout') { should match /python3.7/ } - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/controls/system_install.rb b/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/controls/system_install.rb deleted file mode 100644 index 5e13b94bce..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/controls/system_install.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -global_python = '3.7.7' - -control 'pyenv should be installed' do - title 'pyenv should be installed globally' - - desc "Can set global Python versions to #{global_python}" - describe bash('source /etc/profile.d/pyenv.sh && pyenv global') do - its('exit_status') { should eq(0) } - its('stdout') { should match(global_python) } - its('stdout') { should_not match('system') } - end - - desc "Python #{global_python} should be installed" - describe bash('source /etc/profile.d/pyenv.sh && python --version') do - its('exit_status') { should eq(0) } - its('stdout') { should match(global_python) } - end - - desc 'Plugin should be installed' - describe bash('source /etc/profile.d/pyenv.sh && pyenv virtualenv') do - its('stderr') { should match('pyenv-virtualenv') } - end - - desc 'Pip should install package requests' - describe bash("sudo -H bash -c 'source /etc/profile.d/pyenv.sh && pip show requests'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 2.18.3') } - end -end - -control 'pyenv should be installed to the system path' do - title 'pyenv should be installed in the global location' - - describe file('/etc/profile.d/pyenv.sh') do - it { should be_file } - it { should be_executable } - its('owner') { should eq('root') } - its('content') { should match(/^\s+pyenv_init="pyenv init -"/) } - its('content') { should match(/--no-rehash"/) } - its('content') { should match(/^\s+eval "\$\(\$pyenv_init\)"/) } - end - - describe directory('/usr/local/pyenv') do - it { should exist } - its('owner') { should eq('root') } - end - - describe file('/usr/local/pyenv/bin/pyenv') do - it { should be_file } - it { should be_executable } - its('owner') { should eq('root') } - end - - describe file('/usr/local/pyenv/shims/pip') do - it { should be_file } - it { should be_executable } - its('owner') { should eq('root') } - end -end - -include_controls 'common' diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/inspec.yml b/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/inspec.yml deleted file mode 100644 index bc6d9b154d..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/system_install/inspec.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: pyenv -title: pyenv user install -maintainer: Sous-Chefs -summary: Verifies pyenv is installed correctly at a system level -version: 1.0.0 -supports: - - os-family: linux -depends: - - name: common - path: test/integration/common diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/controls/user_install.rb b/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/controls/user_install.rb deleted file mode 100644 index 1f227642ca..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/controls/user_install.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -global_python = '3.7.7' -user = 'vagrant' -venv_root = "/home/#{user}/venv_test" - -control 'pyenv should be installed' do - title 'pyenv should be installed to the users home directory' - - desc "Can set global Python versions to #{global_python}" - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && pyenv global'") do - its('exit_status') { should eq(0) } - its('stdout') { should match(global_python) } - its('stdout') { should_not match('system') } - end - - desc "Python #{global_python} should be installed" - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && python --version'") do - its('exit_status') { should eq(0) } - its('stdout') { should match(global_python) } - end -end - -control 'pyenv should be installed to the user path' do - title "pyenv should be installed in the user's home" - - describe file('/etc/profile.d/pyenv.sh') do - it { should be_file } - it { should be_executable } - its('owner') { should eq('root') } - its('content') { should match(/^\s+pyenv_init="pyenv init -"/) } - its('content') { should match(/Rehashing will fail in a system install\n\s+pyenv_init="pyenv init - --no-rehash"/m) } - its('content') { should match(/^\s+eval "\$\(\$pyenv_init\)"/) } - end - - describe directory("/home/#{user}/.pyenv") do - it { should exist } - its('owner') { should eq(user) } - end - - describe file("/home/#{user}/.pyenv/bin/pyenv") do - it { should be_file } - it { should be_executable } - its('owner') { should eq(user) } - end - - describe file("/home/#{user}/.pyenv/shims/pip") do - it { should be_file } - it { should be_executable } - its('owner') { should eq(user) } - end -end - -control 'virtualenv' do - desc 'Plugin should be installed' - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && pyenv virtualenv'") do - its('stderr') { should match('pyenv-virtualenv') } - end - - desc 'Pip should install package requests' - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && pip show requests'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 2.18.3') } - end - - desc 'Pip should install package virtualenv' - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && pip show virtualenv'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 16.2.0') } - end - - desc 'Pip should install package fire inside virtualenv according to requirements.txt' - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && #{venv_root}/bin/pip show fire'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 0.1.2') } - end - - desc 'Pip should uninstall package requests inside virtualenv' - describe bash("sudo -H -u #{user} bash -c 'source /etc/profile.d/pyenv.sh && #{venv_root}/bin/pip show requests'") do - its('exit_status') { should eq(1) } - end -end - -control 'virtualenv should be created' do - title "virtualenv should be created in #{venv_root}" - - describe directory(venv_root) do - it { should exist } - its('owner') { should eq(user) } - end - - describe file("#{venv_root}/bin/activate") do - it { should be_file } - its('owner') { should eq(user) } - end -end - -include_controls 'common' diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/inspec.yml b/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/inspec.yml deleted file mode 100644 index 0bfbeb8987..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/user_install/inspec.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: pyenv -title: pyenv profile -maintainer: Sous-Chefs -summary: Verifies pyenv is installed correctly -version: 1.0.0 -supports: - - os-family: linux -depends: - - name: common - path: test/integration/common diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/controls/virtualenv.rb b/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/controls/virtualenv.rb deleted file mode 100644 index b5d72517f2..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/controls/virtualenv.rb +++ /dev/null @@ -1,45 +0,0 @@ - -venv_root = "/home/#{user}/venv_test" - -control 'VirtualEnv' do - impact 0.7 - title 'A human-readable title' - desc 'An optional description ...' - - desc 'Pip should install package virtualenv' - describe bash("sudo -H bash -c 'source /etc/profile.d/pyenv.sh && pip show virtualenv'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 16.2.0') } - end - - desc 'Pip should upgrade package urllib3 inside virtualenv' - describe bash("sudo -H bash -c 'source /etc/profile.d/pyenv.sh && #{venv_root}/bin/pip show urllib3'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 1.25.11') } - end - - desc 'Pip should install package fire inside virtualenv according to requirements.txt' - describe bash("sudo -H bash -c 'source /etc/profile.d/pyenv.sh && #{venv_root}/bin/pip show fire'") do - its('exit_status') { should eq(0) } - its('stdout') { should match('Version: 0.1.2') } - end - - desc 'Pip should uninstall package requests inside virtualenv' - describe bash("sudo -H bash -c 'source /etc/profile.d/pyenv.sh && #{venv_root}/bin/pip show requests'") do - its('exit_status') { should eq(1) } - end -end - -control 'virtualenv should be created' do - title "virtualenv should be created in #{venv_root}" - - describe directory(venv_root) do - it { should exist } - its('owner') { should eq('root') } - end - - describe file("#{venv_root}/bin/activate") do - it { should be_file } - its('owner') { should eq('root') } - end -end diff --git a/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/inspec.yml b/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/inspec.yml deleted file mode 100644 index e6c9190213..0000000000 --- a/cookbooks/third-party/pyenv-4.2.3/test/integration/virtualenv/inspec.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: virtualenv -title: virtualenv -maintainer: Sous-Chefs -summary: Verifies pyenv configures virtualenv properly -version: 1.0.0 -supports: - - os-family: linux diff --git a/metadata.rb b/metadata.rb index c8eedef956..f9467e3339 100644 --- a/metadata.rb +++ b/metadata.rb @@ -14,7 +14,6 @@ depends 'line', '~> 4.5.13' depends 'nfs', '~> 5.1.2' depends 'openssh', '~> 2.11.12' -depends 'pyenv', '~> 4.2.3' depends 'yum', '~> 7.4.13' depends 'yum-epel', '~> 5.0.2' depends 'aws-parallelcluster-slurm', '~> 3.13.0' From 77740ced4a1b2255d1b327c554cb9baa5eb40585 Mon Sep 17 00:00:00 2001 From: Himani Anil Deshpande Date: Thu, 23 Jan 2025 15:52:33 -0500 Subject: [PATCH 2/3] [Dependency] Removing apt 3rd party cookbook --- Berksfile | 1 - .../aws-parallelcluster-awsbatch/Berksfile | 1 - .../aws-parallelcluster-awsbatch/metadata.rb | 1 - .../aws-parallelcluster-entrypoints/Berksfile | 1 - cookbooks/aws-parallelcluster-slurm/Berksfile | 1 - .../aws-parallelcluster-slurm/metadata.rb | 1 - .../apt-7.5.22/.markdownlint-cli2.yaml | 5 - cookbooks/third-party/apt-7.5.22/CHANGELOG.md | 468 ------------------ cookbooks/third-party/apt-7.5.22/LICENSE | 202 -------- cookbooks/third-party/apt-7.5.22/README.md | 223 --------- .../apt-7.5.22/attributes/default.rb | 62 --- cookbooks/third-party/apt-7.5.22/chefignore | 115 ----- .../apt-7.5.22/files/15update-stamp | 1 - .../apt-7.5.22/files/apt-proxy-v2.conf | 50 -- .../apt-7.5.22/libraries/helpers.rb | 48 -- .../third-party/apt-7.5.22/metadata.json | 37 -- cookbooks/third-party/apt-7.5.22/metadata.rb | 12 - .../apt-7.5.22/recipes/cacher-client.rb | 52 -- .../apt-7.5.22/recipes/cacher-ng.rb | 39 -- .../third-party/apt-7.5.22/recipes/default.rb | 97 ---- .../apt-7.5.22/recipes/unattended-upgrades.rb | 47 -- .../third-party/apt-7.5.22/renovate.json | 18 - .../apt-7.5.22/templates/01proxy.erb | 11 - .../apt-7.5.22/templates/10dpkg-options.erb | 8 - .../apt-7.5.22/templates/10recommends.erb | 3 - .../apt-7.5.22/templates/20auto-upgrades.erb | 5 - .../templates/50unattended-upgrades.erb | 132 ----- .../apt-7.5.22/templates/acng.conf.erb | 275 ---------- .../templates/unattended-upgrades.seed.erb | 1 - metadata.rb | 1 - 30 files changed, 1918 deletions(-) delete mode 100644 cookbooks/third-party/apt-7.5.22/.markdownlint-cli2.yaml delete mode 100644 cookbooks/third-party/apt-7.5.22/CHANGELOG.md delete mode 100644 cookbooks/third-party/apt-7.5.22/LICENSE delete mode 100644 cookbooks/third-party/apt-7.5.22/README.md delete mode 100644 cookbooks/third-party/apt-7.5.22/attributes/default.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/chefignore delete mode 100644 cookbooks/third-party/apt-7.5.22/files/15update-stamp delete mode 100644 cookbooks/third-party/apt-7.5.22/files/apt-proxy-v2.conf delete mode 100644 cookbooks/third-party/apt-7.5.22/libraries/helpers.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/metadata.json delete mode 100644 cookbooks/third-party/apt-7.5.22/metadata.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/recipes/cacher-client.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/recipes/cacher-ng.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/recipes/default.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/recipes/unattended-upgrades.rb delete mode 100644 cookbooks/third-party/apt-7.5.22/renovate.json delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/01proxy.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/10dpkg-options.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/10recommends.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/20auto-upgrades.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/50unattended-upgrades.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/acng.conf.erb delete mode 100644 cookbooks/third-party/apt-7.5.22/templates/unattended-upgrades.seed.erb diff --git a/Berksfile b/Berksfile index a373f91b21..f2485819af 100644 --- a/Berksfile +++ b/Berksfile @@ -7,7 +7,6 @@ source chef_repo: "." metadata -cookbook "apt", path: "./cookbooks/third-party/apt-7.5.22" cookbook "iptables", path: "./cookbooks/third-party/iptables-8.0.0" cookbook "line", path: "./cookbooks/third-party/line-4.5.13" cookbook "nfs", path: "./cookbooks/third-party/nfs-5.1.2" diff --git a/cookbooks/aws-parallelcluster-awsbatch/Berksfile b/cookbooks/aws-parallelcluster-awsbatch/Berksfile index 79370fbe7b..0f61360649 100644 --- a/cookbooks/aws-parallelcluster-awsbatch/Berksfile +++ b/cookbooks/aws-parallelcluster-awsbatch/Berksfile @@ -12,7 +12,6 @@ cookbook "aws-parallelcluster-computefleet", path: "../aws-parallelcluster-compu cookbook "aws-parallelcluster-tests", path: "../aws-parallelcluster-tests" cookbook "aws-parallelcluster-slurm", path: "../aws-parallelcluster-slurm" -cookbook "apt", path: "../third-party/apt-7.5.22" cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" diff --git a/cookbooks/aws-parallelcluster-awsbatch/metadata.rb b/cookbooks/aws-parallelcluster-awsbatch/metadata.rb index 807ad77a63..9dbfb8b30e 100644 --- a/cookbooks/aws-parallelcluster-awsbatch/metadata.rb +++ b/cookbooks/aws-parallelcluster-awsbatch/metadata.rb @@ -9,7 +9,6 @@ chef_version '>= 18' version '3.13.0' -depends 'apt', '~> 7.5.22' depends 'iptables', '~> 8.0.0' depends 'nfs', '~> 5.1.2' depends 'line', '~> 4.5.13' diff --git a/cookbooks/aws-parallelcluster-entrypoints/Berksfile b/cookbooks/aws-parallelcluster-entrypoints/Berksfile index 0bb4edf7b3..1c27770355 100644 --- a/cookbooks/aws-parallelcluster-entrypoints/Berksfile +++ b/cookbooks/aws-parallelcluster-entrypoints/Berksfile @@ -9,7 +9,6 @@ cookbook "aws-parallelcluster-platform", path: "../aws-parallelcluster-platform" cookbook "aws-parallelcluster-shared", path: "../aws-parallelcluster-shared" cookbook "aws-parallelcluster-slurm", path: "../aws-parallelcluster-slurm" -cookbook "apt", path: "../third-party/apt-7.5.22" cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" diff --git a/cookbooks/aws-parallelcluster-slurm/Berksfile b/cookbooks/aws-parallelcluster-slurm/Berksfile index 830b32fff4..5b348d3f83 100644 --- a/cookbooks/aws-parallelcluster-slurm/Berksfile +++ b/cookbooks/aws-parallelcluster-slurm/Berksfile @@ -6,7 +6,6 @@ cookbook "aws-parallelcluster-computefleet", path: "../aws-parallelcluster-compu cookbook "aws-parallelcluster-environment", path: "../aws-parallelcluster-environment" cookbook "aws-parallelcluster-shared", path: "../aws-parallelcluster-shared" -cookbook "apt", path: "../third-party/apt-7.5.22" cookbook "iptables", path: "../third-party/iptables-8.0.0" cookbook "line", path: "../third-party/line-4.5.13" cookbook "nfs", path: "../third-party/nfs-5.1.2" diff --git a/cookbooks/aws-parallelcluster-slurm/metadata.rb b/cookbooks/aws-parallelcluster-slurm/metadata.rb index e5cee6172b..ce0040391b 100644 --- a/cookbooks/aws-parallelcluster-slurm/metadata.rb +++ b/cookbooks/aws-parallelcluster-slurm/metadata.rb @@ -9,7 +9,6 @@ chef_version '>= 18' version '3.13.0' -depends 'apt', '~> 7.5.22' depends 'iptables', '~> 8.0.0' depends 'line', '~> 4.5.13' depends 'nfs', '~> 5.1.2' diff --git a/cookbooks/third-party/apt-7.5.22/.markdownlint-cli2.yaml b/cookbooks/third-party/apt-7.5.22/.markdownlint-cli2.yaml deleted file mode 100644 index 6fa8e776d3..0000000000 --- a/cookbooks/third-party/apt-7.5.22/.markdownlint-cli2.yaml +++ /dev/null @@ -1,5 +0,0 @@ -config: - ul-indent: false # MD007 - line-length: false # MD013 - no-duplicate-heading: false # MD024 - reference-links-images: false # MD052 diff --git a/cookbooks/third-party/apt-7.5.22/CHANGELOG.md b/cookbooks/third-party/apt-7.5.22/CHANGELOG.md deleted file mode 100644 index fb71a01629..0000000000 --- a/cookbooks/third-party/apt-7.5.22/CHANGELOG.md +++ /dev/null @@ -1,468 +0,0 @@ -# apt Cookbook CHANGELOG - -This file is used to list changes made in each version of the apt cookbook. - -## 7.5.22 - *2024-05-02* - -## 7.5.21 - *2024-05-02* - -## 7.5.20 - *2024-05-01* - -- Fix dead link (that's not supposed to work!) - -## 7.5.19 - *2024-05-01* - -## 7.5.18 - *2024-05-01* - -## 7.5.17 - *2023-10-31* - -## 7.5.16 - *2023-09-28* - -## 7.5.15 - *2023-09-04* - -## 7.5.14 - *2023-07-10* - -## 7.5.13 - *2023-05-17* - -## 7.5.12 - *2023-05-03* - -## 7.5.11 - *2023-04-07* - -Standardise files with files in sous-chefs/repo-management - -## 7.5.10 - *2023-04-01* - -## 7.5.9 - *2023-04-01* - -## 7.5.8 - *2023-04-01* - -Standardise files with files in sous-chefs/repo-management - -## 7.5.7 - *2023-03-18* - -- Standardise files with files in sous-chefs/repo-management -- Various markdown fixes - -## 7.5.6 - *2023-03-15* - -- Standardise files with files in sous-chefs/repo-management - -## 7.5.5 - *2023-03-02* - -- Fix yaml - -## 7.5.4 - *2023-03-01* - -- Update workflows to 2.0.1 -- Remove mdl and replace with markdownlint-cli2 - -## 7.5.3 - *2023-02-20* - -- Standardise files with files in sous-chefs/repo-management - -## 7.5.2 - *2023-02-14* - -- Standardise files with files in sous-chefs/repo-management - -## 7.5.1 - *2023-02-14* - -- Remove CircleCI - -## 7.5.0 - *2022-12-29* - -- Update `50unattended-upgrades` to package defaults -- Add testing for Ubuntu 22.04 -- CI updates - -## 7.4.3 - *2022-12-05* - -- Standardise files with files in sous-chefs/repo-management - -## 7.4.2 - *2022-02-02* - -- Standardise files with files in sous-chefs/repo-management -- Remove delivery and move to calling RSpec directly via a reusable workflow -- Update tested platforms - -## 7.4.1 - *2021-08-30* - -- Standardise files with files in sous-chefs/repo-management - -## 7.4.0 - *2021-01-20* - -- Sous Chefs Adoption -- Cookstyle fixes -- Standardise files with files in sous-chefs/repo-management -- Update libraries/helpers.rb - -## 7.3.0 (2020-05-01) - -- Cookstyle fixes - [@tas50](https://github.com/tas50) -- Remove unnecessary Foodcritic comments - [@tas50](https://github.com/tas50) -- Simplify the metadata.rb to resolve cookstyle warnings - [@tas50](https://github.com/tas50) -- Prevent helper collisions in Chef Infra Client 16 - [@tas50](https://github.com/tas50) - -## 7.2.0 (2019-08-05) - -- Allow you to specify dpkg options just for unattended upgrades - [@majormoses](https://github.com/majormoses) -- Adding documentation and tests for setting dpkg options unattended upgrades - [@majormoses](https://github.com/majormoses) -- Test on Chef 15 + Chef Workstation - [@tas50](https://github.com/tas50) -- Remove tests of the resources now built into Chef - [@tas50](https://github.com/tas50) -- Remove respond_to from the metadata - [@tas50](https://github.com/tas50) -- Remove the recipe description from the metadata as these aren't used - [@tas50](https://github.com/tas50) -- Replace Chef 12 testing with 13.3 - [@tas50](https://github.com/tas50) -- Remove Ubuntu 14.04 / Debian 8 testing and add Debian 10 testing - [@tas50](https://github.com/tas50) - -## 7.1.1 (2018-10-11) - -- Allow to customize sender email for unattended-upgrades - -## 7.1.0 (2018-09-05) - -- Add the installation of dirmngr and gnupg to the apt default cookbook to support secure repositories -- Added support for the unattended-upgrade SyslogEnable configuration feature -- Added support for the unattended-upgrade SyslogFacility configuration feature - -## 7.0.0 (2018-04-06) - -### Breaking Change - -- This cookbook no longer includes apt_preference as that resource was moved into Chef Client 13.3. The cookbook now also requires Chef 13.3 or later. If you require support for an older release of Chef you will need to pin to a 6.X release. - -## 6.1.4 (2017-08-31) - -- Restores ignore_failure true on compile time update. -- name_property vs name_attribute in the resource - -## 6.1.3 (2017-07-19) - -- Fixed typo in readme -- Fixed config namespace in the 10dpkg-options file - -## 6.1.2 (2017-06-20) - -- restore backwards compatability by respecting `node['apt']['periodic_update_min_delay']` - -## 6.1.1 (2017-06-20) - -- Remove action_class.class_eval usage that caused failures -- Remove wrong warning logs generated by apt_preference -- Fix wrong warning log in cacher-client recipe - -## 6.1.0 (2017-04-11) - -- Test with local delivery and not Rake -- Use proper value type for bsd-mailx package only_if/not_if block -- Update apache2 license string -- Convert apt_preference to a custom resource - -## 6.0.1 (2017-02-27) - -- Update cookbook description -- Testing updates for Chef 13 and fixes to the cacher recipe - -## 6.0.0 (2017-02-08) - -### Breaking changes - -- apt_update and apt_repository resources have been removed from the cookbook. These resources were both added to the chef-client itself. Due to this we now require Chef 12.9 or later, which has both of these resources built in. If you require compatibility with older chef-client releases you will need to pin to the 5.X release. - -### Other changes - -- apt_preference resource now properly required a pin_priority, which prevents us from writing out bad preference files that must be manually removed - -## 5.1.0 (2017-02-01) - -- Convert integration tests to inspec -- Add management of the /etc/apt/apt.conf.d/10dpkg-options file with new attributes. This allows tuning of how dpkg will handle package prompts during package installation. Note that Chef 12.19+ will automatically suppress package prompts - -## 5.0.1 (2016-12-22) - -- Avoid CHEF-3694 in apt_preferences resource -- Cookstyle fixes - -## 5.0.0 (2016-10-14) - -- Remove search logic from the cacher client cookbook and rework attribute structure. See the attributes file and readme for new structure. Determining what servers to cache against is better handled in a wrapper cookbook where you can define the exact search syntax yourself -- Corrected readme examples for the cacher client setup -- Depend on the latest compat_resource -- Define matchers for ChefSpec -- Testing updates to better test the various recipes and providers in the cookbook on Travis - -## 4.0.2 (2016-08-13) - -- The cookbook requires Chef 12.1+ not 12.0\. Update docs -- Test on Chef 12.1 to ensure compatibility -- Restore compatibility with Chef < 12.4 - -## 4.0.1 (2016-06-21) - -- Fix bug that prevented adding the cookbook to non Debian/Ubuntu nodes without chef run failures - -## 4.0.0 (2016-06-02) - -This cookbook now requires Chef 12\. If you require Chef 11 compatibility you will need to pin to the 3.X cookbook version - -- The apt-get update logic in the default recipe has been converted to apt_update custom resource and compat_resource cookbook has been added for backwards compatibility with all Chef 12.X releases. In addition this resource is now included in core chef-client and the cookbook will use the built-in resource if available -- Added support for the unattended-upgrade RandomSleep configuration feature -- Added support for the unattended-upgrade Unattended-Upgrade::Origins-Pattern configuration feature -- Added Chefspec matchers for apt_update -- Fixed apt_repository documentation to correctly reflect the deb_src property - -## 3.0.0 (2016-03-01) - -- Removed Chef 10 compatibility code. This cookbook requires Chef 11 or greater now -- The default recipe will no longer create /etc/apt/ and other directories on non-Debian based systems -- Updated the autoremove command in the default recipe to run in non-interactive mode -- Added CentOS 7 to Test Kitchenwith tests to ensure we don't create any files on RHEL or other non-Debian hosts -- Updated Chefspec to 4.X format -- Properly mock the existence of apt for the Chefspec runs so they don't just skip over the resources -- Fixed lwrp test kitchen tests to pass -- Resolved or disabled all Rubocop warnings -- Enabled testing in Travis CI -- Removed Apt Cacher NG support for Ubuntu 10.04 and Debian 6.X as they are both deprecated -- Fixed + signs in packages names with the preference LWRP being rejected - -## v2.9.2 - -- #168 Adding guard to package resource - -## v2.9.1 - -- Adding package apt-transport-https to default.rb - -## v2.9.0 - -- Add `sensitive` flag for apt_repositories -- Enable installation of recommended or suggested packages -- Tidy up `apt-get update` logic -- Fixing not_if guard on ruby_block[validate-key #{key}] - -## v2.8.2 (2015-08-24) - -- Fix removal of apt_preferences - -## v2.8.1 (2015-08-18) - -- Handle keyservers as URLs and bare hostnames - -## v2.8.0 (2015-08-18) - -- Access keyservers on port 80 -- Adds key_proxy as LWRP attribute for apt_repository -- Fix wildcard glob preferences files -- Fix text output verification for non en_US locales -- Quote repo URLs to deal with spaces - -## v2.7.0 (2015-03-23) - -- Support Debian 8.0 -- Filename verification for LWRPs -- Support SSL enabled apt repositories - -## v2.6.1 (2014-12-29) - -- Remove old preference files without .pref extension from previous versions - -## v2.6.0 (2014-09-09) - -- Always update on first run - check -- Adding ppa support for apt_repository - -## v2.5.3 (2014-08-14) - -- #87 - Improve default settings, account for non-linux platforms - -## v2.5.2 (2014-08-14) - -- Fully restore 2.3.10 behaviour - -## v2.5.1 (2014-08-14) - -- fix breakage introduced in apt 2.5.0 - -## v2.5.0 (2014-08-12) - -- Add unattended-upgrades recipe -- Only update the cache for the created repository -- Added ChefSpec matchers and default_action for resources -- Avoid cloning resource attributes -- Minor documentation updates - -## v2.4.0 (2014-05-15) - -- [COOK-4534]: Add option to update apt cache at compile time - -## v2.3.10 (2014-04-23) - -- [COOK-4512] Bugfix: Use empty PATH if PATH is nil - -## v2.3.8 (2014-02-14) - -### Bug - -- [COOK-4287] - Cleanup the Kitchen - -## v2.3.6 - -- [COOK-4154] - Add chefspec matchers.rb file to apt cookbook -- [COOK-4102] - Only index created repository - -## v2.3.6 - -- [COOK-4154] - Add chefspec matchers.rb file to apt cookbook -- [COOK-4102] - Only index created repository - -## v2.3.4 - -No change. Version bump for toolchain sanity - -## v2.3.2 - -- [COOK-3905] apt-get-update-periodic: configuration for the update period -- Updating style for rubocops -- Updating test-kitchen harness - -## v2.3.0 - -### Bug - -- [COOK-3812] - Add a way to bypass the apt existence check - -### Improvement - -- [COOK-3567] - Allow users to bypass apt-cache via attributes - -## v2.2.1 - -### Improvement - -- [COOK-664] - Check platform before running apt-specific commands - -## v2.2.0 - -### Bug - -- [COOK-3707] - multiple nics confuse apt::cacher-client - -## v2.1.2 - -### Improvement - -- [COOK-3551] - Allow user to set up a trusted APT repository - -## v2.1.1 - -### Bug - -- [COOK-1856] - Match GPG keys without case sensitivity - -## v2.1.0 - -- [COOK-3426]: cacher-ng fails with restrict_environment set to true -- [COOK-2859]: cacher-client executes out of order -- [COOK-3052]: Long GPG keys are downloaded on every run -- [COOK-1856]: apt cookbook should match keys without case sensitivity -- [COOK-3255]: Attribute name incorrect in README -- [COOK-3225]: Call use_inline_resources only if defined -- [COOK-3386]: Cache dir for apt-cacher-ng -- [COOK-3291]: apt_repository: enable usage of a keyserver on port 80 -- Greatly expanded test coverage with ChefSpec and Test-Kitchen - -## v2.0.0 - -### Bug - -- [COOK-2258]: apt: LWRP results in error under why-run mode in apt 1.9.0 cookbook - -## v1.10.0 - -### Improvement - -- [COOK-2885]: Improvements for apt cache server search - -### Bug - -- [COOK-2441]: Apt recipe broken in new chef version -- [COOK-2660]: Create Debian 6.0 "squeeze" specific template for -- apt-cacher-ng - -## v1.9.2 - -- [COOK-2631] - Create Ubuntu 10.04 specific template for apt-cacher-ng - -## v1.9.0 - -- [COOK-2185] - Proxy for apt-key -- [COOK-2338] - Support pinning by glob() or regexp - -## v1.8.4 - -- [COOK-2171] - Update README to clarify required Chef version: 10.18.0 -- or higher. - -## v1.8.2 - -- [COOK-2112] - need [] around "arch" in sources.list entries -- [COOK-2171] - fixes a regression in the notification - -## v1.8.0 - -- [COOK-2143] - Allow for a custom cacher-ng port -- [COOK-2171] - On `apt_repository.run_action(:add)` the source file -- is not created. -- [COOK-2184] - apt::cacher-ng, use `cacher_port` attribute in -- acng.conf - -## v1.7.0 - -- [COOK-2082] - add "arch" parameter to apt_repository LWRP - -## v1.6.0 - -- [COOK-1893] - `apt_preference` use "`package_name`" resource instead of "name" -- [COOK-1894] - change filename for sources.list.d files -- [COOK-1914] - Wrong dir permissions for /etc/apt/preferences.d/ -- [COOK-1942] - README.md has wrong name for the keyserver attribute -- [COOK-2019] - create 01proxy before any other apt-get updates get executed - -## v1.5.2 - -- [COOK-1682] - use template instead of file resource in apt::cacher-client -- [COOK-1875] - cacher-client should be Environment-aware - -## V1.5.0 - -- [COOK-1500] - Avoid triggering apt-get update -- [COOK-1548] - Add execute commands for autoclean and autoremove -- [COOK-1591] - Setting up the apt proxy should leave https -- connections direct -- [COOK-1596] - execute[apt-get-update-periodic] never runs -- [COOK-1762] - create /etc/apt/preferences.d directory -- [COOK-1776] - apt key check isn't idempotent - -## v1.4.8 - -- Adds test-kitchen support -- [COOK-1435] - repository lwrp is not idempotent with http key - -## v1.4.6 - -- [COOK-1530] - apt_repository isn't aware of update-success-stamp -- file (also reverts COOK-1382 patch). - -## v1.4.4 - -- [COOK-1229] - Allow cacher IP to be set manually in non-Chef Solo -- environments -- [COOK-1530] - Immediately update apt-cache when sources.list file is dropped off - -## v1.4.2 - -- [COOK-1155] - LWRP for apt pinning - -## v1.4.0 - -- [COOK-889] - overwrite existing repo source files -- [COOK-921] - optionally use cookbook_file or remote_file for key -- [COOK-1032] - fixes problem with apt repository key installation diff --git a/cookbooks/third-party/apt-7.5.22/LICENSE b/cookbooks/third-party/apt-7.5.22/LICENSE deleted file mode 100644 index 8f71f43fee..0000000000 --- a/cookbooks/third-party/apt-7.5.22/LICENSE +++ /dev/null @@ -1,202 +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. - diff --git a/cookbooks/third-party/apt-7.5.22/README.md b/cookbooks/third-party/apt-7.5.22/README.md deleted file mode 100644 index f30360c5f2..0000000000 --- a/cookbooks/third-party/apt-7.5.22/README.md +++ /dev/null @@ -1,223 +0,0 @@ -# apt Cookbook - -[![Cookbook Version](https://img.shields.io/cookbook/v/apt.svg)](https://supermarket.chef.io/cookbooks/apt) -[![CI State](https://github.com/sous-chefs/apt/workflows/ci/badge.svg)](https://github.com/sous-chefs/apt/actions?query=workflow%3Aci) -[![OpenCollective](https://opencollective.com/sous-chefs/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/sous-chefs/sponsors/badge.svg)](#sponsors) -[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0) - -This cookbook includes recipes to execute apt-get update to ensure the local APT package cache is up to date. There are recipes for managing the apt-cacher-ng caching proxy and proxy clients. It also includes a custom resource for pinning packages via /etc/apt/preferences.d. - -## 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](https://sous-chefs.org/) or come chat with us on the Chef Community Slack in [#sous-chefs](https://chefcommunity.slack.com/messages/C2V7B88SF). - -## Requirements - -### Platforms - -- Ubuntu 12.04+ -- Debian 7+ - -May work with or without modification on other Debian derivatives. - -### Chef - -- Chef 13.3+ - -### Cookbooks - -- None - -## Recipes - -### default - -This recipe manually updates the timestamp file used to only run `apt-get update` if the cache is more than one day old. - -This recipe should appear first in the run list of Debian or Ubuntu nodes to ensure that the package cache is up to date before managing any `package` resources with Chef. - -This recipe also sets up a local cache directory for preseeding packages. - -**Including the default recipe on a node that does not support apt (such as Windows or RHEL) results in a noop.** - -### cacher-client - -Configures the node to use a `apt-cacher-ng` server to cache apt requests. Configuration of the server to use is located in `default['apt']['cacher_client']['cacher_server']` which is a hash containing `host`, `port`, `proxy_ssl`, and `bypass` keys. Example: - -```json -{ - "apt": { - "cacher_client": { - "cacher_server": { - "host": "cache_server.mycorp.dmz", - "port": 1234, - "proxy_ssl": true, - "cache_bypass": { - "download.oracle.com": "http" - } - } - } - } -} -``` - -#### Bypassing the cache - -Occasionally you may come across repositories that do not play nicely when the node is using an `apt-cacher-ng` server. You can configure `cacher-client` to bypass the server and connect directly to the repository with the `cache_bypass` attribute. - -To do this, you need to override the `cache_bypass` attribute with an hash of repositories, with each key as the repository URL and value as the protocol to use: - -```json -{ - "apt": { - "cacher_client": { - "cacher_server": { - "cache_bypass": { - "URL": "PROTOCOL" - } - } - } - } -} -``` - -For example, to prevent caching and directly connect to the repository at `download.oracle.com` via http and the repo at `nginx.org` via https - -```json -{ - "apt": { - "cacher_client": { - "cacher_server": { - "cache_bypass": { - "download.oracle.com": "http", - "nginx.org": "https" - } - } - } - } -} -``` - -### cacher-ng - -Installs the `apt-cacher-ng` package and service so the system can provide APT caching. You can check the usage report at `http://{hostname}:3142/acng-report.html`. - -If you wish to help the `cacher-ng` recipe seed itself, you must now explicitly include the `cacher-client` recipe in your run list **after** `cacher-ng` or you will block your ability to install any packages (ie. `apt-cacher-ng`). - -### unattended-upgrades - -Installs and configures the `unattended-upgrades` package to provide automatic package updates. This can be configured to upgrade all packages or to just install security updates by setting `['apt']['unattended_upgrades']['allowed_origins']`. - -To pull just security updates, set `origins_patterns` to something like `["origin=Ubuntu,archive=trusty-security"]` (for Ubuntu trusty) or `["origin=Debian,label=Debian-Security"]` (for Debian). - -## Attributes - -### General - -- `['apt']['compile_time_update']` - force the default recipe to run `apt-get update` at compile time. -- `['apt']['periodic_update_min_delay']` - minimum delay (in seconds) between two actual executions of `apt-get update` by the `execute[apt-get-update-periodic]` resource, default is '86400' (24 hours) - -### Caching - -- `['apt']['cacher_client']['cacher_server']` - Hash containing server information used by clients for caching. See the example in the recipes section above for the full format of the hash. -- `['apt']['cacher_interface']` - interface to connect to the cacher-ng service, no default. -- `['apt']['cacher_port']` - port for the cacher-ng service (used by server recipe only), default is '3142' -- `['apt']['cacher_dir']` - directory used by cacher-ng service, default is '/var/cache/apt-cacher-ng' -- `['apt']['compiletime']` - force the `cacher-client` recipe to run before other recipes. It forces apt to use the proxy before other recipes run. Useful if your nodes have limited access to public apt repositories. This is overridden if the `cacher-ng` recipe is in your run list. Default is 'false' - -### Unattended Upgrades - -- `['apt']['unattended_upgrades']['enable']` - enables unattended upgrades, default is false -- `['apt']['unattended_upgrades']['update_package_lists']` - automatically update package list (`apt-get update`) daily, default is true -- `['apt']['unattended_upgrades']['allowed_origins']` - array of allowed apt origins from which to pull automatic upgrades, defaults to a guess at the system's main origin and should almost always be overridden -- `['apt']['unattended_upgrades']['origins_patterns']` - array of allowed apt origin patterns from which to pull automatic upgrades, defaults to none. -- `['apt']['unattended_upgrades']['package_blacklist']` - an array of package which should never be automatically upgraded, defaults to none -- `['apt']['unattended_upgrades']['auto_fix_interrupted_dpkg']` - attempts to repair dpkg state with `dpkg --force-confold --configure -a` if it exits uncleanly, defaults to false (contrary to the unattended-upgrades default) -- `['apt']['unattended_upgrades']['minimal_steps']` - Split the upgrade into the smallest possible chunks. This makes the upgrade a bit slower but it has the benefit that shutdown while a upgrade is running is possible (with a small delay). Defaults to false. -- `['apt']['unattended_upgrades']['install_on_shutdown']` - Install upgrades when the machine is shuting down instead of doing it in the background while the machine is running. This will (obviously) make shutdown slower. Defaults to false. -- `['apt']['unattended_upgrades']['mail']` - Send email to this address for problems or packages upgrades. Defaults to no email. -- `['apt']['unattended_upgrades']['sender']` - Send email from this address for problems or packages upgrades. Defaults to 'root'. -- `['apt']['unattended_upgrades']['mail_only_on_error']` - If set, email will only be set on upgrade errors. Otherwise, an email will be sent after each upgrade. Defaults to true. -- `['apt']['unattended_upgrades']['remove_unused_dependencies']` Do automatic removal of new unused dependencies after the upgrade. Defaults to false. -- `['apt']['unattended_upgrades']['automatic_reboot']` - Automatically reboots _without confirmation_ if a restart is required after the upgrade. Defaults to false. -- `['apt']['unattended_upgrades']['dl_limit']` - Limits the bandwidth used by apt to download packages. Value given as an integer in kb/sec. Defaults to nil (no limit). -- `['apt']['unattended_upgrades']['random_sleep']` - Wait a random number of seconds up to this value before running daily periodic apt actions. System default is 1800 seconds (30 minutes). -- `['apt']['unattended_upgrades']['syslog_enable']` - Enable logging to syslog. Defaults to false. -- `['apt']['unattended_upgrades']['syslog_facility']` - Specify syslog facility. Defaults to 'daemon'. -- `['apt']['unattended_upgrades']['dpkg_options']` An array of dpkg options to be used specifically only for unattended upgrades. Defaults to `[]` which will prevent it from being rendered from the template in the resulting file. - -### Configuration for APT - -- `['apt']['confd']['force_confask']` - Prompt when overwriting configuration files. (default: false) -- `['apt']['confd']['force_confdef']` - Don't prompt when overwriting configuration files. (default: false) -- `['apt']['confd']['force_confmiss']` - Install removed configuration files when upgrading packages. (default: false) -- `['apt']['confd']['force_confnew']` - Overwrite configuration files when installing packages. (default: false) -- `['apt']['confd']['force_confold']` - Keep modified configuration files when installing packages. (default: false) -- `['apt']['confd']['install_recommends']` - Consider recommended packages as a dependency for installing. (default: true) -- `['apt']['confd']['install_suggests']` - Consider suggested packages as a dependency for installing. (default: false) - -## Libraries - -There is an `interface_ipaddress` method that returns the IP address for a particular host and interface, used by the `cacher-client` recipe. To enable it on the server use the `['apt']['cacher_interface']` attribute. - -## Usage - -Put `recipe[apt]` first in the run list. If you have other recipes that you want to use to configure how apt behaves, like new sources, notify the execute resource to run, e.g.: - -```ruby -template '/etc/apt/sources.list.d/my_apt_sources.list' do - notifies :run, 'execute[apt-get update]', :immediately -end -``` - -The above will run during execution phase since it is a normal template resource, and should appear before other package resources that need the sources in the template. - -Put `recipe[apt::cacher-ng]` in the run_list for a server to provide APT caching and add `recipe[apt::cacher-client]` on the rest of the Debian-based nodes to take advantage of the caching server. - -If you want to cleanup unused packages, there is also the `apt-get autoclean` and `apt-get autoremove` resources provided for automated cleanup. - -## Resources - -### apt_preference - -The apt_preference resource has been moved into chef-client in Chef 13.3. - -See for usage details - -### apt_repository - -The apt_repository resource has been moved into chef-client in Chef 12.9. - -See for usage details - -### apt_update - -The apt_update resource has been moved into chef-client in Chef 12.7. - -See for usage details - -## Contributors - -This project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890&button=false) - -### Backers - -Thank you to all our backers! - -![https://opencollective.com/sous-chefs#backers](https://opencollective.com/sous-chefs/backers.svg?width=600&avatarHeight=40) - -### Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. - -![https://opencollective.com/sous-chefs/sponsor/0/website](https://opencollective.com/sous-chefs/sponsor/0/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/1/website](https://opencollective.com/sous-chefs/sponsor/1/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/2/website](https://opencollective.com/sous-chefs/sponsor/2/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/3/website](https://opencollective.com/sous-chefs/sponsor/3/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/4/website](https://opencollective.com/sous-chefs/sponsor/4/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/5/website](https://opencollective.com/sous-chefs/sponsor/5/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/6/website](https://opencollective.com/sous-chefs/sponsor/6/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/7/website](https://opencollective.com/sous-chefs/sponsor/7/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/8/website](https://opencollective.com/sous-chefs/sponsor/8/avatar.svg?avatarHeight=100) -![https://opencollective.com/sous-chefs/sponsor/9/website](https://opencollective.com/sous-chefs/sponsor/9/avatar.svg?avatarHeight=100) diff --git a/cookbooks/third-party/apt-7.5.22/attributes/default.rb b/cookbooks/third-party/apt-7.5.22/attributes/default.rb deleted file mode 100644 index 102f4e51a6..0000000000 --- a/cookbooks/third-party/apt-7.5.22/attributes/default.rb +++ /dev/null @@ -1,62 +0,0 @@ -# -# Cookbook:: apt -# Attributes:: default -# -# Copyright:: 2009-2019, 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. -# - -default['apt']['cacher_dir'] = '/var/cache/apt-cacher-ng' -default['apt']['cacher_interface'] = nil -default['apt']['cacher_port'] = 3142 -default['apt']['compiletime'] = false -default['apt']['compile_time_update'] = false -default['apt']['key_proxy'] = '' -default['apt']['periodic_update_min_delay'] = 86_400 -default['apt']['launchpad_api_version'] = '1.0' -default['apt']['unattended_upgrades']['enable'] = false -default['apt']['unattended_upgrades']['update_package_lists'] = true -# this needs a good default -codename = node.attribute?('lsb') ? node['lsb']['codename'] : 'notlinux' -default['apt']['unattended_upgrades']['allowed_origins'] = [ - "#{node['platform'].capitalize} #{codename}", -] - -default['apt']['cacher_client']['cacher_server'] = {} - -default['apt']['unattended_upgrades']['origins_patterns'] = [] -default['apt']['unattended_upgrades']['package_blacklist'] = [] -default['apt']['unattended_upgrades']['auto_fix_interrupted_dpkg'] = false -default['apt']['unattended_upgrades']['minimal_steps'] = false -default['apt']['unattended_upgrades']['install_on_shutdown'] = false -default['apt']['unattended_upgrades']['mail'] = nil -default['apt']['unattended_upgrades']['sender'] = nil -default['apt']['unattended_upgrades']['mail_only_on_error'] = true -default['apt']['unattended_upgrades']['remove_unused_dependencies'] = false -default['apt']['unattended_upgrades']['automatic_reboot'] = false -default['apt']['unattended_upgrades']['automatic_reboot_time'] = 'now' -default['apt']['unattended_upgrades']['dl_limit'] = nil -default['apt']['unattended_upgrades']['random_sleep'] = nil -default['apt']['unattended_upgrades']['syslog_enable'] = false -default['apt']['unattended_upgrades']['syslog_facility'] = 'daemon' - -default['apt']['unattended_upgrades']['dpkg_options'] = [] - -default['apt']['confd']['force_confask'] = false -default['apt']['confd']['force_confdef'] = false -default['apt']['confd']['force_confmiss'] = false -default['apt']['confd']['force_confnew'] = false -default['apt']['confd']['force_confold'] = false -default['apt']['confd']['install_recommends'] = true -default['apt']['confd']['install_suggests'] = false diff --git a/cookbooks/third-party/apt-7.5.22/chefignore b/cookbooks/third-party/apt-7.5.22/chefignore deleted file mode 100644 index a27b0b258c..0000000000 --- a/cookbooks/third-party/apt-7.5.22/chefignore +++ /dev/null @@ -1,115 +0,0 @@ -# Put files/directories that should be ignored in this file when uploading -# to a Chef Infra Server or Supermarket. -# Lines that start with '# ' are comments. - -# OS generated files # -###################### -.DS_Store -ehthumbs.db -Icon? -nohup.out -Thumbs.db -.envrc - -# EDITORS # -########### -.#* -.project -.settings -*_flymake -*_flymake.* -*.bak -*.sw[a-z] -*.tmproj -*~ -\#* -REVISION -TAGS* -tmtags -.vscode -.editorconfig - -## COMPILED ## -############## -*.class -*.com -*.dll -*.exe -*.o -*.pyc -*.so -*/rdoc/ -a.out -mkmf.log - -# Testing # -########### -.circleci/* -.codeclimate.yml -.delivery/* -.foodcritic -.kitchen* -.mdlrc -.overcommit.yml -.rspec -.rubocop.yml -.travis.yml -.watchr -.yamllint -azure-pipelines.yml -Dangerfile -examples/* -features/* -Guardfile -kitchen*.yml -mlc_config.json -Procfile -Rakefile -spec/* -test/* - -# SCM # -####### -.git -.gitattributes -.gitconfig -.github/* -.gitignore -.gitkeep -.gitmodules -.svn -*/.bzr/* -*/.git -*/.hg/* -*/.svn/* - -# Berkshelf # -############# -Berksfile -Berksfile.lock -cookbooks/* -tmp - -# Bundler # -########### -vendor/* -Gemfile -Gemfile.lock - -# Policyfile # -############## -Policyfile.rb -Policyfile.lock.json - -# Documentation # -############# -CODE_OF_CONDUCT* -CONTRIBUTING* -documentation/* -TESTING* -UPGRADING* - -# Vagrant # -########### -.vagrant -Vagrantfile diff --git a/cookbooks/third-party/apt-7.5.22/files/15update-stamp b/cookbooks/third-party/apt-7.5.22/files/15update-stamp deleted file mode 100644 index 14ead83763..0000000000 --- a/cookbooks/third-party/apt-7.5.22/files/15update-stamp +++ /dev/null @@ -1 +0,0 @@ -APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; diff --git a/cookbooks/third-party/apt-7.5.22/files/apt-proxy-v2.conf b/cookbooks/third-party/apt-7.5.22/files/apt-proxy-v2.conf deleted file mode 100644 index 69540047d1..0000000000 --- a/cookbooks/third-party/apt-7.5.22/files/apt-proxy-v2.conf +++ /dev/null @@ -1,50 +0,0 @@ -[DEFAULT] -;; All times are in seconds, but you can add a suffix -;; for minutes(m), hours(h) or days(d) - -;; commented out address so apt-proxy will listen on all IPs -;; address = 127.0.0.1 -port = 9999 -cache_dir = /var/cache/apt-proxy - -;; Control files (Packages/Sources/Contents) refresh rate -min_refresh_delay = 1s -complete_clientless_downloads = 1 - -;; Debugging settings. -debug = all:4 db:0 - -time = 30 -passive_ftp = on - -;;-------------------------------------------------------------- -;; Cache housekeeping - -cleanup_freq = 1d -max_age = 120d -max_versions = 3 - -;;--------------------------------------------------------------- -;; Backend servers -;; -;; Place each server in its own [section] - -[ubuntu] -; Ubuntu archive -backends = - http://us.archive.ubuntu.com/ubuntu - -[ubuntu-security] -; Ubuntu security updates -backends = http://security.ubuntu.com/ubuntu - -[debian] -;; Backend servers, in order of preference -backends = - http://debian.osuosl.org/debian/ - -[security] -;; Debian security archive -backends = - http://security.debian.org/debian-security - http://ftp2.de.debian.org/debian-security diff --git a/cookbooks/third-party/apt-7.5.22/libraries/helpers.rb b/cookbooks/third-party/apt-7.5.22/libraries/helpers.rb deleted file mode 100644 index c8fc0249a1..0000000000 --- a/cookbooks/third-party/apt-7.5.22/libraries/helpers.rb +++ /dev/null @@ -1,48 +0,0 @@ -# -# Cookbook:: apt -# Library:: helpers -# -# Copyright:: 2013-2019, 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. -# - -module Apt - # Helpers for apt - module Helpers - # Determines if apt is installed on a system. - # - # @return [Boolean] - def apt_installed? - !apt_which('apt-get').nil? - end - - # Finds a command in $PATH - # - # @return [String, nil] - def apt_which(cmd) - ENV['PATH'] = '' if ENV['PATH'].nil? - paths = (ENV['PATH'].split(::File::PATH_SEPARATOR) + %w(/bin /usr/bin /sbin /usr/sbin)) - - paths.each do |path| - possible = File.join(path, cmd) - return possible if File.executable?(possible) - end - - nil - end - end -end - -Chef::DSL::Recipe.include ::Apt::Helpers -Chef::Resource.include ::Apt::Helpers diff --git a/cookbooks/third-party/apt-7.5.22/metadata.json b/cookbooks/third-party/apt-7.5.22/metadata.json deleted file mode 100644 index c8be6268f4..0000000000 --- a/cookbooks/third-party/apt-7.5.22/metadata.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "apt", - "description": "Configures apt and apt caching.", - "long_description": "", - "maintainer": "Sous Chefs", - "maintainer_email": "help@sous-chefs.org", - "license": "Apache-2.0", - "platforms": { - "debian": ">= 0.0.0", - "ubuntu": ">= 0.0.0" - }, - "dependencies": { - - }, - "providing": { - - }, - "recipes": { - - }, - "version": "7.5.22", - "source_url": "https://github.com/sous-chefs/apt", - "issues_url": "https://github.com/sous-chefs/apt/issues", - "privacy": false, - "chef_versions": [ - [ - ">= 13.3" - ] - ], - "ohai_versions": [ - - ], - "gems": [ - - ], - "eager_load_libraries": true -} diff --git a/cookbooks/third-party/apt-7.5.22/metadata.rb b/cookbooks/third-party/apt-7.5.22/metadata.rb deleted file mode 100644 index 9beec16bc1..0000000000 --- a/cookbooks/third-party/apt-7.5.22/metadata.rb +++ /dev/null @@ -1,12 +0,0 @@ -name 'apt' -maintainer 'Sous Chefs' -maintainer_email 'help@sous-chefs.org' -license 'Apache-2.0' -description 'Configures apt and apt caching.' -version '7.5.22' -source_url 'https://github.com/sous-chefs/apt' -issues_url 'https://github.com/sous-chefs/apt/issues' -chef_version '>= 13.3' - -supports 'debian' -supports 'ubuntu' diff --git a/cookbooks/third-party/apt-7.5.22/recipes/cacher-client.rb b/cookbooks/third-party/apt-7.5.22/recipes/cacher-client.rb deleted file mode 100644 index dafa876db9..0000000000 --- a/cookbooks/third-party/apt-7.5.22/recipes/cacher-client.rb +++ /dev/null @@ -1,52 +0,0 @@ -# -# Cookbook:: apt -# Recipe:: cacher-client -# -# Copyright:: 2011-2019, 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. -# - -# remove Acquire::http::Proxy lines from /etc/apt/apt.conf since we use 01proxy -# these are leftover from preseed installs -execute 'Remove proxy from /etc/apt/apt.conf' do - command "sed --in-place '/^Acquire::http::Proxy/d' /etc/apt/apt.conf" - only_if 'grep Acquire::http::Proxy /etc/apt/apt.conf' -end - -if node['apt']['cacher_client']['cacher_server'].empty? - Chef::Log.warn("No cache server defined in node['apt']['cacher_client']['cacher_server']. Not setting up caching") - f = file '/etc/apt/apt.conf.d/01proxy' do - action(node['apt']['compiletime'] ? :nothing : :delete) - end - f.run_action(:delete) if node['apt']['compiletime'] -else - apt_update 'update for notification' do - action :nothing - end - - t = template '/etc/apt/apt.conf.d/01proxy' do - source '01proxy.erb' - owner 'root' - group 'root' - mode '0644' - variables( - server: node['apt']['cacher_client']['cacher_server'] - ) - action(node['apt']['compiletime'] ? :nothing : :create) - notifies :update, 'apt_update[update for notification]', :immediately - end - t.run_action(:create) if node['apt']['compiletime'] -end - -include_recipe 'apt::default' # rubocop: disable ChefModernize/IncludingAptDefaultRecipe diff --git a/cookbooks/third-party/apt-7.5.22/recipes/cacher-ng.rb b/cookbooks/third-party/apt-7.5.22/recipes/cacher-ng.rb deleted file mode 100644 index 81edb50c58..0000000000 --- a/cookbooks/third-party/apt-7.5.22/recipes/cacher-ng.rb +++ /dev/null @@ -1,39 +0,0 @@ -# -# Cookbook:: apt -# Recipe:: cacher-ng -# -# Copyright:: 2008-2019, 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. -# - -package 'apt-cacher-ng' - -directory node['apt']['cacher_dir'] do - owner 'apt-cacher-ng' - group 'apt-cacher-ng' - mode '0755' -end - -template '/etc/apt-cacher-ng/acng.conf' do - source 'acng.conf.erb' - owner 'root' - group 'root' - mode '0644' - notifies :restart, 'service[apt-cacher-ng]', :immediately -end - -service 'apt-cacher-ng' do - supports restart: true, status: false - action [:enable, :start] -end diff --git a/cookbooks/third-party/apt-7.5.22/recipes/default.rb b/cookbooks/third-party/apt-7.5.22/recipes/default.rb deleted file mode 100644 index 42ff17a69f..0000000000 --- a/cookbooks/third-party/apt-7.5.22/recipes/default.rb +++ /dev/null @@ -1,97 +0,0 @@ -# -# Cookbook:: apt -# Recipe:: default -# -# Copyright:: 2008-2019, Chef Software, Inc. -# Copyright:: 2009-2019, Bryan McLellan -# -# 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. -# - -# On systems where apt is not installed, the resources in this recipe are not -# executed. However, they _must_ still be present in the resource collection -# or other cookbooks which notify these resources will fail on non-apt-enabled -# systems. - -file '/var/lib/apt/periodic/update-success-stamp' do - owner 'root' - group 'root' - action :nothing -end - -# If compile_time_update run apt-get update at compile time -if node['apt']['compile_time_update'] && apt_installed? - apt_update('compile time') do - frequency node['apt']['periodic_update_min_delay'] - ignore_failure true - end.run_action(:periodic) -end - -apt_update 'periodic' do - frequency node['apt']['periodic_update_min_delay'] -end - -# For other recipes to call to force an update -execute 'apt-get update' do # rubocop: disable ChefModernize/ExecuteAptUpdate - ignore_failure true - action :nothing - notifies :touch, 'file[/var/lib/apt/periodic/update-success-stamp]', :immediately - only_if { apt_installed? } -end - -# Automatically remove packages that are no longer needed for dependencies -execute 'apt-get autoremove' do - command 'apt-get -y autoremove' - environment( - 'DEBIAN_FRONTEND' => 'noninteractive' - ) - action :nothing - only_if { apt_installed? } -end - -# Automatically remove .deb files for packages no longer on your system -execute 'apt-get autoclean' do - command 'apt-get -y autoclean' - action :nothing - only_if { apt_installed? } -end - -%w(/var/cache/local /var/cache/local/preseeding).each do |dirname| - directory dirname do - owner 'root' - group 'root' - mode '0755' - action :create - only_if { apt_installed? } - end -end - -template '/etc/apt/apt.conf.d/10dpkg-options' do - owner 'root' - group 'root' - mode '0644' - source '10dpkg-options.erb' - only_if { apt_installed? } -end - -template '/etc/apt/apt.conf.d/10recommends' do - owner 'root' - group 'root' - mode '0644' - source '10recommends.erb' - only_if { apt_installed? } -end - -package %w(apt-transport-https gnupg dirmngr) do - only_if { apt_installed? } -end diff --git a/cookbooks/third-party/apt-7.5.22/recipes/unattended-upgrades.rb b/cookbooks/third-party/apt-7.5.22/recipes/unattended-upgrades.rb deleted file mode 100644 index f6c829c74d..0000000000 --- a/cookbooks/third-party/apt-7.5.22/recipes/unattended-upgrades.rb +++ /dev/null @@ -1,47 +0,0 @@ -# -# Cookbook:: apt -# Recipe:: unattended-upgrades -# -# Copyright:: 2014-2019, 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. -# - -# On systems where apt is not installed, the resources in this recipe are not -# executed. However, they _must_ still be present in the resource collection -# or other cookbooks which notify these resources will fail on non-apt-enabled -# systems. -# - -package 'unattended-upgrades' do - response_file 'unattended-upgrades.seed.erb' - action :install -end - -package 'bsd-mailx' do - not_if { node['apt']['unattended_upgrades']['mail'].nil? } -end - -template '/etc/apt/apt.conf.d/20auto-upgrades' do - owner 'root' - group 'root' - mode '0644' - source '20auto-upgrades.erb' -end - -template '/etc/apt/apt.conf.d/50unattended-upgrades' do - owner 'root' - group 'root' - mode '0644' - source '50unattended-upgrades.erb' -end diff --git a/cookbooks/third-party/apt-7.5.22/renovate.json b/cookbooks/third-party/apt-7.5.22/renovate.json deleted file mode 100644 index a0b29c85cf..0000000000 --- a/cookbooks/third-party/apt-7.5.22/renovate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base"], - "packageRules": [ - { - "groupName": "Actions", - "matchUpdateTypes": ["minor", "patch", "pin"], - "automerge": true, - "addLabels": ["Release: Patch", "Skip: Announcements"] - }, - { - "groupName": "Actions", - "matchUpdateTypes": ["major"], - "automerge": false, - "addLabels": ["Release: Patch", "Skip: Announcements"] - } - ] -} diff --git a/cookbooks/third-party/apt-7.5.22/templates/01proxy.erb b/cookbooks/third-party/apt-7.5.22/templates/01proxy.erb deleted file mode 100644 index 1ede9b3300..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/01proxy.erb +++ /dev/null @@ -1,11 +0,0 @@ -Acquire::http::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>"; -<% if @server['proxy_ssl'] %> -Acquire::https::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>"; -<% else %> -Acquire::https::Proxy "DIRECT"; -<% end %> -<% unless @server['cache_bypass'].nil? %> -<% @server['cache_bypass'].each do |bypass, type| %> -Acquire::<%= type %>::Proxy::<%= bypass %> "DIRECT"; -<% end %> -<% end %> diff --git a/cookbooks/third-party/apt-7.5.22/templates/10dpkg-options.erb b/cookbooks/third-party/apt-7.5.22/templates/10dpkg-options.erb deleted file mode 100644 index 3111026f98..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/10dpkg-options.erb +++ /dev/null @@ -1,8 +0,0 @@ -# Managed by Chef -DPkg::Options { -<%= node['apt']['confd']['force_confask'] ? '"--force-confask";' : '' -%> -<%= node['apt']['confd']['force_confdef'] ? '"--force-confdef";' : '' -%> -<%= node['apt']['confd']['force_confmiss'] ? '"--force-confmiss";' : '' -%> -<%= node['apt']['confd']['force_confnew'] ? '"--force-confnew";' : '' -%> -<%= node['apt']['confd']['force_confold'] ? '"--force-confold";' : '' -%> -} diff --git a/cookbooks/third-party/apt-7.5.22/templates/10recommends.erb b/cookbooks/third-party/apt-7.5.22/templates/10recommends.erb deleted file mode 100644 index 16b3664eec..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/10recommends.erb +++ /dev/null @@ -1,3 +0,0 @@ -# Managed by Chef -APT::Install-Recommends "<%= node['apt']['confd']['install_recommends'] ? 1 : 0 %>"; -APT::Install-Suggests "<%= node['apt']['confd']['install_suggests'] ? 1 : 0 %>"; diff --git a/cookbooks/third-party/apt-7.5.22/templates/20auto-upgrades.erb b/cookbooks/third-party/apt-7.5.22/templates/20auto-upgrades.erb deleted file mode 100644 index 47b2f23d90..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/20auto-upgrades.erb +++ /dev/null @@ -1,5 +0,0 @@ -APT::Periodic::Update-Package-Lists "<%= node['apt']['unattended_upgrades']['update_package_lists'] ? 1 : 0 %>"; -APT::Periodic::Unattended-Upgrade "<%= node['apt']['unattended_upgrades']['enable'] ? 1 : 0 %>"; -<% if node['apt']['unattended_upgrades']['random_sleep'] -%> -APT::Periodic::RandomSleep "<%= node['apt']['unattended_upgrades']['random_sleep'] %>"; -<% end -%> diff --git a/cookbooks/third-party/apt-7.5.22/templates/50unattended-upgrades.erb b/cookbooks/third-party/apt-7.5.22/templates/50unattended-upgrades.erb deleted file mode 100644 index a183e63c1f..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/50unattended-upgrades.erb +++ /dev/null @@ -1,132 +0,0 @@ -// Automatically upgrade packages from these (origin:archive) pairs -Unattended-Upgrade::Allowed-Origins { -<% unless node['apt']['unattended_upgrades']['allowed_origins'].empty? -%> -<% node['apt']['unattended_upgrades']['allowed_origins'].each do |origin| -%> - "<%= origin %>"; -<% end -%> -<% end -%> -}; - -<% unless node['apt']['unattended_upgrades']['origins_patterns'].empty? -%> -Unattended-Upgrade::Origins-Pattern { -<% node['apt']['unattended_upgrades']['origins_patterns'].each do |pattern| -%> - "<%= pattern %>"; -<% end -%> -}; - -<% end -%> -// Python regular expressions, matching packages to exclude from upgrading -Unattended-Upgrade::Package-Blacklist { -<% unless node['apt']['unattended_upgrades']['package_blacklist'].empty? -%> -<% node['apt']['unattended_upgrades']['package_blacklist'].each do |package| -%> - "<%= package %>"; -<% end -%> -<% end -%> -}; - -// This option allows you to control if on a unclean dpkg exit -// unattended-upgrades will automatically run -// dpkg --force-confold --configure -a -// The default is true, to ensure updates keep getting installed -Unattended-Upgrade::AutoFixInterruptedDpkg "<%= node['apt']['unattended_upgrades']['auto_fix_interrupted_dpkg'] ? 'true' : 'false' %>"; - -// Split the upgrade into the smallest possible chunks so that -// they can be interrupted with SIGTERM. This makes the upgrade -// a bit slower but it has the benefit that shutdown while a upgrade -// is running is possible (with a small delay) -Unattended-Upgrade::MinimalSteps "<%= node['apt']['unattended_upgrades']['minimal_steps'] ? 'true' : 'false' %>"; - -// Install all updates when the machine is shutting down -// instead of doing it in the background while the machine is running. -// This will (obviously) make shutdown slower. -// Unattended-upgrades increases logind's InhibitDelayMaxSec to 30s. -// This allows more time for unattended-upgrades to shut down gracefully -// or even install a few packages in InstallOnShutdown mode, but is still a -// big step back from the 30 minutes allowed for InstallOnShutdown previously. -// Users enabling InstallOnShutdown mode are advised to increase -// InhibitDelayMaxSec even further, possibly to 30 minutes. -Unattended-Upgrade::InstallOnShutdown "<%= node['apt']['unattended_upgrades']['install_on_shutdown'] ? 'true' : 'false' %>"; - -<% if node['apt']['unattended_upgrades']['mail'] -%> -// Send email to this address for problems or packages upgrades -// If empty or unset then no email is sent, make sure that you -// have a working mail setup on your system. A package that provides -// 'mailx' must be installed. E.g. "user@example.com" -Unattended-Upgrade::Mail "<%= node['apt']['unattended_upgrades']['mail'] %>"; -<% end -%> - -<% if node['apt']['unattended_upgrades']['sender'] -%> -// This option allows to customize the email address used in the -// 'From' header. unattended-upgrades will use "root" if unset. -Unattended-Upgrade::Sender "<%= node['apt']['unattended_upgrades']['sender'] %>"; -<% end -%> - -// Set this value to one of: -// "always", "only-on-error" or "on-change" -// If this is not set, then any legacy MailOnlyOnError (boolean) value -// is used to chose between "only-on-error" and "on-change" -//Unattended-Upgrade::MailReport "on-change"; -Unattended-Upgrade::MailOnlyOnError "<%= node['apt']['unattended_upgrades']['mail_only_on_error'] ? 'true' : 'false' %>"; - -// Remove unused automatically installed kernel-related packages -// (kernel images, kernel headers and kernel version locked tools). -//Unattended-Upgrade::Remove-Unused-Kernel-Packages "true"; - -// Do automatic removal of newly unused dependencies after the upgrade -//Unattended-Upgrade::Remove-New-Unused-Dependencies "true"; - -// Do automatic removal of unused packages after the upgrade -// (equivalent to apt-get autoremove) -Unattended-Upgrade::Remove-Unused-Dependencies "<%= node['apt']['unattended_upgrades']['remove_unused_dependencies'] ? 'true' : 'false' %>"; - -// Automatically reboot *WITHOUT CONFIRMATION* if -// the file /var/run/reboot-required is found after the upgrade -Unattended-Upgrade::Automatic-Reboot "<%= node['apt']['unattended_upgrades']['automatic_reboot'] ? 'true' : 'false' %>"; - -<% if node['apt']['unattended_upgrades']['automatic_reboot'] -%> -// Automatically reboot even if there are users currently logged in -// when Unattended-Upgrade::Automatic-Reboot is set to true -//Unattended-Upgrade::Automatic-Reboot-WithUsers "true"; - -// If automatic reboot is enabled and needed, reboot at the specific -// time instead of immediately -// Default: "now" -Unattended-Upgrade::Automatic-Reboot-Time "<%= node['apt']['unattended_upgrades']['automatic_reboot_time'] %>"; -<% end %> - -<% if node['apt']['unattended_upgrades']['dl_limit'] -%> -// Use apt bandwidth limit feature, this example limits the download -// speed to 70kb/sec -// Acquire::http::Dl-Limit "70"; -Acquire::http::Dl-Limit "<%= node['apt']['unattended_upgrades']['dl_limit'] %>"; -<% end -%> - -// Enable logging to syslog. Default is False -Unattended-Upgrade::SyslogEnable "<%= node['apt']['unattended_upgrades']['syslog_enable'] ? 'true' : 'false' %>"; - -// Specify syslog facility. Default is daemon -Unattended-Upgrade::SyslogFacility "<%= node['apt']['unattended_upgrades']['syslog_facility'] %>"; - - -<% unless node['apt']['unattended_upgrades']['dpkg_options'].empty? -%> -Dpkg::Options { -<% node['apt']['unattended_upgrades']['dpkg_options'].each do |option|%> - "<%= option %>"; -<% end -%> -}; -<% end -%> - -// Download and install upgrades only on AC power -// (i.e. skip or gracefully stop updates on battery) -// Unattended-Upgrade::OnlyOnACPower "true"; - -// Download and install upgrades only on non-metered connection -// (i.e. skip or gracefully stop updates on a metered connection) -// Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true"; - -// Verbose logging -// Unattended-Upgrade::Verbose "false"; - -// Print debugging information both in unattended-upgrades and -// in unattended-upgrade-shutdown -// Unattended-Upgrade::Debug "false"; diff --git a/cookbooks/third-party/apt-7.5.22/templates/acng.conf.erb b/cookbooks/third-party/apt-7.5.22/templates/acng.conf.erb deleted file mode 100644 index 3aa0c92a4b..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/acng.conf.erb +++ /dev/null @@ -1,275 +0,0 @@ -# Letter case in directive names does not matter. Must be separated with colons. -# Valid boolean values are a zero number for false, non-zero numbers for true. - -CacheDir: <%= node['apt']['cacher_dir'] %> - -# set empty to disable logging -LogDir: /var/log/apt-cacher-ng - -# place to look for additional configuration and resource files if they are not -# found in the configuration directory -# SupportDir: /usr/lib/apt-cacher-ng - -# TCP (http) port -# Set to 9999 to emulate apt-proxy -Port:<%= node['apt']['cacher_port'] %> - -# Addresses or hostnames to listen on. Multiple addresses must be separated by -# spaces. Each entry must be an exact local address which is associated with a -# local interface. DNS resolution is performed using getaddrinfo(3) for all -# available protocols (IPv4, IPv6, ...). Using a protocol specific format will -# create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen -# only to IPv4). -# -# Default: not set, will listen on all interfaces and protocols -# -# BindAddress: localhost 192.168.7.254 publicNameOnMainInterface - -# The specification of another proxy which shall be used for downloads. -# Username and password are, and see manual for limitations. -# -#Proxy: http://www-proxy.example.net:80 -#proxy: username:proxypassword@proxy.example.net:3128 - -# Repository remapping. See manual for details. -# In this example, some backends files might be generated during package -# installation using information collected on the system. -Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives -Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives -Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives -Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here -Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here -Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux -Remap-fedora: file:fedora_mirrors # Fedora Linux -Remap-epel: file:epel_mirrors # Fedora EPEL -Remap-slrep: file:sl_mirrors # Scientific Linux - -# This is usually not needed for security.debian.org because it's always the -# same DNS hostname. However, it might be enabled in order to use hooks, -# ForceManaged mode or special flags in this context. -# Remap-secdeb: security.debian.org - -# Virtual page accessible in a web browser to see statistics and status -# information, i.e. under http://localhost:3142/acng-report.html -ReportPage: acng-report.html - -# Socket file for accessing through local UNIX socket instead of TCP/IP. Can be -# used with inetd bridge or cron client. -# SocketPath:/var/run/apt-cacher-ng/socket - -# Forces log file to be written to disk after every line when set to 1. Default -# is 0, buffers are flushed when the client disconnects. -# -# (technically, alias to the Debug option, see its documentation for details) -# -# UnbufferLogs: 0 - -# Set to 0 to store only type, time and transfer sizes. -# 1 -> client IP and relative local path are logged too -# VerboseLog: 1 - -# Don't detach from the console -# ForeGround: 0 - -# Store the pid of the daemon process therein -# PidFile: /var/run/apt-cacher-ng/pid - -# Forbid outgoing connections, work around them or respond with 503 error -# offlinemode:0 - -# Forbid all downloads that don't run through preconfigured backends (.where) -#ForceManaged: 0 - -# Days before considering an unreferenced file expired (to be deleted). -# Warning: if the value is set too low and particular index files are not -# available for some days (mirror downtime) there is a risk of deletion of -# still useful package files. -ExTreshold: 4 - -# Stop expiration when a critical problem appeared. Currently only failed -# refresh of an index file is considered as critical. -# -# WARNING: don't touch this option or set to zero. -# Anything else is DANGEROUS and may cause data loss. -# -# ExAbortOnProblems: 1 - -# Replace some Windows/DOS-FS incompatible chars when storing -# StupidFs: 0 - -# Experimental feature for apt-listbugs: pass-through SOAP requests and -# responses to/from bugs.debian.org. If not set, default is true if -# ForceManaged is enabled and false otherwise. -# ForwardBtsSoap: 1 - -# The daemon has a small cache for DNS data, to speed up resolution. The -# expiration time of the DNS entries can be configured in seconds. -# DnsCacheSeconds: 3600 - -# Don't touch the following values without good consideration! -# -# Max. count of connection threads kept ready (for faster response in the -# future). Should be a sane value between 0 and average number of connections, -# and depend on the amount of spare RAM. -# MaxStandbyConThreads: 8 -# -# Hard limit of active thread count for incoming connections, i.e. operation -# is refused when this value is reached (below zero = unlimited). -# MaxConThreads: -1 -# -# Pigeonholing files with regular expressions (static/volatile). Can be -# overriden here but not should not be done permanently because future update -# of default settings would not be applied later. -# VfilePattern = (^|.*?/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.db(\.tar\.gz)?|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|metalink\?repo|.*prestodelta\.xml\.gz)$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.* -# PfilePattern = .*(\.d?deb|\.rpm|\.dsc|\.tar(\.gz|\.bz2|\.lzma|\.xz)(\.gpg)?|\.diff(\.gz|\.bz2|\.lzma|\.xz)|\.jigdo|\.template|changelog|copyright|\.udeb|\.debdelta|\.diff/.*\.gz|(Devel)?ReleaseAnnouncement(\?.*)?|[a-f0-9]+-(susedata|updateinfo|primary|deltainfo).xml.gz|fonts/(final/)?[a-z]+32.exe(\?download.*)?|/dists/.*/installer-[^/]+/[0-9][^/]+/images/.*)$ -# Whitelist for expiration, file types not to be removed even when being -# unreferenced. Default: many parts from VfilePattern where no parent index -# exists or might be unknown. -# WfilePattern = (^|.*?/)(Release|InRelease|Release\.gpg|(Packages|Sources)(\.gz|\.bz2|\.lzma|\.xz)?|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|.*\.xml|.*\.db\.tar\.gz|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|[a-z]+32.exe)$|/dists/.*/installer-.*/images/.* - -# Higher modes only working with the debug version -# Warning, writes a lot into apt-cacher.err logfile -# Value overwrites UnbufferLogs setting (aliased) -# Debug:3 - -# Usually, general purpose proxies like Squid expose the IP address of the -# client user to the remote server using the X-Forwarded-For HTTP header. This -# behaviour can be optionally turned on with the Expose-Origin option. -# ExposeOrigin: 0 - -# When logging the originating IP address, trust the information supplied by -# the client in the X-Forwarded-For header. -# LogSubmittedOrigin: 0 - -# The version string reported to the peer, to be displayed as HTTP client (and -# version) in the logs of the mirror. -# WARNING: some archives use this header to detect/guess capabilities of the -# client (i.e. redirection support) and change the behaviour accordingly, while -# ACNG might not support the expected features. Expect side effects. -# -# UserAgent: Yet Another HTTP Client/1.2.3p4 - -# In some cases the Import and Expiration tasks might create fresh volatile -# data for internal use by reconstructing them using patch files. This -# by-product might be recompressed with bzip2 and with some luck the resulting -# file becomes identical to the *.bz2 file on the server, usable for APT -# clients trying to fetch the full .bz2 compressed version. Injection of the -# generated files into the cache has however a disadvantage on underpowered -# servers: bzip2 compression can create high load on the server system and the -# visible download of the busy .bz2 files also becomes slower. -# -# RecompBz2: 0 - -# Network timeout for outgoing connections. -# NetworkTimeout: 60 - -# Sometimes it makes sense to not store the data in cache and just return the -# package data to client as it comes in. DontCache parameters can enable this -# behaviour for certain URL types. The tokens are extended regular expressions -# that URLs are matched against. -# -# DontCacheRequested is applied to the URL as it comes in from the client. -# Example: exclude packages built with kernel-package for x86 -# DontCacheRequested: linux-.*_10\...\.Custo._i386 -# Example usecase: exclude popular private IP ranges from caching -# DontCacheRequested: 192.168.0 ^10\..* 172.30 -# -# DontCacheResolved is applied to URLs after mapping to the target server. If -# multiple backend servers are specified then it's only matched against the -# download link for the FIRST possible source (due to implementation limits). -# Example usecase: all Ubuntu stuff comes from a local mirror (specified as -# backend), don't cache it again: -# DontCacheResolved: ubuntumirror.local.net -# -# DontCache directive sets (overrides) both, DontCacheResolved and -# DontCacheRequested. Provided for convenience, see those directives for -# details. -# -# Default permission set of freshly created files and directories, as octal -# numbers (see chmod(1) for details). -# Can by limited by the umask value (see umask(2) for details) if it's set in -# the environment of the starting shell, e.g. in apt-cacher-ng init script or -# in its configuration file. -# DirPerms: 00755 -# FilePerms: 00664 -# -# -# It's possible to use use apt-cacher-ng as a regular web server with limited -# feature set, i.e. -# including directory browsing and download of any file; -# excluding sorting, mime types/encodings, CGI execution, index page -# redirection and other funny things. -# To get this behavior, mappings between virtual directories and real -# directories on the server must be defined with the LocalDirs directive. -# Virtual and real dirs are separated by spaces, multiple pairs are separated -# by semi-colons. Real directories must be absolute paths. -# NOTE: Since the names of that key directories share the same namespace as -# repository names (see Remap-...) it's administrators job to avoid such -# collisions on them (unless created deliberately). -# -# LocalDirs: woo /data/debarchive/woody ; hamm /data/debarchive/hamm - -# Precache a set of files referenced by specified index files. This can be used -# to create a partial mirror usable for offline work. There are certain limits -# and restrictions on the path specification, see manual for details. A list of -# (maybe) relevant index files could be retrieved via -# "apt-get --print-uris update" on a client machine. -# -# PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages* - -# Arbitrary set of data to append to request headers sent over the wire. Should -# be a well formated HTTP headers part including newlines (DOS style) which -# can be entered as escape sequences (\r\n). -# RequestAppendix: X-Tracking-Choice: do-not-track\r\n - -# Specifies the IP protocol families to use for remote connections. Order does -# matter, first specified are considered first. Possible combinations: -# v6 v4 -# v4 v6 -# v6 -# v4 -# (empty or not set: use system default) -# -# ConnectProto: v6 v4 - -# Regular expiration algorithm finds package files which are no longer listed -# in any index file and removes them of them after a safety period. -# This option allows to keep more versions of a package in the cache after -# safety period is over. -# KeepExtraVersions: 1 - -# Optionally uses TCP access control provided by libwrap, see hosts_access(5) -# for details. Daemon name is apt-cacher-ng. Default if not set: decided on -# startup by looking for explicit mentioning of apt-cacher-ng in -# /etc/hosts.allow or /etc/hosts.deny files. -# UseWrap: 0 - -# If many machines from the same local network attempt to update index files -# (apt-get update) at nearly the same time, the known state of these index file -# is temporarily frozen and multiple requests receive the cached response -# without contacting the server. This parameter (in seconds) specifies the -# length of this period before the files are considered outdated. -# Setting it too low transfers more data and increases remote server load, -# setting it too high (more than a couple of minutes) increases the risk of -# delivering inconsistent responses to the clients. -# FreshIndexMaxAge: 27 - -# Usually the users are not allowed to specify custom TCP ports of remote -# mirrors in the requests, only the default HTTP port can be used (instead, -# proxy administrator can create Remap- rules with custom ports). This -# restriction can be disabled by specifying a list of allowed ports or 0 for -# any port. -# -# AllowUserPorts: 80 - -# Normally the HTTP redirection responses are forwarded to the original caller -# (i.e. APT) which starts a new download attempt from the new URL. This -# solution is ok for client configurations with proxy mode but doesn't work -# well with configurations using URL prefixes. To work around this the server -# can restart its own download with another URL. However, this might be used to -# circumvent download source policies by malicious users. -# The RedirMax option specifies how many such redirects the server should -# follow per request, 0 disables the internal redirection. If not set, -# default value is 0 if ForceManaged is used and 5 otherwise. -# -# RedirMax: 5 diff --git a/cookbooks/third-party/apt-7.5.22/templates/unattended-upgrades.seed.erb b/cookbooks/third-party/apt-7.5.22/templates/unattended-upgrades.seed.erb deleted file mode 100644 index 5ee5e93973..0000000000 --- a/cookbooks/third-party/apt-7.5.22/templates/unattended-upgrades.seed.erb +++ /dev/null @@ -1 +0,0 @@ -unattended-upgrades unattended-upgrades/enable_auto_updates boolean <%= node['apt']['unattended_upgrades']['enable'] ? 'true' : 'false' %> diff --git a/metadata.rb b/metadata.rb index f9467e3339..486148b153 100644 --- a/metadata.rb +++ b/metadata.rb @@ -9,7 +9,6 @@ chef_version '>= 18' version '3.13.0' -depends 'apt', '~> 7.5.22' depends 'iptables', '~> 8.0.0' depends 'line', '~> 4.5.13' depends 'nfs', '~> 5.1.2' From f448c6d9a38491a28771137a5a2461292badf24d Mon Sep 17 00:00:00 2001 From: Himani Anil Deshpande Date: Thu, 23 Jan 2025 15:56:16 -0500 Subject: [PATCH 3/3] [Dependency] Update changelog for removal of apt and pyenv --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 706f0b382c..0b6d5a1d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste - On Ubuntu 22.04, install the Nvidia driver with the same compiler version used to compile the kernel. - Upgrade `aws-cfn-bootstrap` to version 2.0-32. - Upgrade amazon-efs-utils to version 2.1.0. +- Remove third-party cookbook: apt-7.5.22 and pyenv-4.2.3. 3.12.0 ------