Showing with 407 additions and 395 deletions.
  1. +1 −1 .fixtures.yml
  2. +14 −7 CHANGELOG.md
  3. +10 −16 README.md
  4. +34 −15 REFERENCE.md
  5. +8 −7 lib/puppet/provider/sensu_api.rb
  6. +3 −1 lib/puppet/provider/sensu_user/sensu_api.rb
  7. +53 −48 lib/puppet/provider/sensu_user/sensuctl.rb
  8. +1 −37 lib/puppet/provider/sensuctl_configure/sensuctl.rb
  9. +1 −0 lib/puppet/type/sensu_ad_auth.rb
  10. +0 −5 lib/puppet/type/sensu_api_config.rb
  11. +1 −0 lib/puppet/type/sensu_asset.rb
  12. +1 −0 lib/puppet/type/sensu_bonsai_asset.rb
  13. +2 −1 lib/puppet/type/sensu_check.rb
  14. +1 −0 lib/puppet/type/sensu_cluster_federation.rb
  15. +1 −0 lib/puppet/type/sensu_cluster_federation_member.rb
  16. +1 −0 lib/puppet/type/sensu_cluster_member.rb
  17. +1 −0 lib/puppet/type/sensu_cluster_role.rb
  18. +2 −1 lib/puppet/type/sensu_cluster_role_binding.rb
  19. +1 −0 lib/puppet/type/sensu_command.rb
  20. +1 −0 lib/puppet/type/sensu_entity.rb
  21. +1 −0 lib/puppet/type/sensu_etcd_replicator.rb
  22. +1 −0 lib/puppet/type/sensu_filter.rb
  23. +1 −0 lib/puppet/type/sensu_handler.rb
  24. +1 −0 lib/puppet/type/sensu_hook.rb
  25. +1 −0 lib/puppet/type/sensu_ldap_auth.rb
  26. +1 −0 lib/puppet/type/sensu_license.rb
  27. +1 −0 lib/puppet/type/sensu_mutator.rb
  28. +1 −0 lib/puppet/type/sensu_namespace.rb
  29. +1 −0 lib/puppet/type/sensu_oidc_auth.rb
  30. +1 −0 lib/puppet/type/sensu_postgres_config.rb
  31. +1 −0 lib/puppet/type/sensu_role.rb
  32. +2 −1 lib/puppet/type/sensu_role_binding.rb
  33. +1 −0 lib/puppet/type/sensu_secret.rb
  34. +1 −0 lib/puppet/type/sensu_secrets_vault_provider.rb
  35. +1 −0 lib/puppet/type/sensu_tessen.rb
  36. +21 −6 lib/puppet/type/sensu_user.rb
  37. +1 −5 lib/puppet/type/sensuctl_configure.rb
  38. +7 −1 lib/puppet_x/sensu/type.rb
  39. +3 −4 manifests/api.pp
  40. +22 −6 manifests/backend.pp
  41. +1 −1 manifests/backend/datastore/postgresql.pp
  42. +0 −1 manifests/cli.pp
  43. +9 −2 manifests/init.pp
  44. +5 −1 metadata.json
  45. +35 −12 spec/acceptance/00_backend_spec.rb
  46. +1 −0 spec/acceptance/02_backend_cluster_spec.rb
  47. +2 −3 spec/acceptance/03_no_ssl_spec.rb
  48. +1 −2 spec/acceptance/04_plugins_spec.rb
  49. +0 −5 spec/acceptance/06_postgresql_spec.rb
  50. +4 −7 spec/acceptance/07_cli_spec.rb
  51. +3 −3 spec/acceptance/99_facts_spec.rb
  52. +0 −5 spec/acceptance/sensu_ad_auth_spec.rb
  53. +0 −5 spec/acceptance/sensu_ldap_auth_spec.rb
  54. +0 −5 spec/acceptance/sensu_oidc_auth_spec.rb
  55. +0 −5 spec/acceptance/sensu_secrets_spec.rb
  56. +4 −28 spec/acceptance/sensu_user_spec.rb
  57. +20 −11 spec/acceptance/windows_spec.rb
  58. +3 −4 spec/classes/api_spec.rb
  59. +22 −3 spec/classes/backend_spec.rb
  60. +1 −1 spec/classes/resources_spec.rb
  61. +14 −1 spec/shared_examples/types.rb
  62. +0 −3 spec/spec_helper_acceptance.rb
  63. +2 −2 spec/unit/provider/sensu_user/sensu_api_spec.rb
  64. +44 −45 spec/unit/provider/sensu_user/sensuctl_spec.rb
  65. +2 −69 spec/unit/provider/sensuctl_configure/sensuctl_spec.rb
  66. +2 −2 spec/unit/sensu_cluster_role_binding_spec.rb
  67. +2 −2 spec/unit/sensu_role_binding_spec.rb
  68. +22 −4 spec/unit/sensu_user_spec.rb
  69. +1 −1 tests/sensu-cli.pp
