eyaml
: allow custom key paths
#166
Annotations
6 errors
Run tests
Process completed with exit code 1.
|
Run tests:
spec/acceptance/hiera_spec.rb#L85
hiera querying hiera finds it in puppet agent
Failure/Error: expect(on(default, 'puppet agent -t --server $(hostname -f)', acceptable_exit_codes: [0, 2]).stdout.strip).to match(%r{found output})
Beaker::Host::CommandFailure:
Host 'centos9-64-openvox8.example.com' exited with 1 running:
puppet agent -t --server $(hostname -f)
Last 10 lines of output were:
�[mNotice: /File[/opt/puppetlabs/puppet/cache/lib/puppet_x/stdlib]/ensure: created
�[mNotice: /File[/opt/puppetlabs/puppet/cache/lib/puppet_x/stdlib.rb]/ensure: defined content as '{sha256}5b935ddf8095cd536501080ae7c5126541f8362d602e5ceeae2435d376685258'
�[mNotice: /File[/opt/puppetlabs/puppet/cache/lib/puppet_x/stdlib/toml_dumper.rb]/ensure: defined content as '{sha256}57a02bbb4f19016a8320b0baa3531f877d84bcfdbd57488f8bd173b5ea9f8272'
Info: Loading facts
Warning: Facter: Container runtime, 'docker', is unsupported, setting to 'container_other'
�[mNotice: Requesting catalog from centos9-64-openvox8.example.com:8140 (172.17.0.2)
�[mNotice: Catalog compiled by centos9-64-openvox8.example.com
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Function lookup() did not find a value for the name 'myclass::value' on node centos9-64-openvox8.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
|
Run tests:
spec/acceptance/hiera_spec.rb#L81
hiera querying hiera finds it in puppet apply
Failure/Error: expect(apply_manifest_on(default, pp, catch_failures: true).stdout.strip).to match(%r{found output})
Beaker::Host::CommandFailure:
Host 'centos9-64-openvox8.example.com' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222612296.QncGS5.pp
Last 10 lines of output were:
Info: Loading facts
Warning: Facter: Container runtime, 'docker', is unsupported, setting to 'container_other'
Error: Function lookup() did not find a value for the name 'myclass::value'
|
Run tests:
spec/acceptance/hiera_spec.rb#L77
hiera querying hiera finds it on the command line
Failure/Error: expect(on(default, 'puppet lookup myclass::value environment=production').stdout.strip).to eq('--- found output')
Beaker::Host::CommandFailure:
Host 'centos9-64-openvox8.example.com' exited with 1 running:
puppet lookup myclass::value environment=production
Last 10 lines of output were:
Warning: Facter: Container runtime, 'docker', is unsupported, setting to 'container_other'
|
Run tests:
spec/acceptance/hiera_spec.rb#L33
hiera File "/etc/puppetlabs/puppet/hiera.yaml" content is expected to match "# managed by puppet\n---\n:backends:\n- eyaml\n- yaml\n\n:logger: console\n\n:hierarchy:\n - \"?virtual/%{virtual}\"?\n - \"?nodes/%{trusted.certname}\"?\n - common\n\n:eyaml:\n :datadir: \"?/etc/puppetlabs/code/environments/%{environment}/hieradata\"?\n :pkcs7_private_key: \"?/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem\"?\n :pkcs7_public_key: \"?/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem\"?\n\n:yaml:\n :datadir: \"?/etc/puppetlabs/code/environments/%{environment}/hieradata\"?\n\n:merge_behavior: deep\n"
Failure/Error:
is_expected.to match <<~EOS
# managed by puppet
---
:backends:
- eyaml
- yaml
:logger: console
:hierarchy:
expected "---\n# Hiera 5 Global configuration file\n\nversion: 5\n\n# defaults:\n# data_hash: yaml_data\n# hierarchy:\n# - name: Common\n# data_hash: yaml_data\nhierarchy: []\n" to match "# managed by puppet\n---\n:backends:\n- eyaml\n- yaml\n\n:logger: console\n\n:hierarchy:\n - \"?virtual/%{virtual}\"?\n - \"?nodes/%{trusted.certname}\"?\n - common\n\n:eyaml:\n :datadir: \"?/etc/puppetlabs/code/environments/%{environment}/hieradata\"?\n :pkcs7_private_key: \"?/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem\"?\n :pkcs7_public_key: \"?/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem\"?\n\n:yaml:\n :datadir: \"?/etc/puppetlabs/code/environments/%{environment}/hieradata\"?\n\n:merge_behavior: deep\n"
Diff:
@@ -1,22 +1,11 @@
-# managed by puppet
---
-:backends:
-- eyaml
-- yaml
+# Hiera 5 Global configuration file
-:logger: console
+version: 5
-:hierarchy:
- - "?virtual/%{virtual}"?
- - "?nodes/%{trusted.certname}"?
- - common
-
-:eyaml:
- :datadir: "?/etc/puppetlabs/code/environments/%{environment}/hieradata"?
- :pkcs7_private_key: "?/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem"?
- :pkcs7_public_key: "?/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem"?
-
-:yaml:
- :datadir: "?/etc/puppetlabs/code/environments/%{environment}/hieradata"?
-
-:merge_behavior: deep
+# defaults:
+# data_hash: yaml_data
+# hierarchy:
+# - name: Common
+# data_hash: yaml_data
+hierarchy: []
|
Run tests:
spec/acceptance/hiera_spec.rb#L13
hiera puppet apply creates a hiera.yaml
Failure/Error: apply_manifest_on(default, pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos9-64-openvox8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_222606805.TWdPUW.pp
Last 10 lines of output were:
Error: '["eyaml", "createkeys", "--pkcs7-private-key='/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem'", "--pkcs7-public-key='/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem'"]' returned 1 instead of one of [0]
Error: /Stage[main]/Hiera::Eyaml/Exec[createkeys]/returns: change from 'notrun' to ['0'] failed: '["eyaml", "createkeys", "--pkcs7-private-key='/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem'", "--pkcs7-public-key='/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem'"]' returned 1 instead of one of [0]
�[mNotice: /Stage[main]/Hiera::Eyaml/File[/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem]: Dependency Exec[createkeys] has failures: true
Warning: /Stage[main]/Hiera::Eyaml/File[/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem]: Skipping because of failed dependencies
Warning: /Stage[main]/Hiera::Eyaml/File[/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem]: Skipping because of failed dependencies
Info: Class[Hiera::Eyaml]: Unscheduling all events on Class[Hiera::Eyaml]
Warning: /Stage[main]/Hiera/File[/etc/puppetlabs/puppet/hiera.yaml]: Skipping because of failed dependencies
Warning: /Stage[main]/Hiera/File[/etc/hiera.yaml]: Skipping because of failed dependencies
Warning: /Stage[main]/Hiera/Ini_setting[puppet.conf hiera_config main section]: Skipping because of failed dependencies
�[mNotice: Applied catalog in 0.87 seconds
|
Loading