Jira (PUP-6247) Allow for certname_fact setting to be used to override default fqdn

7 views
Skip to first unread message

Chris Barker (JIRA)

unread,
Apr 28, 2016, 11:47:03 PM4/28/16
to puppe...@googlegroups.com
Chris Barker created an issue
 
Puppet / Improvement PUP-6247
Allow for certname_fact setting to be used to override default fqdn
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2016/04/28 8:46 PM
Priority: Major Major
Reporter: Chris Barker

Currently there is no way to customize how a node determines what certificate name it should use:
the certname value in the puppet.conf
or failing that, using the fqdn returned by factor.

We should allow for a certname_fact setting to allow this value to be overridden, allowing for a generic puppet.conf file to be reused across images / templates.

For example, in AWS this would allow for a puppet.conf that contains a certname_fact = ec2_metadata.instance-id, bypassing any need to execut a puppet config set command at instance boot.

This, combined with PUP-6239 would enable for the reuse of a standard puppet.conf file for agents across an environment that is dynamically scaling and not conforming to standard hostname based classification (aka cloud environments).

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Lindsey Smith (JIRA)

unread,
Apr 28, 2016, 11:56:02 PM4/28/16
to puppe...@googlegroups.com
Lindsey Smith assigned an issue to Kylo Ginsberg
Change By: Lindsey Smith
Assignee: Kylo Ginsberg
Scrum Team: Client Platform
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Apr 30, 2016, 3:22:26 PM4/30/16
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-6247
 
Re: Allow for certname_fact setting to be used to override default fqdn

Does this affect how users write their hiera.conf? Now I believe the recommendation is to use $trusted[certname] instead of $fqdn.

This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Josh Cooper (JIRA)

unread,
May 4, 2016, 12:41:07 PM5/4/16
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-6247

Does node_name_fact work for this? I think the answer is no, but it would be good to identify why.

I don't think node_name_fact currently handles structured fact data like ec2_metadata.instance-id, but I haven't tried it.

Side note, since the fact is required to figure out the agent's certname, we should only allow it to be derived based on core facts (and possibly non-pluginsync'ed external facts, e.g. /etc/puppetlabs/facter/facts.d, but not pluginsync'ed custom or external facts because of the catch-22 of having to pluginsync to get the facts, but you need a client cert before you can pluginsync.

Lindsey Smith (JIRA)

unread,
Aug 25, 2016, 11:18:02 AM8/25/16
to puppe...@googlegroups.com
Lindsey Smith assigned an issue to Chris Barker
 
Change By: Lindsey Smith
Assignee: Kylo Ginsberg Chris Barker

Chris Barker (JIRA)

unread,
Aug 25, 2016, 11:26:03 AM8/25/16
to puppe...@googlegroups.com
Chris Barker commented on Improvement PUP-6247
 
Re: Allow for certname_fact setting to be used to override default fqdn

node_name_fact doesn't change cert name, they are two separate values. What node_name changes is what is used for reports (but you have to change auth rules server side first). It allows for you to use the same certificate for multiple machines and indicate different node_name for each machine. This was the case in 2013 anyway, I doubt we've considered that node_name and cert name could ever be different in new features so it might not even work as it is today.

Henrik Lindberg for hiera.yaml, in this use case, people would be using pp_role and other ssl attributes to identify the node. And cert name is still cert name, it's just saying in the puppet.conf the node resolves a fact other than fqdn if a cert name isn't present. This allows for a static puppet.conf, mean cloning and launching a machine removes a lot of the manual first boot scripting.

Chris Barker (JIRA)

unread,
Dec 16, 2016, 1:53:03 PM12/16/16
to puppe...@googlegroups.com
Chris Barker assigned an issue to Unassigned
 
Change By: Chris Barker
Assignee: Chris Barker
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Sean McDonald (JIRA)

unread,
May 16, 2017, 6:41:03 PM5/16/17
to puppe...@googlegroups.com

Sean McDonald (JIRA)

unread,
May 16, 2017, 6:41:04 PM5/16/17
to puppe...@googlegroups.com

Sean McDonald (JIRA)

unread,
May 16, 2017, 6:41:05 PM5/16/17
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
May 13, 2019, 12:32:05 PM5/13/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Currently there is no way to customize how a node determines what certificate name it should use:
the certname value in the puppet.conf
or failing that, using the fqdn returned by factor facter .


We should allow for a certname_fact setting to allow this value to be overridden, allowing for a generic puppet.conf file to be reused across images / templates.

For example, in AWS this would allow for a puppet.conf that contains a certname_fact = ec2_metadata.instance-id, bypassing any need to execut execute a puppet config set command at instance boot.


This, combined with PUP-6239 would enable for the reuse of a standard puppet.conf file for agents across an environment that is dynamically scaling and not conforming to standard hostname based classification (aka cloud environments).
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Jorie Tappa (JIRA)

unread,
May 13, 2019, 12:56:04 PM5/13/19
to puppe...@googlegroups.com

Jorie Tappa (JIRA)

unread,
May 13, 2019, 12:57:03 PM5/13/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
May 29, 2019, 1:18:04 PM5/29/19
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-6247
 
Re: Allow for certname_fact setting to be used to override default fqdn

I moved this to a different epic so we can capture related tickets

Reply all
Reply to author
Forward
0 new messages