зеркало из https://github.com/Azure/aks-engine.git
fix: disable unattended upgrades during CSE execution (#1681)
* fix: disable unattended upgrades during CSE execution Signed-off-by: Sylvain Rabot <s.rabot@lectra.com> * style: remove comments to save CSE bytes Co-authored-by: Matt Boersma <Matt.Boersma@microsoft.com>
This commit is contained in:
Родитель
fc1fd2b7ad
Коммит
0fff207820
|
@ -247,6 +247,9 @@ if $FULL_INSTALL_REQUIRED; then
|
|||
fi
|
||||
{{end}}
|
||||
|
||||
{{- /* re-enable unattended upgrades */}}
|
||||
rm -f /etc/apt/apt.conf.d/99periodic
|
||||
|
||||
{{- if not IsAzureStackCloud}}
|
||||
if [[ $OS == $UBUNTU_OS_NAME ]]; then
|
||||
time_metric "PurgeApt" apt_get_purge apache2-utils &
|
||||
|
|
|
@ -133,6 +133,15 @@ write_files:
|
|||
{{CloudInitData "aptPreferences"}}
|
||||
{{end}}
|
||||
|
||||
- path: /etc/apt/apt.conf.d/99periodic
|
||||
permissions: "0644"
|
||||
owner: root
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "0";
|
||||
APT::Periodic::Download-Upgradeable-Packages "0";
|
||||
APT::Periodic::AutocleanInterval "0";
|
||||
APT::Periodic::Unattended-Upgrade "0";
|
||||
|
||||
{{if IsIPv6Enabled}}
|
||||
- path: {{GetDHCPv6ServiceCSEScriptFilepath}}
|
||||
permissions: "0644"
|
||||
|
|
|
@ -127,6 +127,15 @@ write_files:
|
|||
{{CloudInitData "aptPreferences"}}
|
||||
{{end}}
|
||||
|
||||
- path: /etc/apt/apt.conf.d/99periodic
|
||||
permissions: "0644"
|
||||
owner: root
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "0";
|
||||
APT::Periodic::Download-Upgradeable-Packages "0";
|
||||
APT::Periodic::AutocleanInterval "0";
|
||||
APT::Periodic::Unattended-Upgrade "0";
|
||||
|
||||
{{if IsIPv6Enabled}}
|
||||
- path: {{GetDHCPv6ServiceCSEScriptFilepath}}
|
||||
permissions: "0644"
|
||||
|
|
|
@ -41272,6 +41272,9 @@ if $FULL_INSTALL_REQUIRED; then
|
|||
fi
|
||||
{{end}}
|
||||
|
||||
{{- /* re-enable unattended upgrades */}}
|
||||
rm -f /etc/apt/apt.conf.d/99periodic
|
||||
|
||||
{{- if not IsAzureStackCloud}}
|
||||
if [[ $OS == $UBUNTU_OS_NAME ]]; then
|
||||
time_metric "PurgeApt" apt_get_purge apache2-utils &
|
||||
|
@ -42785,6 +42788,15 @@ write_files:
|
|||
{{CloudInitData "aptPreferences"}}
|
||||
{{end}}
|
||||
|
||||
- path: /etc/apt/apt.conf.d/99periodic
|
||||
permissions: "0644"
|
||||
owner: root
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "0";
|
||||
APT::Periodic::Download-Upgradeable-Packages "0";
|
||||
APT::Periodic::AutocleanInterval "0";
|
||||
APT::Periodic::Unattended-Upgrade "0";
|
||||
|
||||
{{if IsIPv6Enabled}}
|
||||
- path: {{GetDHCPv6ServiceCSEScriptFilepath}}
|
||||
permissions: "0644"
|
||||
|
@ -43299,6 +43311,15 @@ write_files:
|
|||
{{CloudInitData "aptPreferences"}}
|
||||
{{end}}
|
||||
|
||||
- path: /etc/apt/apt.conf.d/99periodic
|
||||
permissions: "0644"
|
||||
owner: root
|
||||
content: |
|
||||
APT::Periodic::Update-Package-Lists "0";
|
||||
APT::Periodic::Download-Upgradeable-Packages "0";
|
||||
APT::Periodic::AutocleanInterval "0";
|
||||
APT::Periodic::Unattended-Upgrade "0";
|
||||
|
||||
{{if IsIPv6Enabled}}
|
||||
- path: {{GetDHCPv6ServiceCSEScriptFilepath}}
|
||||
permissions: "0644"
|
||||
|
|
Загрузка…
Ссылка в новой задаче