[Openstack-operators] how can I make a new VM use the project name as sub-domain ?

Abel Lopez alopgeek at gmail.com
Thu Aug 14 19:05:52 UTC 2014


I would try to look at what’s available in the metadata, if the project name isn’t there, then I would pass something in the user-data at boot time, and set up a script to use the user-data to accomplish this.

On Aug 14, 2014, at 11:48 AM, Alex Leonhardt <aleonhardt.py at gmail.com> wrote:

> hi all,
> 
> am running openstack in a flat-network with just 1 IP range / network and would like to have the VMs' named after the project, e.g.:
> 
> project name: dev
> 
> host name: redis1
> domain: acme.com
> 
> resulting name: redis1.dev.acme.com
> 
> at the moment i'd just get a result of redis1.acme.com - but do want/need the sub-domains as 
> 
> project: dev 
> and
> project: internal
> and
> project: frontend
> etc.
> 
> may use the same name for things they work on ... how is this accomplished ? Or where do I have to look at (in the code) to try and make this a default ? 
> 
> Thanks a lot!
> Alex
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20140814/dd52446b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20140814/dd52446b/attachment.pgp>


More information about the OpenStack-operators mailing list