Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title Patrick Grant assigned an issue to Paul Showalter Puppet / PUP-7638 `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] Change By: Patrick Grant Assignee: Patrick Grant Paul Showalter Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title Patrick Grant assigned an issue to Patrick Grant Puppet / PUP-7638 `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] Change By: Patrick Grant Assignee: Paul Showalter Patrick Grant Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title R.I.Pienaar commented on PUP-7638 Re: `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] It pretty much does behave as you say. If you set in main it applies to all sections unless otherwise set specifically in a section. The non obvious thing is that config print is consulting only the main and user sections. Because it's a user utility it does that. It could perhaps print some hint but they would break a bunch of things as scripts will parse this output. You have to pick 1 section or run mode. Picking user seems correct but I can see how people might expect agent to be default - unless they happen to be on a master and then they expect master or something. Best to just specify what you want section/runmode wise Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title Paul Schaffer commented on PUP-7638 Re: `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] It's admittedly an unlikely case, but I discovered this after a customer opened a ticket because they'd set the certname of the system to something other than the FQDN through declaring the certname in both the [agent] and [master] sections of puppet.conf prior to installing the agent. Though the system is reachable via mco at the certname and all of the contents of the ssl directory have the correct certname 'puppet config print certname' returns the FQDN, which is an inaccurate description of the state of the machine. One (or both) of the values in [agent] and [master] were sufficient to generate the desired certnames for the system, but the print command ignores them both unless you specifically designate the section. It would seem more accurate to default to the value set in [main], but to then return the value if set in any other section before defaulting to the FQDN. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title Josh Cooper assigned an issue to Paul Showalter Puppet / PUP-7638 `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] Change By: Josh Cooper Assignee: Paul Showalter Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title R.I.Pienaar commented on PUP-7638 Re: `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] Isn't this expected behaviour? Config print runs with the same config as apply would - so it does not consult agent. You can set which run mode you want on the CLI Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7638) `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main]
Title: Message Title Paul Schaffer created an issue Puppet / PUP-7638 `puppet config print certname` only reads from [main], defaults to FQDN if no value is in [main] Issue Type: Bug Affects Versions: PUP 4.10.1 Assignee: Unassigned Created: 2017/06/08 3:55 PM Priority: Normal Reporter: Paul Schaffer `puppet config print certname` appears to read from the [main] section of puppet.conf only, and if certname is not set in that section it defaults to the FQDN of the system. To test: 1. Spin up a blank box. 2. Create puppet.conf and set the certname to something other than the FQDN. 3. Install the agent, confirming that the certname has been set to something other than the FQDN. 4. Run `puppet config print certname` and compare to expected output. Additionally: 1. Open puppet.conf, and if certname is set in [main] comment it out. 2. Add a unique certname value to the [agent] section and save and close the file. 3. Run 'puppet config print certname' and compare to expected output. 4. Run 'puppet config print --section=agent` and compare. 5. Repeat for any other sections, such as [master].