| amitprakash | Hi, would it be possible to use cloud-init to populate specific conf.d files? | 07:23 |
|---|---|---|
| === rangerpbzzzz is now known as rangerpb | ||
| amitprakash | Hi, would it be possible to use cloud-init to populate specific conf.d files? | 13:31 |
| jrwren | amitprakash: i don't know what that means. There is a write_files module which can write any file on the system. | 13:35 |
| amitprakash | jrwren, aight thanks :) | 13:38 |
| amitprakash | jrwren, what if I want to pass things link nproc to write_files ? | 13:39 |
| amitprakash | specifically, I wish to specify number of cpus, ram available etc | 13:39 |
| jrwren | I don't understand that. If you write it to a file, it will work. | 13:40 |
| amitprakash | jrwren, let me rephrase, in the content section for write_files, how do I generate such values on the fly? | 13:42 |
| amitprakash | Because from what I am reading content can contain static strings | 13:44 |
| jrwren | You do not, out of the box. | 13:47 |
| jrwren | I have, in the past, made my own template system to generate the cloud config and launch instances. | 13:47 |
| amitprakash | jrwren, any documentation against how I can do the same? | 13:48 |
| amitprakash | Or if you can share your work instead? | 13:48 |
| jrwren | amitprakash: the work i did was not opensource, but it was only python Template strings. | 13:50 |
| amitprakash | aight, thanks. I'll google around for similar approaches :) | 13:51 |
| rharper | amitprakash: you can always write a shell script to do what you want, (fetch nprocs and write out your conf files) and then inject the script via write-files and call it via runcmd | 13:52 |
| rharper | smoser: when you get a change, I'd like to discuss https://bugs.launchpad.net/cloud-init/+bug/1619423 re: Ubuntu-core | 13:54 |
| smoser | rharper, yeah. | 14:02 |
| rharper | *chance* | 14:05 |
| * rharper drinks more coffee | 14:05 | |
| smoser | rharper, https://hangouts.google.com/hangouts/_/canonical.com/hangout-smoser | 14:07 |
| rharper | k | 14:07 |
| smoser | http://paste.ubuntu.com/23338848/ | 14:22 |
| smoser | http://paste.ubuntu.com/23338850/ | 14:23 |
| smoser | http://paste.ubuntu.com/23338852/ | 14:24 |
| === mfisch` is now known as mfisch | ||
| === mfisch is now known as Guest56218 | ||
| === Guest56218 is now known as mfisch | ||
| === mfisch is now known as Guest8770 | ||
| === Guest8770 is now known as mfisch | ||
| === shardy is now known as shardy_afk | ||
| === rangerpb is now known as rangerpbzzzz | ||
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!