From 3dcc25f760f4806eff758501f95b5ae2a0df57c5 Mon Sep 17 00:00:00 2001 From: Mason Malone Date: Mon, 26 Oct 2015 13:25:14 -0400 Subject: [PATCH] Fix jira::mysql_connector_url It seems http://cdn.mysql.com only hosts the latest version of mysql-connector-java, which is currently 5.1.38. However, jira::mysql_connector_versions specifies an old version (5.1.34), which results in a 404: http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz Fortunately, it seems https://dev.mysql.com/ has all the old versions. Plus, it uses SSL. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz --- manifests/init.pp | 2 +- spec/classes/jira_mysql_connector_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 24cae384..f5754454 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -62,7 +62,7 @@ $mysql_connector_product = 'mysql-connector-java', $mysql_connector_format = 'tar.gz', $mysql_connector_install = '/opt/MySQL-connector', - $mysql_connector_URL = 'http://cdn.mysql.com/Downloads/Connector-J', + $mysql_connector_URL = 'https://dev.mysql.com/get/Downloads/Connector-J', # Configure database settings if you are pooling connections $enable_connection_pooling = false, diff --git a/spec/classes/jira_mysql_connector_spec.rb b/spec/classes/jira_mysql_connector_spec.rb index 89ea3770..cec51d4e 100644 --- a/spec/classes/jira_mysql_connector_spec.rb +++ b/spec/classes/jira_mysql_connector_spec.rb @@ -24,7 +24,7 @@ } it 'should deploy mysql connector 5.1.34 from tar.gz' do should contain_staging__file("mysql-connector-java-5.1.34.tar.gz").with({ - 'source' => 'http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz', + 'source' => 'https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz', }) should contain_staging__extract("mysql-connector-java-5.1.34.tar.gz").with({ 'target' => '/opt/MySQL-connector',