Skip to content

Commit

Permalink
set values
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed Jun 20, 2024
1 parent 96a8031 commit ecefede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/acceptance/observium_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
end
end

let(:hiera_config) { 'hiera-rpsec.yaml' } # serverspec doesn't seem to respect this.
# let(:hiera_config) { 'hiera-rpsec.yaml' } # serverspec doesn't seem to respect this.

let(:pp) do
<<-MANIFEST
class { 'observium':
snmpd_agentaddress => ['udp:127.0.0.1:161']
db_password => changeme,
rootdb_password => hello123,
snmpv3_authpass => setme1234,
snmpv3_cryptopass => setme1234,
admin_password => changeme
}
MANIFEST
end
Expand All @@ -29,7 +34,7 @@ class { 'observium':
it 'applies idempotently' do
idempotent_apply(pp)
end
else
else
it 'applies' do
# run manifest twice for 2204
apply_manifest(pp)
Expand Down
1 change: 1 addition & 0 deletions spec/classes/observium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

describe 'observium' do
let(:hiera_config) { 'hiera-rpsec.yaml' }

on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
Expand Down

0 comments on commit ecefede

Please sign in to comment.