korean101 | Hi guys. | 01:55 |
---|---|---|
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:56 |
korean101 | how can i change already created user-data | 01:57 |
korean101 | ?? | 01:57 |
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:08 |
korean101 | Putti: https://blueprints.launchpad.net/nova/+spec/userdata-modification (not yet) | 07:09 |
korean101 | Putti: thanks!! | 07:09 |
Putti | ok, glad that something worked | 07:10 |
Putti | :) | 07:10 |
=== frickler_ is now known as frickler | ||
nixstar | hello | 08:20 |
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:22 |
nixstar | not able to see any variables that have IP addr in cloud-init | 08:23 |
Putti | nixstar, at least something like a shell script given as user data should do it. | 09:40 |
Putti | nixstar, or http://cloudinit.readthedocs.io/en/latest/topics/examples.html#writing-out-arbitrary-files | 09:41 |
nixstar | thanks Putti | 09:43 |
nixstar | I was hoping there must be some variable or inbuilt function that gets the IP | 09:44 |
=== shardy is now known as working_shardy | ||
Putti | nixstar, you should use this: http://cloudinit.readthedocs.io/en/latest/topics/modules.html#update-etc-hosts | 09:45 |
nixstar | i used that | 09:46 |
Putti | ah yes, you want the ip too | 09:46 |
nixstar | yes | 09:46 |
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:57 |
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 | 09:58 |
Putti | nixstar, you can of course use other tools like ansible to add the ip address there | 10:05 |
nixstar | Putti, let me check the code | 10:11 |
Putti | I started making the patch but I'm currently looking code for getting the eth0 ip address. | 10:12 |
Putti | can the interface have multiple ip addresses? | 10:13 |
nixstar | In my case no | 10:13 |
nixstar | Putti are contributing member of cloud-init? | 10:17 |
nixstar | * are you | 10:17 |
Putti | I have submitted some patches to the launchpad but none yet in | 10:18 |
nixstar | ok :) | 10:18 |
nixstar | I haven't worked much with cloud-init, so thought there might be some to get the IP and ...came here | 10:19 |
=== working_shardy is now known as shardy | ||
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. | 16:08 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!