Showing with 14 additions and 14 deletions.
  1. +8 −9 CHANGELOG.md
  2. +4 −2 manifests/backend.pp
  3. +1 −1 metadata.json
  4. +1 −2 spec/classes/backend_spec.rb
17 changes: 8 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [v4.13.1](https://github.com/sensu/sensu-puppet/tree/v4.13.1) (2020-08-13)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v4.13.0...v4.13.1)

### Fixed

- Improve sensu-backend init [\#1264](https://github.com/sensu/sensu-puppet/pull/1264) ([treydock](https://github.com/treydock))

## [v4.13.0](https://github.com/sensu/sensu-puppet/tree/v4.13.0) (2020-08-10)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v4.12.0...v4.13.0)
Expand Down Expand Up @@ -214,10 +222,6 @@

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v3.13.0...v3.14.0)

### Added

- Support defining agent and backend service environment variables [\#1160](https://github.com/sensu/sensu-puppet/pull/1160) ([treydock](https://github.com/treydock))

## [v3.13.0](https://github.com/sensu/sensu-puppet/tree/v3.13.0) (2019-11-26)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v3.12.0...v3.13.0)
Expand Down Expand Up @@ -257,7 +261,6 @@
- Support Windows 2019 [\#1168](https://github.com/sensu/sensu-puppet/pull/1168) ([treydock](https://github.com/treydock))
- Improve release process [\#1166](https://github.com/sensu/sensu-puppet/pull/1166) ([treydock](https://github.com/treydock))
- \(ci\) Use correct Ruby version 2.5.7 for latest Puppet 6 tests [\#1165](https://github.com/sensu/sensu-puppet/pull/1165) ([ghoneycutt](https://github.com/ghoneycutt))
- Additional bolt tasks [\#1162](https://github.com/sensu/sensu-puppet/pull/1162) ([treydock](https://github.com/treydock))

### Fixed

Expand All @@ -267,10 +270,6 @@

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v3.9.0...v3.10.0)

### Added

- Initial work at design document [\#1161](https://github.com/sensu/sensu-puppet/pull/1161) ([treydock](https://github.com/treydock))

## [v3.9.0](https://github.com/sensu/sensu-puppet/tree/v3.9.0) (2019-10-10)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v3.8.0...v3.9.0)
Expand Down
6 changes: 4 additions & 2 deletions manifests/backend.pp
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,15 @@

exec { 'sensu-backend init':
path => '/usr/bin:/bin:/usr/sbin:/sbin',
refreshonly => true,
environment => [
'SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=admin',
"SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=${sensu::password}",
],
returns => [0, 3],
subscribe => Package['sensu-go-backend'],
# sensu-backend init will exit with code 3 if already run
# If exit code is 3, do not need to run sensu-backend init again
# If exit is not 3, run sensu-backend init
unless => 'sensu-backend init ; [ $? -eq 3 ] && exit 0 || exit 1',
require => Sensu_api_validator['sensu'],
before => [
Sensu_user['admin'],
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sensu-sensu",
"version": "4.13.0",
"version": "4.13.1",
"author": "sensu",
"summary": "A module to install the Sensu monitoring framework",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions spec/classes/backend_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,12 @@
it {
should contain_exec('sensu-backend init').with({
'path' => '/usr/bin:/bin:/usr/sbin:/sbin',
'refreshonly' => 'true',
'environment' => [
'SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=admin',
'SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=P@ssw0rd!',
],
'returns' => [0, 3],
'subscribe' => 'Package[sensu-go-backend]',
'unless' => 'sensu-backend init ; [ $? -eq 3 ] && exit 0 || exit 1',
'require' => 'Sensu_api_validator[sensu]',
'before' => [
'Sensu_user[admin]',
Expand Down