Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
452B

  1. # frozen_string_literal: true
  2. # Replace per minion strings
  3. replacement = {
  4. hostname: system.hostname
  5. }
  6. mapdata_file = "mapdata/#{system.platform[:finger].split('.').first}.yaml"
  7. mapdata_dump = inspec.profile.file(mapdata_file) % replacement
  8. control '`map.jinja` YAML dump' do
  9. title 'should contain the lines'
  10. describe file('/tmp/salt_mapdata_dump.yaml') do
  11. it { should exist }
  12. its('content') { should include mapdata_dump }
  13. end
  14. end