migrate deprecated method install_module_from_forge_on #50
Annotations
6 errors
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 'centos7-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175646788.pp.Czd0q1
Last 10 lines of output were:
Error: /Stage[main]/Hiera::Eyaml/File[/etc/puppetlabs/puppet/keys]/ensure: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Could not find user puppet (file: /etc/puppetlabs/code/environments/production/modules/hiera/manifests/eyaml.pp, line: 47)
�[mNotice: /Stage[main]/Hiera::Eyaml/Exec[createkeys]: Dependency File[/etc/puppetlabs/puppet/keys] has failures: true
Warning: /Stage[main]/Hiera::Eyaml/Exec[createkeys]: Skipping because of failed dependencies
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
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
Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
�[mNotice: Applied catalog in 0.17 seconds
|
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,23 +1,12 @@
-# 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#L77
hiera querying hiera finds it on the command line
Failure/Error: expect(on(default, 'hiera myclass::value environment=production').stdout.strip).to eq('found output')
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet7.example.com' exited with 1 running:
hiera myclass::value environment=production
Last 10 lines of output were:
Failed to start Hiera: RuntimeError: v5 hiera.yaml is only to be used inside an environment or a module and cannot be given to the global hiera
|
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 'centos7-64-puppet7.example.com' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175649315.pp.7gFAYT
Last 10 lines of output were:
Info: Loading facts
Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.28/deprecated_language.html
(file & line not available)
Error: Function lookup() did not find a value for the name 'myclass::value'
|
Run tests:
spec/acceptance/hiera_spec.rb#L85
hiera querying hiera finds it in puppet agent
Failure/Error: on host, "chown -R #{puppet_user(host)}:#{puppet_group(host)} #{path}"
NoMethodError:
undefined method `puppet_user' for #<RSpec::ExampleGroups::Hiera::QueryingHiera "finds it in puppet agent" (./spec/acceptance/hiera_spec.rb:85)>
|
Run tests
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading