Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiera call from manifeast not able to locate key #174

Closed
k3d61 opened this issue Sep 18, 2015 · 1 comment
Closed

hiera call from manifeast not able to locate key #174

k3d61 opened this issue Sep 18, 2015 · 1 comment

Comments

@k3d61
Copy link

k3d61 commented Sep 18, 2015

my hiera.yaml is,

:backends:

  • yaml
  • eyaml
    :hierarchy:
  • defaults
  • "%{clientcert}"
  • "%{environment}"
  • global
    :logger:
  • puppet

:yaml:
:datadir: /etc/puppet/hiera/
:eyaml:
:datadir: /etc/puppet/hiera/
:pkcs7_private_key: /etc/puppet/keys/private_key.pkcs7.pem
:pkcs7_public_key: /etc/puppet/keys/public_key.pkcs7.pem

I kept encrypted value in /etc/puppet/hiera/defaults.eyaml
but puppet trows error as:
"Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item test in any Hiera data file and no default supplied ........"
but it woks from command line if i run, hiera -c /etc/puppet/hiera.yaml test

i folled this document, https://github.com/TomPoulton/hiera-eyaml

my defaults.eyaml is

test: >
ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQEw
DQYJKoZIhvcNAQEBBQAEggEArUnUlBwWv21Rs1Z8NQwhcocBpgMNYErzvn//
Wbhp5nZnSYhhKQogH766dcc1MNEg+GptabsFaPyowPY84TlN89qrkCwZihQ3
a45HFj7Rt6mDsWxyVLlXH1e94p9QtSBPgAElu14NFQ4bDTASGYE43Acd/mCU
QS/STHjaVx3CEsrVPz/TryOx36ct/WOkpgZxyLlXc6wweMwqBdDmw9YNe3I2
1nrKaY9GL5jrkH//JJcQQPJoVIoH5SnsHHapWLN5on2RRHjHGhhGJGX9LMxP
OQH5m5kcr5fshS1JSR2gj5BnbGJsz8ZQP4Jqb3yox0I5Fge1dNZ9Zd5FM1de
ZB0VljA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBDlORp4uD6c2iIsB8cr
JeqNgBAKcEVKfTA3BRRdxCQHARoB]

@Dan33l
Copy link
Member

Dan33l commented Sep 26, 2018

it can be reopened if it's reproducible on the latest Puppet 4 or newer

@Dan33l Dan33l closed this as completed Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants