Hi Lucian,

no, local-hostname will provide only the hostname without the domain name 
(network name).
But this is how it is documented in cloud-init:
https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt 
line 433 - 439

But I need the whole fqdn.

Mit freundlichen Grüßen / With kind regards,

Swen


-----Ursprüngliche Nachricht-----
Von: Nux! [mailto:n...@li.nux.ro] 
Gesendet: Freitag, 11. März 2016 11:22
An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH
Betreff: Re: cloud-init and user-data/meta-data

Hi Swen,

>From that page:
"local-hostname. The hostname of the VM"

Isn't that what you need?

Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

----- Original Message -----
> From: "S. Brüseke - proIO GmbH" <s.brues...@proio.com>
> To: users@cloudstack.apache.org
> Sent: Friday, 11 March, 2016 09:27:09
> Subject: cloud-init and user-data/meta-data

> Hi to all,
> 
> I am testing cloud-init in our CS installation.
> 
> I want to recreate /etc/hosts on first boot so I use "manage_etc_hosts: true".
> The recreation works but it looks like the fqdn is not provided by CS.
> As far as I understand cloud-init uses user-data/meta-data to get all 
> needed information. For fqdn it uses meta-data "hostname"
> (https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-
> config.txt
> line 441 - 445).
> 
> Now my problem: CS do not provide "hostname" in meta-data.
> (http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/virtual_machines.html#user-data-and-meta-data).
> Where do I get the correct domain name from?
> 
> Mit freundlichen Grüßen / With kind regards,
> 
> Swen
> 
> 
> 
> 
> - proIO GmbH -
> Geschäftsführer: Swen Brüseke
> Sitz der Gesellschaft: Frankfurt am Main
> 
> USt-IdNr. DE 267 075 918
> Registergericht: Frankfurt am Main - HRB 86239
> 
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
> erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail 
> sind nicht gestattet.
> 
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail in 
> error) please notify the sender immediately and destroy this e-mail.
> Any unauthorized copying, disclosure or distribution of the material 
> in this e-mail is strictly forbidden.


- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify 
the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 


Reply via email to