puppetlabs / puppetlabs-docker

The Puppet Docker repository
Apache License 2.0
91 stars 309 forks source link

config.pp's docker::system_user call is not written to allow me to set params in hiera #560

Closed weeTyphoon closed 2 years ago

weeTyphoon commented 4 years ago

What you expected to happen?

I would like to be able to set the value create_user = false for the docker::system_user define, but since it is a define and not a class I can't do that in hiera.

From what I can tell, to use hiera to set this the create_resources() call has to be made, passing in a hiera hash that will contain that value.

I'm happy to define that value elsewhere in puppet in a non-hiera way if I can, but I don't see how to do that for defines.

If this is possible and it's just my puppet ignorance, can you treat this as a documentation bug and give a simple example on the main page with all the other examples?

What happened?

The user is always created when I run puppet apply without configuration that can set the parameter "create_user" to false.

How to reproduce it?

Anything else we need to know?

Versions:

$ puppet --version

$ docker version

$ facter os

$ puppet module list

Logs:

Paste any relevant logs from a puppet run

Notice: /Stage[main]/Docker::Config/Docker::System_user[runner]/User[runner]/ensure: created

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has been open for a while and has had no recent activity. If this issue is still important to you please drop a comment below and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.