I've only ever used the ENC to set top scope variables, and the documentation only mentions top scope variables. Maybe class scoped variables can't be set by ENC using the parameters section. You could try adding those parameters under classes:docker: or use Hiera.
On Monday, December 14, 2015 at 9:31:09 AM UTC-5, 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? > > Thank you, > > Kind regards, > Sergiu > > On Friday, 11 December 2015 17:54:02 UTC, Sergiu Cornea wrote: >> >> Hello guys, >> >> I have an ENC which is producing the right data as far as I could have >> test it (copy and paste it in a yaml file), however, when I am using Puppet >> directly Puppet seems to do nothing with it. >> >> This is my Puppet.conf file and logging shows that this script is being >> executed by the Puppet master, like I've said Puppet doesn't seem to be >> using the data. >> >> [master] >> node_terminus = exec >> external_nodes = /var/lib/puppet/fetch_enc.sh >> >> Thank you, >> >> Regards, >> Sergiu >> > -- 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/69f3ee56-f7cf-4cfd-baa3-a3c50998a457%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.