From 229c5fe4faab8a1322e56f2d225694a935b9a496 Mon Sep 17 00:00:00 2001 From: Erik Kennedy Date: Mon, 25 Nov 2019 20:31:15 -0800 Subject: [PATCH 1/3] update SUSE autorefresh parameter During a recent update to PE 2018.1.9 we encountered an issue with SUSE systems not being able to download the updated agent, because the repository would not refresh itself. This changes sets the autorefresh parameter to true to match other SUSE repos. --- manifests/osfamily/suse.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/osfamily/suse.pp b/manifests/osfamily/suse.pp index e1a5e9478..3f6f45a7c 100644 --- a/manifests/osfamily/suse.pp +++ b/manifests/osfamily/suse.pp @@ -97,7 +97,7 @@ $repo_settings = { 'name' => $repo_name, 'enabled' => '1', - 'autorefresh' => '0', + 'autorefresh' => '1', 'baseurl' => "${source}?ssl_verify=no", 'type' => 'rpm-md', } From 85252311399366dd77f33c94343011561b36c5f3 Mon Sep 17 00:00:00 2001 From: Erik Kennedy Date: Wed, 27 Nov 2019 00:51:04 -0800 Subject: [PATCH 2/3] also update spec test for autorefresh parameter --- spec/classes/puppet_agent_osfamily_suse_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/puppet_agent_osfamily_suse_spec.rb b/spec/classes/puppet_agent_osfamily_suse_spec.rb index b88b12f47..4ef4a49ae 100644 --- a/spec/classes/puppet_agent_osfamily_suse_spec.rb +++ b/spec/classes/puppet_agent_osfamily_suse_spec.rb @@ -112,7 +112,7 @@ { 'name' => 'pc_repo', 'enabled' => '1', - 'autorefresh' => '0', + 'autorefresh' => '1', 'baseurl' => "https://master.example.vm:8140/packages/2000.0.0/sles-#{os_version}-x86_64?ssl_verify=no", 'type' => 'rpm-md', }.each do |setting, value| From 91610547bdfba5b3826f3a88a2a562a8e4f9161e Mon Sep 17 00:00:00 2001 From: Erik Kennedy Date: Wed, 27 Nov 2019 00:51:04 -0800 Subject: [PATCH 3/3] MODULES-10618 : update SUSE autorefresh parameter --- spec/classes/puppet_agent_osfamily_suse_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/puppet_agent_osfamily_suse_spec.rb b/spec/classes/puppet_agent_osfamily_suse_spec.rb index b88b12f47..4ef4a49ae 100644 --- a/spec/classes/puppet_agent_osfamily_suse_spec.rb +++ b/spec/classes/puppet_agent_osfamily_suse_spec.rb @@ -112,7 +112,7 @@ { 'name' => 'pc_repo', 'enabled' => '1', - 'autorefresh' => '0', + 'autorefresh' => '1', 'baseurl' => "https://master.example.vm:8140/packages/2000.0.0/sles-#{os_version}-x86_64?ssl_verify=no", 'type' => 'rpm-md', }.each do |setting, value|