2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fixtures:
ref: v6.0.0
postgresql:
repo: git://github.com/puppetlabs/puppetlabs-postgresql.git
ref: v6.0.0
ref: v6.4.0
archive:
repo: git://github.com/voxpupuli/puppet-archive.git
ref: 'v3.0.0'
Expand Down
21 changes: 14 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [v4.11.0](https://github.com/sensu/sensu-puppet/tree/v4.11.0) (2020-06-29)

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

### Added

- READ DESCRIPTION: Improved handling of passwords for sensu\_user [\#1251](https://github.com/sensu/sensu-puppet/pull/1251) ([treydock](https://github.com/treydock))
- Add check name to ArgumentError [\#1249](https://github.com/sensu/sensu-puppet/pull/1249) ([amccrea](https://github.com/amccrea))

### Merged Pull Requests

- Fix Windows acceptance tests and update Postgresql dependency range [\#1252](https://github.com/sensu/sensu-puppet/pull/1252) ([treydock](https://github.com/treydock))
- Fix acceptance tests [\#1250](https://github.com/sensu/sensu-puppet/pull/1250) ([treydock](https://github.com/treydock))

## [v4.10.0](https://github.com/sensu/sensu-puppet/tree/v4.10.0) (2020-04-19)

[Full Changelog](https://github.com/sensu/sensu-puppet/compare/v4.8.0...v4.10.0)
Expand Down Expand Up @@ -247,13 +261,6 @@

- Add sensu\_resources type that will handle resource purging [\#1158](https://github.com/sensu/sensu-puppet/pull/1158) ([treydock](https://github.com/treydock))
- Add sensu\_gem package provider [\#1156](https://github.com/sensu/sensu-puppet/pull/1156) ([treydock](https://github.com/treydock))
- Install Windows agent via chocolatey [\#1152](https://github.com/sensu/sensu-puppet/pull/1152) ([treydock](https://github.com/treydock))
- Add sensu\_bonsai\_asset type [\#1149](https://github.com/sensu/sensu-puppet/pull/1149) ([treydock](https://github.com/treydock))

### Fixed

- Fix Puppet strings warnings [\#1150](https://github.com/sensu/sensu-puppet/pull/1150) ([treydock](https://github.com/treydock))
- Fix sensu\_plugin version insync? check [\#1148](https://github.com/sensu/sensu-puppet/pull/1148) ([treydock](https://github.com/treydock))

## [v3.8.0](https://github.com/sensu/sensu-puppet/tree/v3.8.0) (2019-09-02)

Expand Down
26 changes: 10 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ For systems using `yum` and Puppet >= 6.0.0:
For Windows:
* [puppetlabs/chocolatey](https://forge.puppet.com/puppetlabs/chocolatey) module (`>= 3.0.0 < 5.0.0`)
* [puppet/windows_env](https://forge.puppet.com/puppet/windows_env) module (`>= 3.0.0 < 4.0.0`)
* [puppet/archive](https://forge.puppet.com/puppet/archive) module (`>= 3.0. 0 < 5.0.0`)

For PostgreSQL datastore support:
* [puppetlabs/postgresql](https://forge.puppet.com/puppetlabs/postgresql) module (`>= 6.0.0 < 7.0.0`)
* [puppet/archive](https://forge.puppet.com/puppet/archive) module (`>= 3.0.0 < 5.0.0`)

### Beginning with Sensu

Expand Down Expand Up @@ -220,12 +217,12 @@ The output should look like the following:

The following example will configure sensu-backend, sensu-agent on backend and add a check.
By default this module will configure the backend to use Puppet's SSL certificate and CA.
It is advisable to not rely on the default password. Changing the password requires providing the previous password via `old_password`.
It is advisable to not rely on the default password.
**NOTE** When changing the password value, it's necessary to run Puppet on the backend first to update the `admin` password.

```puppet
class { 'sensu':
password => 'supersecret',
old_password => 'P@ssw0rd!',
password => 'supersecret',
}
include sensu::backend
include sensu::agent
Expand Down Expand Up @@ -302,7 +299,6 @@ sensu::api_host: sensu-backend.example.com
sensu::api_port: 8080
sensu::username: admin
sensu::password: supersecret
sensu::old_password: 'P@ssw0rd!'
```
### Manage Windows Agent
Expand Down Expand Up @@ -352,8 +348,7 @@ It is advisable to set `show_diff` to `false` to avoid exposing the agent passwo

```puppet
class { 'sensu':
agent_password => 'supersecret',
agent_old_password => 'P@ssw0rd!',
agent_password => 'supersecret',
}
class { 'sensu::agent':
show_diff => false,
Expand Down Expand Up @@ -706,8 +701,7 @@ Example installing extension on backend:

```puppet
class { 'sensu':
password => 'supersecret',
old_password => 'P@ssw0rd!',
password => 'supersecret',
}
include sensu::backend
class { 'sensu::plugins':
Expand All @@ -719,8 +713,7 @@ The `extensions` parameter can also be a Hash that sets the version:

```puppet
class { 'sensu':
password => 'supersecret',
old_password => 'P@ssw0rd!',
password => 'supersecret',
}
include sensu::backend
class { 'sensu::plugins':
Expand All @@ -734,8 +727,7 @@ You can uninstall extensions by passing `ensure` as `absent`.

```puppet
class { 'sensu':
password => 'supersecret',
old_password => 'P@ssw0rd!',
password => 'supersecret',
}
include sensu::backend
class { 'sensu::plugins':
Expand Down Expand Up @@ -1184,6 +1176,8 @@ Examples can be found in the [examples](https://github.com/sensu/sensu-puppet/tr

The type `sensu_user` does not at this time support `ensure => absent` due to a limitation with sensuctl, see [sensu-go#2540](https://github.com/sensu/sensu-go/issues/2540).

When changing the `sensu::password` value, it's necessary to run Puppet on the backend first to update the `admin` password.

### Notes regarding support

This module is built for use with Puppet versions 5 and 6 and the ruby
Expand Down
Loading