From 8a5282f8642f8240ab514d613f6b9f6462347a77 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Wed, 11 Jan 2017 20:52:23 +0200 Subject: [PATCH] Add support of Consul 0.7.2 --- attributes/default.rb | 2 +- libraries/consul_installation_binary.rb | 11 +++++++++++ test/integration/helpers/serverspec/spec_helper.rb | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index 3aaf95ea..b722d165 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -32,7 +32,7 @@ default['consul']['service']['config_dir'] = join_path config_prefix_path, 'conf.d' -default['consul']['version'] = '0.7.1' +default['consul']['version'] = '0.7.2' # Windows only default['consul']['service']['nssm_params'] = { diff --git a/libraries/consul_installation_binary.rb b/libraries/consul_installation_binary.rb index 1ea3cd31..f4ff6878 100644 --- a/libraries/consul_installation_binary.rb +++ b/libraries/consul_installation_binary.rb @@ -100,6 +100,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then '75422bbd26107cfc5dfa7bbb65c1d8540a5193796b5c6b272d8d70b094b26488' when '0.7.0' then '74111674527c5be0db7a98600df8290395abdd94e2cd86bda7418d748413396d' when '0.7.1' then '9b3a199779a0d9b92266fae2abd7ed91c18ba437eba46e76114cd1940b3b7741' + when '0.7.2' then '4403357fbfddbcdd0742946cab7856638cb0f15898c75d79d155753621d60b0c' end when 'darwin-i386' case resource.version @@ -110,6 +111,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then '4cd39e968ca6bed0888f831a2fc438ffe0b48dab863c822e777f5b5219bacf5c' when '0.7.0' then '16ab91969c9b268ccae532070221b6c4fecaad298e4662a46cdfe9847c80dd3f' when '0.7.1' then '668b0a5c577fc717de710391fa509a820c5640d73ab3b232023fc351e6084c36' + when '0.7.2' then '23e6e8dd14c2be02fd095a865edd1725f5ccdbce1109ad5f70832866012d1d7f' end when 'solaris-amd64' case resource.version @@ -118,6 +120,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'c26a64310f83c3ba388c78d5b89d640d961ae9eabe221c244bfffcfa753966bd' when '0.7.0' then '0f1db173a95861bc84940b4dcdb2debfbfbc18f2b50e651d0e23dfda331018ea' when '0.7.1' then '9c77c5c904dce4832b9e7dede2cdc5f42f5fb360885583bc414fee868aed5cb9' + when '0.7.2' then 'f1ccaf9d9dd62544323e130cee7221df2a6d4b577e9e4a120db357e59782f12d' end when 'windows-amd64' case resource.version @@ -128,6 +131,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then '1ca3cc2943b27ec8968665efce1122d4ea355ccbde5b4807753af71f11190a9b' when '0.7.0' then 'ac5973a58dd9c6f52c784a7106a29adcf7c94015036538155b6c0ee7efc3a330' when '0.7.1' then '71a4e073cbab336c0becb5c17a0173fdae56480558564138353dc0b89e989d82' + when '0.7.2' then '7a5ec31018328a3764f22327c940765c9cd99e57c6759fc43fbfed8318d5e379' end when 'windows-i386' case resource.version @@ -141,6 +145,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then '6555f0fff6c3f9ea310c94a73365d9892afc255efb47c85041ad1c0ede854b87' when '0.7.0' then 'd0ddfe7d1de9879f02b0d110e45bb74cd5028a2910bcac8b2629d0659367cd96' when '0.7.1' then 'ad7b76ac8660c7417bbdccbe1905942fa2fcc4c53a093d7b2d64497bdf4fc315' + when '0.7.2' then 'c041dc43995df3505d9146e3a2f532bfc491c49fb644bd1e2ceead7d7dc3011c' end when 'linux-amd64' case resource.version @@ -154,6 +159,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'abdf0e1856292468e2c9971420d73b805e93888e006c76324ae39416edcf0627' when '0.7.0' then 'b350591af10d7d23514ebaa0565638539900cdb3aaa048f077217c4c46653dd8' when '0.7.1' then '5dbfc555352bded8a39c7a8bf28b5d7cf47dec493bc0496e21603c84dfe41b4b' + when '0.7.2' then 'aa97f4e5a552d986b2a36d48fdc3a4a909463e7de5f726f3c5a89b8a1be74a58' end when 'linux-i386' case resource.version @@ -167,6 +173,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'dbaf5ad1c95aa7dce1625d61b6686d3775e53cb3e7d6c426d29ea96622d248a8' when '0.7.0' then 'babf618b1f10455b4ab65b91bdf5d5a7be5bfbb874ce41e8051caca884c43378' when '0.7.1' then '7a391a9adc251a5889405eab5512668b77e6ac0f7d818852928735fa82e8abad' + when '0.7.2' then '43b22bcd04e74445c3ea6c143b3acbfe5546d6792c28d123ef5832cd8f96162f' end when 'linux-arm' case resource.version @@ -177,6 +184,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then '81200fc8b7965dfc6048c336925211eaf2c7247be5d050946a5dd4d53ec9817e' when '0.7.0' then '7c9ee149d66d14cc8aa81b8d86e7df5a27876216578ab841ab3921e7f4a0ce4b' when '0.7.1' then 'e7b6846fb338c31e238f9b70cc42bd35f7de804cc31d2d91fe23cbe5de948aae' + when '0.7.2' then 'e18934a3a38b980bc0cfaa8d74379a6bfe58cf1ecf4b164e28ff37dd6c7198b0' end when 'freebsd-amd64' case resource.version @@ -187,6 +195,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'fe0b04a2111c6274e79cc86a91b48cb63879f0badd4d6dc848cb7105a572c7fd' when '0.7.0' then '54c864ce0deeeb01d10752a787c3bc3154d6fb020859fcc8b089ac3548756702' when '0.7.1' then '841e0c3406b967bef2e763d57d2827169e63156f972a1cc7894deb6d98a998d3' + when '0.7.2' then '2989fc85d8784ad658d42064d0b97a86efc34a8cff4c18c9a68604e43b44e665' end when 'freebsd-i386' case resource.version @@ -197,6 +206,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'c2d0f7d5f785a83eeb962209a35ebb577b41c7f8cb1f78bf68a42e8f8be77d22' when '0.7.0' then 'fe7f80ce8fcdd517f4228b66a4836119ad6e22c2a5285cf4de02c0ccf8c2eefd' when '0.7.1' then 'ec4abcc0d16b480a59a7efec7533fdb0925d96b1f9d1034eac4e1648f7c5b749' + when '0.7.2' then 'b4cae7c51716dbff399e52881422218ccbca3aa02f6db5b87da41eccb9dd8f8f' end when 'freebsd-arm' case resource.version @@ -207,6 +217,7 @@ def self.binary_checksum(node, resource) when '0.6.4' then 'edf3862e3fef6a48ede1d2671fe6b8da8891ca57bd5381b8a19d8d1b68e4d5da' when '0.7.0' then '1b16624f3581a7bef5328d17ff4ab9188ffdd07543cab3fb72b3cd7a7d469724' when '0.7.1' then '4e32d717f8699b7f3b2ce6bd5b5d04ef63cfce5509ad185b996e9cf35518f7fe' + when '0.7.2' then 'f86fa7f17a37a8e8047cd7b7bb10c8ee42d3a201c0fa527650331e9ad4e92203' end end end diff --git a/test/integration/helpers/serverspec/spec_helper.rb b/test/integration/helpers/serverspec/spec_helper.rb index 8a144dab..d680e3dd 100644 --- a/test/integration/helpers/serverspec/spec_helper.rb +++ b/test/integration/helpers/serverspec/spec_helper.rb @@ -5,7 +5,7 @@ def windows? end def consul_version - '0.7.1' + '0.7.2' end if !windows?