On Monday, December 14, 2015 at 8:31:09 AM UTC-6, Sergiu Cornea wrote: > > Hi Doug, > > Thank you for your reply. > > This is what my ENC output looks like: > > > 1. classes: > 2. docker_host: > 3. docker: > 4. extra_parameters: > 5. - "--tlsverify" > 6. - "--tlscacert=/etc/ssl/certs/my.crt" > 7. - "--tlscert=/etc/ssl/certs/new.crt" > 8. - "--tlskey=/etc/ssl/private/akey.pem" > 9. docker_certs: > 10. parameters: > 11. docker::username: username > 12. docker::registry: registry.com > 13. docker::email: em...@email.com > 14. docker::tcp_bind: tcp://0.0.0.0:1111 > 15. docker::password: mypassword > 16. environment: production > > However, I believe it is sort of working, but Puppet > started complaining now about the docker::username: saying that's empty and > couldn't be found in any Hiera files and no default has been set-up...To be > honest, I don't know why I am getting this error :( , I've tried spacing > it, remove completely the spacing but no luck. > > What do you think I might be doing wrong? >
The 'parameters' key in the ENC output format is for specifying a hash whose entries will be exposed to the catalog compiler *as top-scope variables*. You appear to be trying instead to use it to give class parameters for class 'docker'. Oddly, however, not for *all* the parameters of class 'docker' -- you are giving a value for class parameter $docker::extra_parameters in the proper way. It appears that you want your ENC to produce something more like: classes: docker_host: docker: username: username registry: registry.com email: em...@email.com tcp_bind: tcp://0.0.0.0:1111 password: mypassword extra_parameters: - "--tlsverify" - "--tlscacert=/etc/ssl/certs/my.crt" - "--tlscert=/etc/ssl/certs/new.crt" - "--tlskey=/etc/ssl/private/akey.pem" docker_certs: environment: production I have removed the 'parameters' key because no entries remained in it, but that's not strictly necessary. Puppet ENC behavior and output format is covered well <https://docs.puppetlabs.com/guides/external_nodes.html> by the PuppetLabs documentation. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2726f674-76eb-4f66-8995-4b6fb6b65ac8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.