puppet - Encrypted Hiera eyaml variable decrypts on master but not on node -
i set hiera-eyaml on puppet 3.8, opensource environment.
defaults.yaml db_password: enc[pkcs7,mxcgfds......] site.pp $password=hiera(db_password)
if i'm running:
puppet master --debug --compile funky_hostname.mydomain.com --environment=dev
i can see tempated configfile generating correctly:
password="password123"
but when i'm running on actual node (funky_hostname.mydomain.com), i'm getting original, encrypted string result:
password="enc[pkcs7,mxcgfds......]"
isn't hiera decryption happening on puppet master side?
puppet catalogues compiled on puppet master. compiled catalogue shared client on ssl connection (assuming puppet ca has signed ssl certificate request client). catalogue realised on client. compilation stage involves merging hiera data (and decrypting first if using eyaml backend). if using e.g. gpg encryption, gpg recipients file on puppet master used in deciding keys use in decryption process. net result clients don't in fact decrypt eyaml, done on puppet master. clients can decrypt eyaml (at least if gpg used) clients listed in gpg recipients file. hope helps!
Comments
Post a Comment