Skip to content

Commit

Permalink
Update default version from 1.16.3->1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 30, 2024
1 parent b1ede8b commit 4895498
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Data type: `String[1]`

Specify version of consul binary to download.

Default value: `'1.16.3'`
Default value: `'1.20.0'`

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

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
Enum['stopped', 'running'] $service_ensure = 'running',
Hash $services = {},
String[1] $user = $consul::params::user,
String[1] $version = '1.16.3',
String[1] $version = '1.20.0',
Hash $watches = {},
Optional[String[1]] $shell = $consul::params::shell,
Boolean $enable_beta_ui = false,
Expand Down
10 changes: 4 additions & 6 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pp = <<-EOS
package { 'unzip': ensure => present }
-> class { 'consul':
version => '1.16.0',
version => '1.16.3',
manage_service => true,
config_hash => {
'data_dir' => '/opt/consul',
Expand All @@ -32,7 +32,7 @@
end

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

describe file('/etc/consul/config.json') do
Expand All @@ -46,7 +46,7 @@
pp = <<-EOS
package { 'unzip': ensure => present }
-> class { 'consul':
version => '1.16.3',
version => '1.20.0',
manage_service => true,
config_hash => {
'datacenter' => 'east-aws',
Expand All @@ -73,7 +73,7 @@
end

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

describe file('/etc/consul/config.json') do
Expand All @@ -87,7 +87,6 @@
pp = <<-EOS
package { 'unzip': ensure => present }
-> class { 'consul':
version => '1.16.3',
manage_service => true,
config_hash => {
'datacenter' => 'east-aws',
Expand Down Expand Up @@ -133,7 +132,6 @@
pp = <<-EOS
package { 'unzip': ensure => present }
-> class { 'consul':
version => '1.16.3',
manage_service => true,
config_hash => {
'datacenter' => 'east-aws',
Expand Down

0 comments on commit 4895498

Please sign in to comment.