Skip to content

migrate deprecated method install_module_from_forge_on #50

migrate deprecated method install_module_from_forge_on

migrate deprecated method install_module_from_forge_on #50

Triggered via pull request January 29, 2024 17:55
Status Failure
Total duration 1m 46s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
14s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

24 errors
Puppet / Puppet 7 - CentOS 7: 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
Puppet / Puppet 7 - CentOS 7: 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: []
Puppet / Puppet 7 - CentOS 7: 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
Puppet / Puppet 7 - CentOS 7: 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'
Puppet / Puppet 7 - CentOS 7: 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)>
Puppet / Puppet 7 - CentOS 7
Process completed with exit code 1.
Puppet / Puppet 7 - Debian 10: 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 'debian10-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175653568.pp.olSB6m 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.16 seconds
Puppet / Puppet 7 - Debian 10: 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: []
Puppet / Puppet 7 - Debian 10: 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 'debian10-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
Puppet / Puppet 7 - Debian 10: 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 'debian10-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175656848.pp.0XG1ep 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'
Puppet / Puppet 7 - Debian 10: 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)>
Puppet / Puppet 7 - Debian 10
Process completed with exit code 1.
Puppet / Puppet 7 - Ubuntu 18.04: 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 'ubuntu1804-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175653773.pp.Ik3yAJ 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.18 seconds
Puppet / Puppet 7 - Ubuntu 18.04: 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: []
Puppet / Puppet 7 - Ubuntu 18.04: 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 'ubuntu1804-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
Puppet / Puppet 7 - Ubuntu 18.04: 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 'ubuntu1804-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175657070.pp.tfcx1k 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'
Puppet / Puppet 7 - Ubuntu 18.04: 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)>
Puppet / Puppet 7 - Ubuntu 18.04
Process completed with exit code 1.
Puppet / Puppet 7 - Ubuntu 20.04: 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 'ubuntu2004-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175701445.pp.RMU6YD 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
Puppet / Puppet 7 - Ubuntu 20.04: 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: []
Puppet / Puppet 7 - Ubuntu 20.04: 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 'ubuntu2004-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
Puppet / Puppet 7 - Ubuntu 20.04: 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 'ubuntu2004-64-puppet7.example.com' exited with 1 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175704592.pp.ttpL9h 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'
Puppet / Puppet 7 - Ubuntu 20.04: 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)>
Puppet / Puppet 7 - Ubuntu 20.04
Process completed with exit code 1.