Skip to content

Commit c2ba5c9

Browse files
authored
Merge pull request #681 from bastelfreak/version
Update default version from 1.16.3->1.20.0
2 parents b1ede8b + a306a59 commit c2ba5c9

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ Data type: `String[1]`
552552

553553
Specify version of consul binary to download.
554554

555-
Default value: `'1.16.3'`
555+
Default value: `'1.20.0'`
556556

557557
##### <a name="-consul--watches"></a>`watches`
558558

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
Enum['stopped', 'running'] $service_ensure = 'running',
141141
Hash $services = {},
142142
String[1] $user = $consul::params::user,
143-
String[1] $version = '1.16.3',
143+
String[1] $version = '1.20.0',
144144
Hash $watches = {},
145145
Optional[String[1]] $shell = $consul::params::shell,
146146
Boolean $enable_beta_ui = false,

spec/acceptance/class_spec.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
pp = <<-EOS
77
package { 'unzip': ensure => present }
88
-> class { 'consul':
9-
version => '1.16.0',
9+
version => '1.16.3',
1010
manage_service => true,
1111
config_hash => {
1212
'data_dir' => '/opt/consul',
@@ -32,7 +32,7 @@
3232
end
3333

3434
describe command('consul version') do
35-
its(:stdout) { is_expected.to match %r{Consul v1.16.0} }
35+
its(:stdout) { is_expected.to match %r{Consul v1.16.3} }
3636
end
3737

3838
describe file('/etc/consul/config.json') do
@@ -46,7 +46,7 @@
4646
pp = <<-EOS
4747
package { 'unzip': ensure => present }
4848
-> class { 'consul':
49-
version => '1.16.3',
49+
version => '1.20.0',
5050
manage_service => true,
5151
config_hash => {
5252
'datacenter' => 'east-aws',
@@ -73,7 +73,7 @@
7373
end
7474

7575
describe command('consul version') do
76-
its(:stdout) { is_expected.to match %r{Consul v1.16.3} }
76+
its(:stdout) { is_expected.to match %r{Consul v1.20.0} }
7777
end
7878

7979
describe file('/etc/consul/config.json') do
@@ -87,7 +87,6 @@
8787
pp = <<-EOS
8888
package { 'unzip': ensure => present }
8989
-> class { 'consul':
90-
version => '1.16.3',
9190
manage_service => true,
9291
config_hash => {
9392
'datacenter' => 'east-aws',
@@ -117,7 +116,7 @@
117116
end
118117

119118
describe command('consul version') do
120-
its(:stdout) { is_expected.to match %r{Consul v1.16.3} }
119+
its(:stdout) { is_expected.to match %r{Consul v1.20.0} }
121120
end
122121

123122
describe file('/etc/consul/config.json') do
@@ -133,7 +132,6 @@
133132
pp = <<-EOS
134133
package { 'unzip': ensure => present }
135134
-> class { 'consul':
136-
version => '1.16.3',
137135
manage_service => true,
138136
config_hash => {
139137
'datacenter' => 'east-aws',
@@ -207,7 +205,7 @@
207205
end
208206

209207
describe command('consul version') do
210-
its(:stdout) { is_expected.to match %r{Consul v1.16.3} }
208+
its(:stdout) { is_expected.to match %r{Consul v1.20.0} }
211209
end
212210

213211
describe command("consul acl token list --token #{acl_master_token} | grep Description") do

spec/classes/init_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@
145145
end
146146

147147
context 'When installing via URL by default' do
148-
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.16.3.zip').with(source: 'https://releases.hashicorp.com/consul/1.16.3/consul_1.16.3_linux_amd64.zip') }
148+
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.20.0.zip').with(source: 'https://releases.hashicorp.com/consul/1.20.0/consul_1.20.0_linux_amd64.zip') }
149149
it { is_expected.to contain_file('/opt/consul/archives').with(ensure: 'directory') }
150-
it { is_expected.to contain_file('/opt/consul/archives/consul-1.16.3').with(ensure: 'directory') }
150+
it { is_expected.to contain_file('/opt/consul/archives/consul-1.20.0').with(ensure: 'directory') }
151151
it { is_expected.to contain_file('/usr/local/bin/consul').that_notifies('Class[consul::run_service]') }
152152
end
153153

@@ -158,20 +158,20 @@
158158
}
159159
end
160160

161-
it { is_expected.to contain_archive('/usr/share/puppet-archive/consul-1.16.3.zip').with(source: 'https://releases.hashicorp.com/consul/1.16.3/consul_1.16.3_linux_amd64.zip') }
161+
it { is_expected.to contain_archive('/usr/share/puppet-archive/consul-1.20.0.zip').with(source: 'https://releases.hashicorp.com/consul/1.20.0/consul_1.20.0_linux_amd64.zip') }
162162
it { is_expected.to contain_file('/usr/share/puppet-archive').with(ensure: 'directory') }
163-
it { is_expected.to contain_file('/usr/share/puppet-archive/consul-1.16.3').with(ensure: 'directory') }
163+
it { is_expected.to contain_file('/usr/share/puppet-archive/consul-1.20.0').with(ensure: 'directory') }
164164
it { is_expected.to contain_file('/usr/local/bin/consul').that_notifies('Class[consul::run_service]') }
165165
end
166166

167167
context 'When installing by archive via URL and current version is already installed' do
168168
let(:facts) do
169169
os_facts.merge({
170-
consul_version: '1.16.3'
170+
consul_version: '1.20.0'
171171
})
172172
end
173173

174-
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.16.3.zip').with(source: 'https://releases.hashicorp.com/consul/1.16.3/consul_1.16.3_linux_amd64.zip') }
174+
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.20.0.zip').with(source: 'https://releases.hashicorp.com/consul/1.20.0/consul_1.20.0_linux_amd64.zip') }
175175
it { is_expected.to contain_file('/usr/local/bin/consul') }
176176
it { is_expected.not_to contain_notify(['Class[consul::run_service]']) }
177177
end
@@ -194,7 +194,7 @@
194194
}
195195
end
196196

197-
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.16.3.zip').with(source: 'http://myurl') }
197+
it { is_expected.to contain_archive('/opt/consul/archives/consul-1.20.0.zip').with(source: 'http://myurl') }
198198
it { is_expected.to contain_file('/usr/local/bin/consul').that_notifies('Class[consul::run_service]') }
199199
end
200200

0 commit comments

Comments
 (0)