vagrant-clone 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.idea/.rakeTasks +7 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/runConfigurations/clone.xml +21 -0
- data/.idea/runConfigurations/libvirt.xml +21 -0
- data/.idea/vagrant-clone.iml +114 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +948 -0
- data/Gemfile +9 -3
- data/Gemfile.lock +123 -37
- data/Rakefile +2 -1
- data/Vagrantfile +9 -0
- data/cookbooks/apt/CHANGELOG.md +321 -0
- data/cookbooks/apt/CONTRIBUTING.md +2 -0
- data/cookbooks/apt/MAINTAINERS.md +15 -0
- data/cookbooks/apt/README.md +250 -0
- data/cookbooks/apt/attributes/default.rb +57 -0
- data/cookbooks/apt/files/15update-stamp +1 -0
- data/cookbooks/apt/files/apt-proxy-v2.conf +50 -0
- data/cookbooks/apt/libraries/helpers.rb +49 -0
- data/cookbooks/apt/libraries/matchers.rb +16 -0
- data/cookbooks/apt/metadata.json +1 -0
- data/cookbooks/apt/recipes/cacher-client.rb +52 -0
- data/cookbooks/apt/recipes/cacher-ng.rb +39 -0
- data/cookbooks/apt/recipes/default.rb +93 -0
- data/cookbooks/apt/recipes/unattended-upgrades.rb +47 -0
- data/cookbooks/apt/resources/preference.rb +90 -0
- data/cookbooks/apt/templates/01proxy.erb +11 -0
- data/cookbooks/apt/templates/10dpkg-options.erb +8 -0
- data/cookbooks/apt/templates/10recommends.erb +3 -0
- data/cookbooks/apt/templates/20auto-upgrades.erb +5 -0
- data/cookbooks/apt/templates/50unattended-upgrades.erb +75 -0
- data/cookbooks/apt/templates/acng.conf.erb +275 -0
- data/cookbooks/apt/templates/unattended-upgrades.seed.erb +1 -0
- data/cookbooks/build-essential/.foodcritic +1 -0
- data/cookbooks/build-essential/CHANGELOG.md +257 -0
- data/cookbooks/build-essential/CONTRIBUTING.md +2 -0
- data/cookbooks/build-essential/MAINTAINERS.md +15 -0
- data/cookbooks/build-essential/README.md +134 -0
- data/cookbooks/build-essential/attributes/default.rb +21 -0
- data/cookbooks/build-essential/libraries/matchers.rb +9 -0
- data/cookbooks/build-essential/metadata.json +1 -0
- data/cookbooks/build-essential/recipes/_windows.rb +53 -0
- data/cookbooks/build-essential/recipes/default.rb +24 -0
- data/cookbooks/build-essential/resources/build_essential.rb +106 -0
- data/cookbooks/build-essential/resources/xcode_command_line_tools.rb +61 -0
- data/cookbooks/compat_resource/CHANGELOG.md +53 -0
- data/cookbooks/compat_resource/CONTRIBUTING.md +2 -0
- data/cookbooks/compat_resource/MAINTAINERS.md +16 -0
- data/cookbooks/compat_resource/README.md +60 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/constants.rb +47 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/delayed_evaluator.rb +40 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/core.rb +73 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/declare_resource.rb +315 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/platform_introspection.rb +292 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/recipe.rb +37 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/dsl/universal.rb +70 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/lazy_module_include.rb +98 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/notifying_block.rb +74 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/params_validate.rb +510 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/powershell_out.rb +117 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/mixin/properties.rb +328 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/property.rb +713 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_repository.rb +269 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/apt_update.rb +105 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/noop.rb +56 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/support/yum_repo.erb +132 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/systemd_unit.rb +253 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider/yum_repository.rb +136 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/provider.rb +164 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/action_class.rb +114 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_repository.rb +65 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/apt_update.rb +52 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/systemd_unit.rb +81 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource/yum_repository.rb +97 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource.rb +214 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef/chef/resource_builder.rb +174 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/copied_from_chef.rb +29 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/mixin/properties.rb +8 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/exceptions.rb +10 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/log.rb +30 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/mixin/params_validate.rb +17 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/node.rb +9 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/property.rb +15 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/provider.rb +65 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe.rb +118 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/recipe_hook.rb +20 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource/lwrp_base.rb +60 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource.rb +156 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_builder.rb +167 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_list.rb +49 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection/resource_set.rb +49 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/resource_collection.rb +103 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/run_context.rb +691 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb +153 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef.rb +33 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches.rb +41 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/property.rb +6 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/recipe.rb +8 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/resource/lwrp_base.rb +44 -0
- data/cookbooks/compat_resource/files/lib/chef_compat/resource.rb +56 -0
- data/cookbooks/compat_resource/files/lib/chef_upstream_version.rb +3 -0
- data/cookbooks/compat_resource/files/lib/compat_resource.rb +35 -0
- data/cookbooks/compat_resource/libraries/autoload.rb +31 -0
- data/cookbooks/compat_resource/metadata.json +1 -0
- data/cookbooks/inifile_chef_gem/CHANGELOG.md +11 -0
- data/cookbooks/inifile_chef_gem/README.md +46 -0
- data/cookbooks/inifile_chef_gem/metadata.json +51 -0
- data/cookbooks/inifile_chef_gem/metadata.rb +11 -0
- data/cookbooks/inifile_chef_gem/resources/default.rb +28 -0
- data/cookbooks/mariadb/CHANGELOG.md +332 -0
- data/cookbooks/mariadb/README.md +225 -0
- data/cookbooks/mariadb/attributes/default.rb +199 -0
- data/cookbooks/mariadb/libraries/mariadb_conn_helper.rb +53 -0
- data/cookbooks/mariadb/libraries/mariadb_helper.rb +216 -0
- data/cookbooks/mariadb/libraries/matchers.rb +21 -0
- data/cookbooks/mariadb/metadata.json +1 -0
- data/cookbooks/mariadb/providers/configuration.rb +39 -0
- data/cookbooks/mariadb/recipes/_audit_plugin.rb +63 -0
- data/cookbooks/mariadb/recipes/_debian_galera.rb +62 -0
- data/cookbooks/mariadb/recipes/_debian_server.rb +78 -0
- data/cookbooks/mariadb/recipes/_mariadb_repository.rb +29 -0
- data/cookbooks/mariadb/recipes/_redhat_client.rb +27 -0
- data/cookbooks/mariadb/recipes/_redhat_galera.rb +55 -0
- data/cookbooks/mariadb/recipes/_redhat_server.rb +58 -0
- data/cookbooks/mariadb/recipes/client.rb +47 -0
- data/cookbooks/mariadb/recipes/config.rb +115 -0
- data/cookbooks/mariadb/recipes/default.rb +46 -0
- data/cookbooks/mariadb/recipes/devel.rb +41 -0
- data/cookbooks/mariadb/recipes/galera.rb +324 -0
- data/cookbooks/mariadb/recipes/plugins.rb +3 -0
- data/cookbooks/mariadb/recipes/repository.rb +45 -0
- data/cookbooks/mariadb/recipes/server.rb +157 -0
- data/cookbooks/mariadb/resources/configuration.rb +13 -0
- data/cookbooks/mariadb/resources/mysql2_gem.rb +25 -0
- data/cookbooks/mariadb/resources/replication.rb +192 -0
- data/cookbooks/mariadb/templates/default/conf.d.generic.erb +19 -0
- data/cookbooks/mariadb/templates/default/debian.cnf.erb +12 -0
- data/cookbooks/mariadb/templates/default/mariadb-server.seed.erb +13 -0
- data/cookbooks/mariadb/templates/default/mariadb_grants.erb +42 -0
- data/cookbooks/mariadb/templates/default/my.cnf.erb +210 -0
- data/cookbooks/mariadb/templates/default/root.cnf.erb +5 -0
- data/cookbooks/mingw/.foodcritic +1 -0
- data/cookbooks/mingw/CHANGELOG.md +50 -0
- data/cookbooks/mingw/CONTRIBUTING.md +2 -0
- data/cookbooks/mingw/MAINTAINERS.md +14 -0
- data/cookbooks/mingw/README.md +133 -0
- data/cookbooks/mingw/files/default/bash.bat +17 -0
- data/cookbooks/mingw/files/default/custom-upgrade.sh +23 -0
- data/cookbooks/mingw/files/default/custom_prefix.sh +13 -0
- data/cookbooks/mingw/files/default/pthread.h +719 -0
- data/cookbooks/mingw/files/default/time.h +297 -0
- data/cookbooks/mingw/libraries/_helper.rb +38 -0
- data/cookbooks/mingw/metadata.json +1 -0
- data/cookbooks/mingw/recipes/default.rb +19 -0
- data/cookbooks/mingw/resources/get.rb +56 -0
- data/cookbooks/mingw/resources/msys2_package.rb +139 -0
- data/cookbooks/mingw/resources/tdm_gcc.rb +114 -0
- data/cookbooks/ohai/.foodcritic +2 -0
- data/cookbooks/ohai/CHANGELOG.md +166 -0
- data/cookbooks/ohai/CONTRIBUTING.md +2 -0
- data/cookbooks/ohai/MAINTAINERS.md +15 -0
- data/cookbooks/ohai/README.md +134 -0
- data/cookbooks/ohai/libraries/matchers.rb +41 -0
- data/cookbooks/ohai/metadata.json +1 -0
- data/cookbooks/ohai/recipes/default.rb +20 -0
- data/cookbooks/ohai/resources/hint.rb +55 -0
- data/cookbooks/ohai/resources/plugin.rb +117 -0
- data/cookbooks/selinux_policy/.gitignore +51 -0
- data/cookbooks/selinux_policy/.kitchen.yml +25 -0
- data/cookbooks/selinux_policy/.rubocop.yml +2 -0
- data/cookbooks/selinux_policy/.travis.yml +26 -0
- data/cookbooks/selinux_policy/Berksfile +8 -0
- data/cookbooks/selinux_policy/CHANGELOG.md +155 -0
- data/cookbooks/selinux_policy/LICENSE +13 -0
- data/cookbooks/selinux_policy/README.md +217 -0
- data/cookbooks/selinux_policy/Rakefile +68 -0
- data/cookbooks/selinux_policy/TESTING.md +2 -0
- data/cookbooks/selinux_policy/Thorfile +12 -0
- data/cookbooks/selinux_policy/attributes/default.rb +5 -0
- data/cookbooks/selinux_policy/chefignore +102 -0
- data/cookbooks/selinux_policy/libraries/helper-disabled.rb +29 -0
- data/cookbooks/selinux_policy/libraries/matchers.rb +57 -0
- data/cookbooks/selinux_policy/metadata.json +58 -0
- data/cookbooks/selinux_policy/metadata.rb +20 -0
- data/cookbooks/selinux_policy/providers/boolean.rb +28 -0
- data/cookbooks/selinux_policy/providers/fcontext.rb +78 -0
- data/cookbooks/selinux_policy/providers/module.rb +81 -0
- data/cookbooks/selinux_policy/providers/permissive.rb +26 -0
- data/cookbooks/selinux_policy/providers/port.rb +58 -0
- data/cookbooks/selinux_policy/recipes/default.rb +9 -0
- data/cookbooks/selinux_policy/recipes/install.rb +32 -0
- data/cookbooks/selinux_policy/resources/boolean.rb +8 -0
- data/cookbooks/selinux_policy/resources/fcontext.rb +8 -0
- data/cookbooks/selinux_policy/resources/module.rb +21 -0
- data/cookbooks/selinux_policy/resources/permissive.rb +6 -0
- data/cookbooks/selinux_policy/resources/port.rb +9 -0
- data/cookbooks/seven_zip/CHANGELOG.md +30 -0
- data/cookbooks/seven_zip/README.md +108 -0
- data/cookbooks/seven_zip/attributes/default.rb +31 -0
- data/cookbooks/seven_zip/libraries/matchers.rb +33 -0
- data/cookbooks/seven_zip/metadata.json +1 -0
- data/cookbooks/seven_zip/providers/archive.rb +68 -0
- data/cookbooks/seven_zip/recipes/default.rb +41 -0
- data/cookbooks/seven_zip/resources/archive.rb +29 -0
- data/cookbooks/windows/.foodcritic +2 -0
- data/cookbooks/windows/CHANGELOG.md +528 -0
- data/cookbooks/windows/CONTRIBUTING.md +2 -0
- data/cookbooks/windows/MAINTAINERS.md +21 -0
- data/cookbooks/windows/README.md +803 -0
- data/cookbooks/windows/attributes/default.rb +21 -0
- data/cookbooks/windows/files/dism_features.rb +45 -0
- data/cookbooks/windows/libraries/matchers.rb +586 -0
- data/cookbooks/windows/libraries/powershell_helper.rb +53 -0
- data/cookbooks/windows/libraries/registry_helper.rb +356 -0
- data/cookbooks/windows/libraries/version.rb +207 -0
- data/cookbooks/windows/libraries/version_helper.rb +79 -0
- data/cookbooks/windows/libraries/windows_helper.rb +174 -0
- data/cookbooks/windows/libraries/windows_privileged.rb +103 -0
- data/cookbooks/windows/libraries/wmi_helper.rb +32 -0
- data/cookbooks/windows/metadata.json +1 -0
- data/cookbooks/windows/recipes/default.rb +21 -0
- data/cookbooks/windows/resources/auto_run.rb +46 -0
- data/cookbooks/windows/resources/certificate.rb +166 -0
- data/cookbooks/windows/resources/certificate_binding.rb +128 -0
- data/cookbooks/windows/resources/feature.rb +82 -0
- data/cookbooks/windows/resources/feature_dism.rb +108 -0
- data/cookbooks/windows/resources/feature_powershell.rb +70 -0
- data/cookbooks/windows/resources/feature_servermanagercmd.rb +76 -0
- data/cookbooks/windows/resources/font.rb +80 -0
- data/cookbooks/windows/resources/http_acl.rb +110 -0
- data/cookbooks/windows/resources/pagefile.rb +152 -0
- data/cookbooks/windows/resources/path.rb +54 -0
- data/cookbooks/windows/resources/printer.rb +103 -0
- data/cookbooks/windows/resources/printer_port.rb +101 -0
- data/cookbooks/windows/resources/share.rb +291 -0
- data/cookbooks/windows/resources/shortcut.rb +53 -0
- data/cookbooks/windows/resources/task.rb +384 -0
- data/cookbooks/windows/resources/zipfile.rb +125 -0
- data/cookbooks/yum/.foodcritic +1 -0
- data/cookbooks/yum/CHANGELOG.md +351 -0
- data/cookbooks/yum/CONTRIBUTING.md +2 -0
- data/cookbooks/yum/MAINTAINERS.md +16 -0
- data/cookbooks/yum/README.md +125 -0
- data/cookbooks/yum/attributes/main.rb +103 -0
- data/cookbooks/yum/libraries/matchers.rb +9 -0
- data/cookbooks/yum/metadata.json +1 -0
- data/cookbooks/yum/recipes/default.rb +26 -0
- data/cookbooks/yum/recipes/dnf_yum_compat.rb +29 -0
- data/cookbooks/yum/resources/globalconfig.rb +119 -0
- data/cookbooks/yum/templates/.DS_Store +0 -0
- data/cookbooks/yum/templates/main.erb +276 -0
- data/cookbooks/yum-epel/CHANGELOG.md +138 -0
- data/cookbooks/yum-epel/CONTRIBUTING.md +2 -0
- data/cookbooks/yum-epel/MAINTAINERS.md +19 -0
- data/cookbooks/yum-epel/README.md +172 -0
- data/cookbooks/yum-epel/attributes/default.rb +8 -0
- data/cookbooks/yum-epel/attributes/epel-debuginfo.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-source.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing-debuginfo.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing-source.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel-testing.rb +15 -0
- data/cookbooks/yum-epel/attributes/epel.rb +21 -0
- data/cookbooks/yum-epel/metadata.json +1 -0
- data/cookbooks/yum-epel/recipes/default.rb +27 -0
- data/cookbooks/yum-scl/.kitchen.dokken.yml +24 -0
- data/cookbooks/yum-scl/.kitchen.yml +24 -0
- data/cookbooks/yum-scl/.rubocop.yml +6 -0
- data/cookbooks/yum-scl/.travis.yml +28 -0
- data/cookbooks/yum-scl/Berksfile +3 -0
- data/cookbooks/yum-scl/Berksfile.lock +25 -0
- data/cookbooks/yum-scl/CHANGELOG.md +11 -0
- data/cookbooks/yum-scl/Gemfile +46 -0
- data/cookbooks/yum-scl/README.md +76 -0
- data/cookbooks/yum-scl/attributes/centos.rb +83 -0
- data/cookbooks/yum-scl/attributes/default.rb +15 -0
- data/cookbooks/yum-scl/attributes/scientific.rb +1 -0
- data/cookbooks/yum-scl/files/default/RPM-GPG-KEY-CentOS-SIG-SCLo +20 -0
- data/cookbooks/yum-scl/libraries/yum_scl_helper.rb +33 -0
- data/cookbooks/yum-scl/metadata.json +42 -0
- data/cookbooks/yum-scl/metadata.rb +12 -0
- data/cookbooks/yum-scl/recipes/chef_install.rb +52 -0
- data/cookbooks/yum-scl/recipes/default.rb +17 -0
- data/cookbooks/yum-scl/recipes/native_install.rb +35 -0
- data/lib/vagrant-clone/command/clone.rb +66 -61
- data/lib/vagrant-clone/errors.rb +61 -0
- data/lib/vagrant-clone/util/clone_manager_base.rb +69 -0
- data/lib/vagrant-clone/util/clone_managers/docker.rb +31 -0
- data/lib/vagrant-clone/util/clone_managers/libvirt.rb +254 -0
- data/lib/vagrant-clone/util/vagrantfile_managers/docker.rb +154 -0
- data/lib/vagrant-clone/util/vagrantfile_managers/libvirt.rb +159 -0
- data/lib/vagrant-clone/version.rb +2 -2
- data/lib/vagrant-clone.rb +6 -6
- data/libvirt.txt +7 -0
- data/performance_testing.rb +165 -0
- data/results.txt +45 -0
- data/scripts/create_box.sh +134 -0
- data/test.rb +92 -0
- data/tools/create_box.sh +130 -0
- data/vagrant-clone.gemspec +7 -7
- metadata +296 -5
- data/lib/vagrant-clone/command/errors.rb +0 -16
- data/lib/vagrant-clone/command/provider/docker.rb +0 -13
- data/lib/vagrant-clone/utils/vagrantfile_manager.rb +0 -47
@@ -0,0 +1,47 @@
|
|
1
|
+
#
|
2
|
+
# Cookbook:: apt
|
3
|
+
# Recipe:: unattended-upgrades
|
4
|
+
#
|
5
|
+
# Copyright:: 2014-2017, Chef Software, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the 'License');
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an 'AS IS' BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
# On systems where apt is not installed, the resources in this recipe are not
|
21
|
+
# executed. However, they _must_ still be present in the resource collection
|
22
|
+
# or other cookbooks which notify these resources will fail on non-apt-enabled
|
23
|
+
# systems.
|
24
|
+
#
|
25
|
+
|
26
|
+
package 'unattended-upgrades' do
|
27
|
+
response_file 'unattended-upgrades.seed.erb'
|
28
|
+
action :install
|
29
|
+
end
|
30
|
+
|
31
|
+
package 'bsd-mailx' do
|
32
|
+
not_if { node['apt']['unattended_upgrades']['mail'].nil? }
|
33
|
+
end
|
34
|
+
|
35
|
+
template '/etc/apt/apt.conf.d/20auto-upgrades' do
|
36
|
+
owner 'root'
|
37
|
+
group 'root'
|
38
|
+
mode '0644'
|
39
|
+
source '20auto-upgrades.erb'
|
40
|
+
end
|
41
|
+
|
42
|
+
template '/etc/apt/apt.conf.d/50unattended-upgrades' do
|
43
|
+
owner 'root'
|
44
|
+
group 'root'
|
45
|
+
mode '0644'
|
46
|
+
source '50unattended-upgrades.erb'
|
47
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
#
|
2
|
+
# Cookbook:: apt
|
3
|
+
# Resource:: preference
|
4
|
+
#
|
5
|
+
# Copyright:: 2010-2017, Chef Software, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
property :package_name, String, name_attribute: true, regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/]
|
21
|
+
property :glob, String
|
22
|
+
property :pin, String
|
23
|
+
property :pin_priority, String, required: true
|
24
|
+
|
25
|
+
action :add do
|
26
|
+
preference = build_pref(
|
27
|
+
new_resource.glob || new_resource.package_name,
|
28
|
+
new_resource.pin,
|
29
|
+
new_resource.pin_priority
|
30
|
+
)
|
31
|
+
|
32
|
+
directory '/etc/apt/preferences.d' do
|
33
|
+
owner 'root'
|
34
|
+
group 'root'
|
35
|
+
mode '0755'
|
36
|
+
recursive true
|
37
|
+
action :create
|
38
|
+
end
|
39
|
+
|
40
|
+
name = safe_name(new_resource.name)
|
41
|
+
|
42
|
+
file "cleanup_#{new_resource.name}.pref" do
|
43
|
+
path "/etc/apt/preferences.d/#{new_resource.name}.pref"
|
44
|
+
action :delete
|
45
|
+
if ::File.exist?("/etc/apt/preferences.d/#{new_resource.name}.pref")
|
46
|
+
Chef::Log.warn "Replacing #{new_resource.name}.pref with #{name}.pref in /etc/apt/preferences.d/"
|
47
|
+
end
|
48
|
+
only_if { name != new_resource.name }
|
49
|
+
end
|
50
|
+
|
51
|
+
file "cleanup_#{new_resource.name}" do
|
52
|
+
path "/etc/apt/preferences.d/#{new_resource.name}"
|
53
|
+
action :delete
|
54
|
+
if ::File.exist?("/etc/apt/preferences.d/#{new_resource.name}")
|
55
|
+
Chef::Log.warn "Replacing #{new_resource.name} with #{new_resource.name}.pref in /etc/apt/preferences.d/"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
file "/etc/apt/preferences.d/#{name}.pref" do
|
60
|
+
owner 'root'
|
61
|
+
group 'root'
|
62
|
+
mode '0644'
|
63
|
+
content preference
|
64
|
+
action :create
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
action :remove do
|
69
|
+
name = safe_name(new_resource.name)
|
70
|
+
if ::File.exist?("/etc/apt/preferences.d/#{name}.pref")
|
71
|
+
Chef::Log.info "Un-pinning #{name} from /etc/apt/preferences.d/"
|
72
|
+
file "remove_#{name}.pref" do
|
73
|
+
path "/etc/apt/preferences.d/#{name}.pref"
|
74
|
+
action :delete
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
action_class.class_eval do
|
80
|
+
# Build preferences.d file contents
|
81
|
+
def build_pref(package_name, pin, pin_priority)
|
82
|
+
pref = "Package: #{package_name}\nPin: #{pin}\n"
|
83
|
+
pref << "Pin-Priority: #{pin_priority}\n" unless pin_priority.nil?
|
84
|
+
pref
|
85
|
+
end
|
86
|
+
|
87
|
+
def safe_name(name)
|
88
|
+
name.tr('.', '_').gsub('*', 'wildcard')
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Acquire::http::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>";
|
2
|
+
<% if @server['proxy_ssl'] %>
|
3
|
+
Acquire::https::Proxy "http://<%= @server['host'] %>:<%= @server['port'] %>";
|
4
|
+
<% else %>
|
5
|
+
Acquire::https::Proxy "DIRECT";
|
6
|
+
<% end %>
|
7
|
+
<% unless @server['cache_bypass'].nil? %>
|
8
|
+
<% @server['cache_bypass'].each do |bypass, type| %>
|
9
|
+
Acquire::<%= type %>::Proxy::<%= bypass %> "DIRECT";
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Managed by Chef
|
2
|
+
Dpkg::Options {
|
3
|
+
<%= node['apt']['confd']['force_confask'] ? '"--force-confask";' : '' -%>
|
4
|
+
<%= node['apt']['confd']['force_confdef'] ? '"--force-confdef";' : '' -%>
|
5
|
+
<%= node['apt']['confd']['force_confmiss'] ? '"--force-confmiss";' : '' -%>
|
6
|
+
<%= node['apt']['confd']['force_confnew'] ? '"--force-confnew";' : '' -%>
|
7
|
+
<%= node['apt']['confd']['force_confold'] ? '"--force-confold";' : '' -%>
|
8
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
APT::Periodic::Update-Package-Lists "<%= node['apt']['unattended_upgrades']['update_package_lists'] ? 1 : 0 %>";
|
2
|
+
APT::Periodic::Unattended-Upgrade "<%= node['apt']['unattended_upgrades']['enable'] ? 1 : 0 %>";
|
3
|
+
<% if node['apt']['unattended_upgrades']['random_sleep'] -%>
|
4
|
+
APT::Periodic::RandomSleep "<%= node['apt']['unattended_upgrades']['random_sleep'] %>";
|
5
|
+
<% end -%>
|
@@ -0,0 +1,75 @@
|
|
1
|
+
// Automatically upgrade packages from these (origin:archive) pairs
|
2
|
+
Unattended-Upgrade::Allowed-Origins {
|
3
|
+
<% unless node['apt']['unattended_upgrades']['allowed_origins'].empty? -%>
|
4
|
+
<% node['apt']['unattended_upgrades']['allowed_origins'].each do |origin| -%>
|
5
|
+
"<%= origin %>";
|
6
|
+
<% end -%>
|
7
|
+
<% end -%>
|
8
|
+
};
|
9
|
+
|
10
|
+
<% unless node['apt']['unattended_upgrades']['origins_patterns'].empty? -%>
|
11
|
+
Unattended-Upgrade::Origins-Pattern {
|
12
|
+
<% node['apt']['unattended_upgrades']['origins_patterns'].each do |pattern| -%>
|
13
|
+
"<%= pattern %>";
|
14
|
+
<% end -%>
|
15
|
+
};
|
16
|
+
|
17
|
+
<% end -%>
|
18
|
+
// List of packages to not update
|
19
|
+
Unattended-Upgrade::Package-Blacklist {
|
20
|
+
<% unless node['apt']['unattended_upgrades']['package_blacklist'].empty? -%>
|
21
|
+
<% node['apt']['unattended_upgrades']['package_blacklist'].each do |package| -%>
|
22
|
+
"<%= package %>";
|
23
|
+
<% end -%>
|
24
|
+
<% end -%>
|
25
|
+
};
|
26
|
+
|
27
|
+
// This option allows you to control if on a unclean dpkg exit
|
28
|
+
// unattended-upgrades will automatically run
|
29
|
+
// dpkg --force-confold --configure -a
|
30
|
+
// The default is true, to ensure updates keep getting installed
|
31
|
+
Unattended-Upgrade::AutoFixInterruptedDpkg "<%= node['apt']['unattended_upgrades']['auto_fix_interrupted_dpkg'] ? 'true' : 'false' %>";
|
32
|
+
|
33
|
+
// Split the upgrade into the smallest possible chunks so that
|
34
|
+
// they can be interrupted with SIGUSR1. This makes the upgrade
|
35
|
+
// a bit slower but it has the benefit that shutdown while a upgrade
|
36
|
+
// is running is possible (with a small delay)
|
37
|
+
Unattended-Upgrade::MinimalSteps "<%= node['apt']['unattended_upgrades']['minimal_steps'] ? 'true' : 'false' %>";
|
38
|
+
|
39
|
+
// Install all unattended-upgrades when the machine is shuting down
|
40
|
+
// instead of doing it in the background while the machine is running
|
41
|
+
// This will (obviously) make shutdown slower
|
42
|
+
Unattended-Upgrade::InstallOnShutdown "<%= node['apt']['unattended_upgrades']['install_on_shutdown'] ? 'true' : 'false' %>";
|
43
|
+
|
44
|
+
// Send email to this address for problems or packages upgrades
|
45
|
+
// If empty or unset then no email is sent, make sure that you
|
46
|
+
// have a working mail setup on your system. A package that provides
|
47
|
+
// 'mailx' must be installed.
|
48
|
+
<% if node['apt']['unattended_upgrades']['mail'] -%>
|
49
|
+
Unattended-Upgrade::Mail "<%= node['apt']['unattended_upgrades']['mail'] %>";
|
50
|
+
<% end -%>
|
51
|
+
|
52
|
+
// Set this value to "true" to get emails only on errors. Default
|
53
|
+
// is to always send a mail if Unattended-Upgrade::Mail is set
|
54
|
+
Unattended-Upgrade::MailOnlyOnError "<%= node['apt']['unattended_upgrades']['mail_only_on_error'] ? 'true' : 'false' %>";
|
55
|
+
|
56
|
+
// Do automatic removal of new unused dependencies after the upgrade
|
57
|
+
// (equivalent to apt-get autoremove)
|
58
|
+
Unattended-Upgrade::Remove-Unused-Dependencies "<%= node['apt']['unattended_upgrades']['remove_unused_dependencies'] ? 'true' : 'false' %>";
|
59
|
+
|
60
|
+
// Automatically reboot *WITHOUT CONFIRMATION* if a
|
61
|
+
// the file /var/run/reboot-required is found after the upgrade
|
62
|
+
Unattended-Upgrade::Automatic-Reboot "<%= node['apt']['unattended_upgrades']['automatic_reboot'] ? 'true' : 'false' %>";
|
63
|
+
|
64
|
+
// If automatic reboot is enabled and needed, reboot at the specific
|
65
|
+
// time instead of immediately
|
66
|
+
// Default: "now"
|
67
|
+
<% if node['apt']['unattended_upgrades']['automatic_reboot'] -%>
|
68
|
+
Unattended-Upgrade::Automatic-Reboot-Time "<%= node['apt']['unattended_upgrades']['automatic_reboot_time'] %>";
|
69
|
+
<% end %>
|
70
|
+
|
71
|
+
// Use apt bandwidth limit feature, this example limits the download
|
72
|
+
// speed to 70kb/sec
|
73
|
+
<% if node['apt']['unattended_upgrades']['dl_limit'] -%>
|
74
|
+
Acquire::http::Dl-Limit "<%= node['apt']['unattended_upgrades']['dl_limit'] %>";
|
75
|
+
<% end -%>
|
@@ -0,0 +1,275 @@
|
|
1
|
+
# Letter case in directive names does not matter. Must be separated with colons.
|
2
|
+
# Valid boolean values are a zero number for false, non-zero numbers for true.
|
3
|
+
|
4
|
+
CacheDir: <%= node['apt']['cacher_dir'] %>
|
5
|
+
|
6
|
+
# set empty to disable logging
|
7
|
+
LogDir: /var/log/apt-cacher-ng
|
8
|
+
|
9
|
+
# place to look for additional configuration and resource files if they are not
|
10
|
+
# found in the configuration directory
|
11
|
+
# SupportDir: /usr/lib/apt-cacher-ng
|
12
|
+
|
13
|
+
# TCP (http) port
|
14
|
+
# Set to 9999 to emulate apt-proxy
|
15
|
+
Port:<%= node['apt']['cacher_port'] %>
|
16
|
+
|
17
|
+
# Addresses or hostnames to listen on. Multiple addresses must be separated by
|
18
|
+
# spaces. Each entry must be an exact local address which is associated with a
|
19
|
+
# local interface. DNS resolution is performed using getaddrinfo(3) for all
|
20
|
+
# available protocols (IPv4, IPv6, ...). Using a protocol specific format will
|
21
|
+
# create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen
|
22
|
+
# only to IPv4).
|
23
|
+
#
|
24
|
+
# Default: not set, will listen on all interfaces and protocols
|
25
|
+
#
|
26
|
+
# BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
|
27
|
+
|
28
|
+
# The specification of another proxy which shall be used for downloads.
|
29
|
+
# Username and password are, and see manual for limitations.
|
30
|
+
#
|
31
|
+
#Proxy: http://www-proxy.example.net:80
|
32
|
+
#proxy: username:proxypassword@proxy.example.net:3128
|
33
|
+
|
34
|
+
# Repository remapping. See manual for details.
|
35
|
+
# In this example, some backends files might be generated during package
|
36
|
+
# installation using information collected on the system.
|
37
|
+
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
|
38
|
+
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
|
39
|
+
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
|
40
|
+
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
|
41
|
+
Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here
|
42
|
+
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux
|
43
|
+
Remap-fedora: file:fedora_mirrors # Fedora Linux
|
44
|
+
Remap-epel: file:epel_mirrors # Fedora EPEL
|
45
|
+
Remap-slrep: file:sl_mirrors # Scientific Linux
|
46
|
+
|
47
|
+
# This is usually not needed for security.debian.org because it's always the
|
48
|
+
# same DNS hostname. However, it might be enabled in order to use hooks,
|
49
|
+
# ForceManaged mode or special flags in this context.
|
50
|
+
# Remap-secdeb: security.debian.org
|
51
|
+
|
52
|
+
# Virtual page accessible in a web browser to see statistics and status
|
53
|
+
# information, i.e. under http://localhost:3142/acng-report.html
|
54
|
+
ReportPage: acng-report.html
|
55
|
+
|
56
|
+
# Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
|
57
|
+
# used with inetd bridge or cron client.
|
58
|
+
# SocketPath:/var/run/apt-cacher-ng/socket
|
59
|
+
|
60
|
+
# Forces log file to be written to disk after every line when set to 1. Default
|
61
|
+
# is 0, buffers are flushed when the client disconnects.
|
62
|
+
#
|
63
|
+
# (technically, alias to the Debug option, see its documentation for details)
|
64
|
+
#
|
65
|
+
# UnbufferLogs: 0
|
66
|
+
|
67
|
+
# Set to 0 to store only type, time and transfer sizes.
|
68
|
+
# 1 -> client IP and relative local path are logged too
|
69
|
+
# VerboseLog: 1
|
70
|
+
|
71
|
+
# Don't detach from the console
|
72
|
+
# ForeGround: 0
|
73
|
+
|
74
|
+
# Store the pid of the daemon process therein
|
75
|
+
# PidFile: /var/run/apt-cacher-ng/pid
|
76
|
+
|
77
|
+
# Forbid outgoing connections, work around them or respond with 503 error
|
78
|
+
# offlinemode:0
|
79
|
+
|
80
|
+
# Forbid all downloads that don't run through preconfigured backends (.where)
|
81
|
+
#ForceManaged: 0
|
82
|
+
|
83
|
+
# Days before considering an unreferenced file expired (to be deleted).
|
84
|
+
# Warning: if the value is set too low and particular index files are not
|
85
|
+
# available for some days (mirror downtime) there is a risk of deletion of
|
86
|
+
# still useful package files.
|
87
|
+
ExTreshold: 4
|
88
|
+
|
89
|
+
# Stop expiration when a critical problem appeared. Currently only failed
|
90
|
+
# refresh of an index file is considered as critical.
|
91
|
+
#
|
92
|
+
# WARNING: don't touch this option or set to zero.
|
93
|
+
# Anything else is DANGEROUS and may cause data loss.
|
94
|
+
#
|
95
|
+
# ExAbortOnProblems: 1
|
96
|
+
|
97
|
+
# Replace some Windows/DOS-FS incompatible chars when storing
|
98
|
+
# StupidFs: 0
|
99
|
+
|
100
|
+
# Experimental feature for apt-listbugs: pass-through SOAP requests and
|
101
|
+
# responses to/from bugs.debian.org. If not set, default is true if
|
102
|
+
# ForceManaged is enabled and false otherwise.
|
103
|
+
# ForwardBtsSoap: 1
|
104
|
+
|
105
|
+
# The daemon has a small cache for DNS data, to speed up resolution. The
|
106
|
+
# expiration time of the DNS entries can be configured in seconds.
|
107
|
+
# DnsCacheSeconds: 3600
|
108
|
+
|
109
|
+
# Don't touch the following values without good consideration!
|
110
|
+
#
|
111
|
+
# Max. count of connection threads kept ready (for faster response in the
|
112
|
+
# future). Should be a sane value between 0 and average number of connections,
|
113
|
+
# and depend on the amount of spare RAM.
|
114
|
+
# MaxStandbyConThreads: 8
|
115
|
+
#
|
116
|
+
# Hard limit of active thread count for incoming connections, i.e. operation
|
117
|
+
# is refused when this value is reached (below zero = unlimited).
|
118
|
+
# MaxConThreads: -1
|
119
|
+
#
|
120
|
+
# Pigeonholing files with regular expressions (static/volatile). Can be
|
121
|
+
# overriden here but not should not be done permanently because future update
|
122
|
+
# of default settings would not be applied later.
|
123
|
+
# 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/.*
|
124
|
+
# 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/.*)$
|
125
|
+
# Whitelist for expiration, file types not to be removed even when being
|
126
|
+
# unreferenced. Default: many parts from VfilePattern where no parent index
|
127
|
+
# exists or might be unknown.
|
128
|
+
# 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/.*
|
129
|
+
|
130
|
+
# Higher modes only working with the debug version
|
131
|
+
# Warning, writes a lot into apt-cacher.err logfile
|
132
|
+
# Value overwrites UnbufferLogs setting (aliased)
|
133
|
+
# Debug:3
|
134
|
+
|
135
|
+
# Usually, general purpose proxies like Squid expose the IP address of the
|
136
|
+
# client user to the remote server using the X-Forwarded-For HTTP header. This
|
137
|
+
# behaviour can be optionally turned on with the Expose-Origin option.
|
138
|
+
# ExposeOrigin: 0
|
139
|
+
|
140
|
+
# When logging the originating IP address, trust the information supplied by
|
141
|
+
# the client in the X-Forwarded-For header.
|
142
|
+
# LogSubmittedOrigin: 0
|
143
|
+
|
144
|
+
# The version string reported to the peer, to be displayed as HTTP client (and
|
145
|
+
# version) in the logs of the mirror.
|
146
|
+
# WARNING: some archives use this header to detect/guess capabilities of the
|
147
|
+
# client (i.e. redirection support) and change the behaviour accordingly, while
|
148
|
+
# ACNG might not support the expected features. Expect side effects.
|
149
|
+
#
|
150
|
+
# UserAgent: Yet Another HTTP Client/1.2.3p4
|
151
|
+
|
152
|
+
# In some cases the Import and Expiration tasks might create fresh volatile
|
153
|
+
# data for internal use by reconstructing them using patch files. This
|
154
|
+
# by-product might be recompressed with bzip2 and with some luck the resulting
|
155
|
+
# file becomes identical to the *.bz2 file on the server, usable for APT
|
156
|
+
# clients trying to fetch the full .bz2 compressed version. Injection of the
|
157
|
+
# generated files into the cache has however a disadvantage on underpowered
|
158
|
+
# servers: bzip2 compression can create high load on the server system and the
|
159
|
+
# visible download of the busy .bz2 files also becomes slower.
|
160
|
+
#
|
161
|
+
# RecompBz2: 0
|
162
|
+
|
163
|
+
# Network timeout for outgoing connections.
|
164
|
+
# NetworkTimeout: 60
|
165
|
+
|
166
|
+
# Sometimes it makes sense to not store the data in cache and just return the
|
167
|
+
# package data to client as it comes in. DontCache parameters can enable this
|
168
|
+
# behaviour for certain URL types. The tokens are extended regular expressions
|
169
|
+
# that URLs are matched against.
|
170
|
+
#
|
171
|
+
# DontCacheRequested is applied to the URL as it comes in from the client.
|
172
|
+
# Example: exclude packages built with kernel-package for x86
|
173
|
+
# DontCacheRequested: linux-.*_10\...\.Custo._i386
|
174
|
+
# Example usecase: exclude popular private IP ranges from caching
|
175
|
+
# DontCacheRequested: 192.168.0 ^10\..* 172.30
|
176
|
+
#
|
177
|
+
# DontCacheResolved is applied to URLs after mapping to the target server. If
|
178
|
+
# multiple backend servers are specified then it's only matched against the
|
179
|
+
# download link for the FIRST possible source (due to implementation limits).
|
180
|
+
# Example usecase: all Ubuntu stuff comes from a local mirror (specified as
|
181
|
+
# backend), don't cache it again:
|
182
|
+
# DontCacheResolved: ubuntumirror.local.net
|
183
|
+
#
|
184
|
+
# DontCache directive sets (overrides) both, DontCacheResolved and
|
185
|
+
# DontCacheRequested. Provided for convenience, see those directives for
|
186
|
+
# details.
|
187
|
+
#
|
188
|
+
# Default permission set of freshly created files and directories, as octal
|
189
|
+
# numbers (see chmod(1) for details).
|
190
|
+
# Can by limited by the umask value (see umask(2) for details) if it's set in
|
191
|
+
# the environment of the starting shell, e.g. in apt-cacher-ng init script or
|
192
|
+
# in its configuration file.
|
193
|
+
# DirPerms: 00755
|
194
|
+
# FilePerms: 00664
|
195
|
+
#
|
196
|
+
#
|
197
|
+
# It's possible to use use apt-cacher-ng as a regular web server with limited
|
198
|
+
# feature set, i.e.
|
199
|
+
# including directory browsing and download of any file;
|
200
|
+
# excluding sorting, mime types/encodings, CGI execution, index page
|
201
|
+
# redirection and other funny things.
|
202
|
+
# To get this behavior, mappings between virtual directories and real
|
203
|
+
# directories on the server must be defined with the LocalDirs directive.
|
204
|
+
# Virtual and real dirs are separated by spaces, multiple pairs are separated
|
205
|
+
# by semi-colons. Real directories must be absolute paths.
|
206
|
+
# NOTE: Since the names of that key directories share the same namespace as
|
207
|
+
# repository names (see Remap-...) it's administrators job to avoid such
|
208
|
+
# collisions on them (unless created deliberately).
|
209
|
+
#
|
210
|
+
# LocalDirs: woo /data/debarchive/woody ; hamm /data/debarchive/hamm
|
211
|
+
|
212
|
+
# Precache a set of files referenced by specified index files. This can be used
|
213
|
+
# to create a partial mirror usable for offline work. There are certain limits
|
214
|
+
# and restrictions on the path specification, see manual for details. A list of
|
215
|
+
# (maybe) relevant index files could be retrieved via
|
216
|
+
# "apt-get --print-uris update" on a client machine.
|
217
|
+
#
|
218
|
+
# PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages*
|
219
|
+
|
220
|
+
# Arbitrary set of data to append to request headers sent over the wire. Should
|
221
|
+
# be a well formated HTTP headers part including newlines (DOS style) which
|
222
|
+
# can be entered as escape sequences (\r\n).
|
223
|
+
# RequestAppendix: X-Tracking-Choice: do-not-track\r\n
|
224
|
+
|
225
|
+
# Specifies the IP protocol families to use for remote connections. Order does
|
226
|
+
# matter, first specified are considered first. Possible combinations:
|
227
|
+
# v6 v4
|
228
|
+
# v4 v6
|
229
|
+
# v6
|
230
|
+
# v4
|
231
|
+
# (empty or not set: use system default)
|
232
|
+
#
|
233
|
+
# ConnectProto: v6 v4
|
234
|
+
|
235
|
+
# Regular expiration algorithm finds package files which are no longer listed
|
236
|
+
# in any index file and removes them of them after a safety period.
|
237
|
+
# This option allows to keep more versions of a package in the cache after
|
238
|
+
# safety period is over.
|
239
|
+
# KeepExtraVersions: 1
|
240
|
+
|
241
|
+
# Optionally uses TCP access control provided by libwrap, see hosts_access(5)
|
242
|
+
# for details. Daemon name is apt-cacher-ng. Default if not set: decided on
|
243
|
+
# startup by looking for explicit mentioning of apt-cacher-ng in
|
244
|
+
# /etc/hosts.allow or /etc/hosts.deny files.
|
245
|
+
# UseWrap: 0
|
246
|
+
|
247
|
+
# If many machines from the same local network attempt to update index files
|
248
|
+
# (apt-get update) at nearly the same time, the known state of these index file
|
249
|
+
# is temporarily frozen and multiple requests receive the cached response
|
250
|
+
# without contacting the server. This parameter (in seconds) specifies the
|
251
|
+
# length of this period before the files are considered outdated.
|
252
|
+
# Setting it too low transfers more data and increases remote server load,
|
253
|
+
# setting it too high (more than a couple of minutes) increases the risk of
|
254
|
+
# delivering inconsistent responses to the clients.
|
255
|
+
# FreshIndexMaxAge: 27
|
256
|
+
|
257
|
+
# Usually the users are not allowed to specify custom TCP ports of remote
|
258
|
+
# mirrors in the requests, only the default HTTP port can be used (instead,
|
259
|
+
# proxy administrator can create Remap- rules with custom ports). This
|
260
|
+
# restriction can be disabled by specifying a list of allowed ports or 0 for
|
261
|
+
# any port.
|
262
|
+
#
|
263
|
+
# AllowUserPorts: 80
|
264
|
+
|
265
|
+
# Normally the HTTP redirection responses are forwarded to the original caller
|
266
|
+
# (i.e. APT) which starts a new download attempt from the new URL. This
|
267
|
+
# solution is ok for client configurations with proxy mode but doesn't work
|
268
|
+
# well with configurations using URL prefixes. To work around this the server
|
269
|
+
# can restart its own download with another URL. However, this might be used to
|
270
|
+
# circumvent download source policies by malicious users.
|
271
|
+
# The RedirMax option specifies how many such redirects the server should
|
272
|
+
# follow per request, 0 disables the internal redirection. If not set,
|
273
|
+
# default value is 0 if ForceManaged is used and 5 otherwise.
|
274
|
+
#
|
275
|
+
# RedirMax: 5
|
@@ -0,0 +1 @@
|
|
1
|
+
unattended-upgrades unattended-upgrades/enable_auto_updates boolean <%= node['apt']['unattended_upgrades']['enable'] ? 'true' : 'false' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
~FC016
|