Re: [Puppet Users] Registering a puppet agent node with alternate short hostname or alias

2015-05-14 Thread Anil Aix
Hi Rilindo, 
 Thank you for the reply, let me explain the issue more clearly.
We have  gcloud instances whose private IPs are DNS registered in our 
company network as .mycompany.com
But these google cloud instances seem to have their own local domain as 
c. and thus hostname --fqdn gives
.c. this Project id is some random long weird name.

And when I register a puppet agent node to the master, its requesting 
certificate with this long name, I want it to be hostname.mycompany.com.

I tried using certname option like below
I did add certname = uc1f-coster-xxx02.mycompany.com in 
/etc/puppet/puppet.conf 

The certificate request came as desired with hostname.mycompany.com but 
once its added, when I check hosts in foreman interface it shows the long 
hostname.
so, I'm looking at options to override fqdn from google's to my company's 
and register it with master.

Please share your thoughts..



On Wednesday, May 13, 2015 at 6:13:21 PM UTC+5:30, RIlindo Foster wrote:
>
> By default, the certname is the fully qualified domain. You can change it 
> via the node_name_value or node_name_fact; however, you need to have a very 
> good reason to change the settings before you move forward with it.
>
> https://docs.puppetlabs.com/references/latest/configuration.html#certname
>
>  - Rilindo
>
> On May 13, 2015, at 3:22 AM, Anil Aix > 
> wrote:
>
> We were trying to register gcloud instances to puppet master, but the 
> instance names are very long with uc1f-coster-xxx02.c.xxxa--xx0.internal
> Is it possible to register these nodes with a short hostname or an 
> alias...?,
>
> I tried adding below line in /etc/puppet/puppet.cong of client.
> dns_alt_names = costerinf2
> And ran
> puppet cert sign -all  --allow-dns-alt-names on master 
> + "uc1f-cstor-inf02.c.zeta-bonsai-770.internal" (SHA256) xxx  
> S:costerinf2", "DNS:uc1f-coster-xxx02.c.xxxa--xx0.internal")
>  
>
> But it still registers with the long name, Even in Foreman interface it 
> shows long name, is there a way to register and show short names(the alias 
> we configured) in puppet.
> Please help.
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/56fdc977-e4f3-4bdd-a40e-f880416dfe1c%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/1ee2e66a-24d3-4211-9a4e-f2543117d6ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Registering a puppet agent node with alternate short hostname or alias

2015-05-14 Thread Anil Aix
Hi Rilindo, 
 Thank you for the reply, let me explain the issue more clearly.
We have  gcloud instances whose private IPs are DNS registered in our 
company network as .mycompany.com
But these google cloud instances seem to have their own local domain as 
c. and thus hostname --fqdn gives
.c. this Project id is some random long weird name.

And when I register a puppet agent node to the master, its requesting 
certificate with this long name, I want it to be hostname.mycompany.com.

I tried using certname option like below
I did add certname = uc1f-coster-xxx02.mycompany.com in 
/etc/puppet/puppet.conf 

The certificate request came as desired with hostname.mycompany.com but 
once its added, when I check hosts in foreman interface it shows the long 
hostname.
so, I'm looking at options to override fqdn from google's to my company's 
and register it with master.

Please share your thoughts..



On Wednesday, May 13, 2015 at 6:13:21 PM UTC+5:30, RIlindo Foster wrote:
>
> By default, the certname is the fully qualified domain. You can change it 
> via the node_name_value or node_name_fact; however, you need to have a very 
> good reason to change the settings before you move forward with it.
>
> https://docs.puppetlabs.com/references/latest/configuration.html#certname
>
>  - Rilindo
>
> On May 13, 2015, at 3:22 AM, Anil Aix > 
> wrote:
>
> We were trying to register gcloud instances to puppet master, but the 
> instance names are very long with uc1f-coster-xxx02.c.xxxa--xx0.internal
> Is it possible to register these nodes with a short hostname or an 
> alias...?,
>
> I tried adding below line in /etc/puppet/puppet.cong of client.
> dns_alt_names = costerinf2
> And ran
> puppet cert sign -all  --allow-dns-alt-names on master 
> + "uc1f-cstor-inf02.c.zeta-bonsai-770.internal" (SHA256) xxx  
> S:costerinf2", "DNS:uc1f-coster-xxx02.c.xxxa--xx0.internal")
>  
>
> But it still registers with the long name, Even in Foreman interface it 
> shows long name, is there a way to register and show short names(the alias 
> we configured) in puppet.
> Please help.
>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/56fdc977-e4f3-4bdd-a40e-f880416dfe1c%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/1fe2d17c-8044-442c-9d09-80ea159302d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Registering a puppet agent node with alternate short hostname or alias

2015-05-13 Thread Rilindo Foster
By default, the certname is the fully qualified domain. You can change it via 
the node_name_value or node_name_fact; however, you need to have a very good 
reason to change the settings before you move forward with it.

https://docs.puppetlabs.com/references/latest/configuration.html#certname

 - Rilindo

> On May 13, 2015, at 3:22 AM, Anil Aix  wrote:
> 
> We were trying to register gcloud instances to puppet master, but the 
> instance names are very long with uc1f-coster-xxx02.c.xxxa--xx0.internal
> Is it possible to register these nodes with a short hostname or an alias...?,
> 
> I tried adding below line in /etc/puppet/puppet.cong of client.
> dns_alt_names = costerinf2
> And ran
> puppet cert sign -all  --allow-dns-alt-names on master 
> + "uc1f-cstor-inf02.c.zeta-bonsai-770.internal" (SHA256) xxx  S:costerinf2", 
> "DNS:uc1f-coster-xxx02.c.xxxa--xx0.internal")
>  
> 
> But it still registers with the long name, Even in Foreman interface it shows 
> long name, is there a way to register and show short names(the alias we 
> configured) in puppet.
> Please help.
> -- 
> 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/56fdc977-e4f3-4bdd-a40e-f880416dfe1c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/19E4CA7B-A72A-4429-9B24-6EC87D99B3CD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.