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

Two bugs with DNS_ALT_NAMES variable #262

Open
elofu17 opened this issue May 26, 2021 · 0 comments
Open

Two bugs with DNS_ALT_NAMES variable #262

elofu17 opened this issue May 26, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@elofu17
Copy link

elofu17 commented May 26, 2021

README.md says:
"The value of DNS_ALT_NAMES must list all the names, as a comma-separated list, under which the Puppet server in the stack can be reached from agents. It will have puppet prepended to it as that name is used by PuppetDB to communicate with the Puppet server."

Two bugs:

Bug 1)
The variable DNS_ALT_NAMES is not actually used in the code!
The variables PUPPET_DNS_ALT_NAMES and PUPPETDB_DNS_ALT_NAMES are used to set DNS_ALT_NAMES.

gem/lib/pupperware/compose-services/puppet.yml: - DNS_ALT_NAMES=${PUPPET_DNS_ALT_NAMES:-puppet}
gem/lib/pupperware/compose-services/puppetdb.yml: - DNS_ALT_NAMES=${PUPPETDB_DNS_ALT_NAMES:-puppetdb}

I run the given command from README.md:
DNS_ALT_NAMES=host.example.com docker-compose up -d

...but since I have set neither PUPPET_DNS_ALT_NAMES nor PUPPETDB_DNS_ALT_NAMES, DNS_ALT_NAMES is set to its defaults.

You can see this in:

/var/lib/docker/volumes/compose-services_puppetserver-config/_data/puppet.conf :
dns_alt_names = puppet

This should read:

dns_alt_names = puppet,host.example.com

Bug 2)
README.md says the hostname "puppet" will be prepended to whatever I type. It is not!

If I manually workaround Bug 1 above by:

export PUPPET_DNS_ALT_NAMES=host.example.com
export PUPPETDB_DNS_ALT_NAMES=host.example.com
docker-compose up -d

/var/lib/docker/volumes/compose-services_puppetserver-config/_data/puppet.conf :
dns_alt_names = host.example.com

See that the hostname "puppet" has not been prepended.

This should read:

dns_alt_names = puppet,host.example.com

Current workaround for both bugs:

export PUPPET_DNS_ALT_NAMES=puppet,host.example.com
export PUPPETDB_DNS_ALT_NAMES=puppetdb,host.example.com
docker-compose up -d

Fix:
Either fix the bugs or change the documentation.

@elofu17 elofu17 added the bug Something isn't working label May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant