Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Can we use multiple hiera files in puppet-rspec?

$
0
0
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?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>