AW: AW: AW: AW: AW: AW: cloud-init and user-data/meta-data
Thank you very much! :-) Mit freundlichen Grüßen / With kind regards, Swen -Ursprüngliche Nachricht- Von: Nux! [mailto:n...@li.nux.ro] Gesendet: Montag, 14. März 2016 15:29 An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH Betreff: Re: AW: AW: AW: AW: AW: cloud-init and user-data/meta-data Sorry for image http://storage3.static.itmages.com/i/16/0314/h_1457965735_1160614_2a9ad21577.png -- 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: Monday, 14 March, 2016 14:03:12 > Subject: AW: AW: AW: AW: AW: cloud-init and user-data/meta-data > Hi, > > can someone provide the following curl request from inside an instance > in a CS > 4.8 installation? > > curl http://10.1.1.1/latest/meta-data/ > > where 10.1.1.1 is your VR of the network the instance is in. > > Thank you very much! > > Mit freundlichen Grüßen / With kind regards, > > Swen > > > -Ursprüngliche Nachricht- > Von: Nux! [mailto:n...@li.nux.ro] > Gesendet: Freitag, 11. März 2016 12:32 > An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH > Betreff: Re: AW: AW: AW: AW: cloud-init and user-data/meta-data > > Yes indeed. > Put a script in /var/lib/cloud/scripts/per-boot, it will be executed > at every boot (hopefully after networking is up). > In it you could inspect /var/lib/dhcp/blah for the full hostname or > domain name and amend /etc/hosts as you need. > > HTH > 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 10:59:58 >> Subject: AW: AW: AW: AW: cloud-init and user-data/meta-data > >> But DHCP will not alter /etc/hosts as far as I know. >> >> By per-boot hack you mean to write a script and run it via cloud-init >> at boot time? >> >> 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:54 >> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH >> Betreff: Re: AW: AW: AW: cloud-init and user-data/meta-data >> >> I am using cloud-init in the templates, but as I said I have not >> looked that much into it. I just let DHCP do its job. >> I would look at the per-boot scripts hack. :) >> >> -- >> 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 10:50:04 >>> Subject: AW: AW: AW: cloud-init and user-data/meta-data >> >>> To me it looks like CS needs to extend the user-data/meta-data with >>> "hostname". >>> >>> Are you using cloud-init in your templates? How to you edit >>> /etc/hosts with correct values? >>> >>> 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:38 >>> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH >>> Betreff: Re: AW: AW: cloud-init and user-data/meta-data >>> >>> Swen, >>> >>> I am not very familiar with it, but unless they have a proper module >>> in place to deal with DHCP as they do with the hosts file, you can >>> always add a script in /var/lib/cloud/scripts/per-boot to check the >>> dhcp info in /var/lib/dhcp and perform stuff based on it. >>> Not exactly kosher, but hey .. >>> >>> -- >>> 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 10:34:22 >>>> Subject: AW: AW: cloud-init and user-data/meta-data >>> >>>> yes, but cloud-init is rewriting the /etc/hosts file and it does >>>> not have access to DHCP information or does it? >>>> >>>> Mit freundliche
Re: AW: AW: AW: AW: AW: cloud-init and user-data/meta-data
Sorry for image http://storage3.static.itmages.com/i/16/0314/h_1457965735_1160614_2a9ad21577.png -- 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: Monday, 14 March, 2016 14:03:12 > Subject: AW: AW: AW: AW: AW: cloud-init and user-data/meta-data > Hi, > > can someone provide the following curl request from inside an instance in a CS > 4.8 installation? > > curl http://10.1.1.1/latest/meta-data/ > > where 10.1.1.1 is your VR of the network the instance is in. > > Thank you very much! > > Mit freundlichen Grüßen / With kind regards, > > Swen > > > -Ursprüngliche Nachricht- > Von: Nux! [mailto:n...@li.nux.ro] > Gesendet: Freitag, 11. März 2016 12:32 > An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH > Betreff: Re: AW: AW: AW: AW: cloud-init and user-data/meta-data > > Yes indeed. > Put a script in /var/lib/cloud/scripts/per-boot, it will be executed at every > boot (hopefully after networking is up). > In it you could inspect /var/lib/dhcp/blah for the full hostname or domain > name > and amend /etc/hosts as you need. > > HTH > 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 10:59:58 >> Subject: AW: AW: AW: AW: cloud-init and user-data/meta-data > >> But DHCP will not alter /etc/hosts as far as I know. >> >> By per-boot hack you mean to write a script and run it via cloud-init >> at boot time? >> >> 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:54 >> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH >> Betreff: Re: AW: AW: AW: cloud-init and user-data/meta-data >> >> I am using cloud-init in the templates, but as I said I have not >> looked that much into it. I just let DHCP do its job. >> I would look at the per-boot scripts hack. :) >> >> -- >> 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 10:50:04 >>> Subject: AW: AW: AW: cloud-init and user-data/meta-data >> >>> To me it looks like CS needs to extend the user-data/meta-data with >>> "hostname". >>> >>> Are you using cloud-init in your templates? How to you edit >>> /etc/hosts with correct values? >>> >>> 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:38 >>> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH >>> Betreff: Re: AW: AW: cloud-init and user-data/meta-data >>> >>> Swen, >>> >>> I am not very familiar with it, but unless they have a proper module >>> in place to deal with DHCP as they do with the hosts file, you can >>> always add a script in /var/lib/cloud/scripts/per-boot to check the >>> dhcp info in /var/lib/dhcp and perform stuff based on it. >>> Not exactly kosher, but hey .. >>> >>> -- >>> 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 10:34:22 >>>> Subject: AW: AW: cloud-init and user-data/meta-data >>> >>>> yes, but cloud-init is rewriting the /etc/hosts file and it does not >>>> have access to DHCP information or does it? >>>> >>>> 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:31 >>>> An: S. Brüseke - proIO GmbH >>>>
AW: AW: AW: AW: AW: cloud-init and user-data/meta-data
Hi, can someone provide the following curl request from inside an instance in a CS 4.8 installation? curl http://10.1.1.1/latest/meta-data/ where 10.1.1.1 is your VR of the network the instance is in. Thank you very much! Mit freundlichen Grüßen / With kind regards, Swen -Ursprüngliche Nachricht- Von: Nux! [mailto:n...@li.nux.ro] Gesendet: Freitag, 11. März 2016 12:32 An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH Betreff: Re: AW: AW: AW: AW: cloud-init and user-data/meta-data Yes indeed. Put a script in /var/lib/cloud/scripts/per-boot, it will be executed at every boot (hopefully after networking is up). In it you could inspect /var/lib/dhcp/blah for the full hostname or domain name and amend /etc/hosts as you need. HTH 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 10:59:58 > Subject: AW: AW: AW: AW: cloud-init and user-data/meta-data > But DHCP will not alter /etc/hosts as far as I know. > > By per-boot hack you mean to write a script and run it via cloud-init > at boot time? > > 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:54 > An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH > Betreff: Re: AW: AW: AW: cloud-init and user-data/meta-data > > I am using cloud-init in the templates, but as I said I have not > looked that much into it. I just let DHCP do its job. > I would look at the per-boot scripts hack. :) > > -- > 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 10:50:04 >> Subject: AW: AW: AW: cloud-init and user-data/meta-data > >> To me it looks like CS needs to extend the user-data/meta-data with >> "hostname". >> >> Are you using cloud-init in your templates? How to you edit >> /etc/hosts with correct values? >> >> 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:38 >> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH >> Betreff: Re: AW: AW: cloud-init and user-data/meta-data >> >> Swen, >> >> I am not very familiar with it, but unless they have a proper module >> in place to deal with DHCP as they do with the hosts file, you can >> always add a script in /var/lib/cloud/scripts/per-boot to check the >> dhcp info in /var/lib/dhcp and perform stuff based on it. >> Not exactly kosher, but hey .. >> >> -- >> 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 10:34:22 >>> Subject: AW: AW: cloud-init and user-data/meta-data >> >>> yes, but cloud-init is rewriting the /etc/hosts file and it does not >>> have access to DHCP information or does it? >>> >>> 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:31 >>> An: S. Brüseke - proIO GmbH >>> Cc: users@cloudstack.apache.org >>> Betreff: Re: AW: cloud-init and user-data/meta-data >>> >>> Ah I see. >>> Well, afaik the fqdn should be provided via DHCP, right? >>> >>> -- >>> 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: "Nux!" <n...@li.nux.ro>, users@cloudstack.apache.org >>>> Sent: Friday, 11 March, 2016 10:29:41 >>>> Subject: AW: cloud-init and user-data/meta-data >>> >>>> Hi Lucian, >>>> >>>> no, local-hostname will provide only the hostname without the >>>> domain name (network name). >>>> But this is how it is documented i