hiera.yaml
---
:backends:
- yaml
:yaml:
:datadir: spec/fixtures/hieradata
:hierarchy:
- common
- linux01
- linux02
- linux03
linux01.yaml:
hieravariable: lx01
linux02.yaml:
hieravariable: lx02
linux03.yaml:
hieravariable: lx03
rspec:
it do
should contain_exec('Create something lx01')
end
it do
should contain_exec('Create something lx02')
end
it do
should contain_exec('Create something lx03')
end
manifest:
exec { "Create something ${hieravariable}":
command => "some command",
user => 'user01',
}
When I execute my rpsec, only 'Create something lx01' is getting passed. lx02 and lx03 are getting failed. How to use multiple hiera files?
↧