[01:55] <korean101> Hi guys.
[01:56] <korean101> i use openstack Kilo releases. and i wanna change my user-data
[01:56] <korean101> but cached files in '/var/lib/clou
[01:56] <korean101> '/var/lib/cloud'
[01:56] <korean101> re read original user-data
[01:57] <korean101> how can i change already created user-data
[01:57] <korean101> ??
[07:08] <Putti> korean101, if you use nova, then try passing to nova boot the --user-data option, but I think if you ask openstack people they might give you a better answer
[07:08] <korean101> Putti: already created VM (with --user-data) -> can't change user-data
[07:09] <korean101> Putti: https://blueprints.launchpad.net/nova/+spec/userdata-modification (not yet)
[07:09] <korean101> Putti: thanks!!
[07:10] <Putti> ok, glad that something worked
[07:10] <Putti> :)
[08:20] <nixstar> hello
[08:22] <nixstar> wanted to know if there is any way to get the fqdn - eth0 IP addr entry in /etc/hosts?
[08:22] <nixstar> wanted to get an entry like below
[08:22] <nixstar> 10.87.3.83 comet.test.com comet
[08:23] <nixstar> not able to see any variables that have IP addr in cloud-init
[09:40] <Putti> nixstar, at least something like a shell script given as user data should do it.
[09:41] <Putti> nixstar, or http://cloudinit.readthedocs.io/en/latest/topics/examples.html#writing-out-arbitrary-files
[09:43] <nixstar> thanks Putti
[09:44] <nixstar> I was hoping there must be some variable or inbuilt function that gets the IP
[09:45] <Putti> nixstar, you should use this: http://cloudinit.readthedocs.io/en/latest/topics/modules.html#update-etc-hosts
[09:46] <nixstar> i used that
[09:46] <Putti> ah yes, you want the ip too
[09:46] <nixstar> yes
[09:57] <Putti> nixstar, I looked the code cloudinit/distros/__init__.py and it seems not. Currently the value comes from the function _get_localhost_ip() so you could change that if you want, or could make a patch to be applied in upstream... I could even do that.
[09:58] <Putti> hmm or if you just change the ip with some script in /etc/cloud/templates/hosts.tmpl it looks like it preserves the ip addr
[10:05] <Putti> nixstar, you can of course use other tools like ansible to add the ip address there
[10:11] <nixstar> Putti, let me check the code
[10:12] <Putti> I started making the patch but I'm currently looking code for getting the eth0 ip address.
[10:13] <Putti> can the interface have multiple ip addresses?
[10:13] <nixstar> In my case no
[10:17] <nixstar> Putti are contributing member of cloud-init?
[10:17] <nixstar> * are you
[10:18] <Putti> I have submitted some patches to the launchpad but none yet in
[10:18] <nixstar> ok :)
[10:19] <nixstar> I haven't worked much with cloud-init, so thought there might be some to get the IP and ...came here
[16:08] <blackboxsw> nixstar Putti are you folks looking at  http://cloudinit.readthedocs.io/en/latest/topics/modules.html#set-hostname  maybe?
[16:08] <blackboxsw> bummer, missed nixstar.