/srv/irclogs.ubuntu.com/2016/06/13/#cloud-init.txt

apsHi guys. Is there a way to suppress output of "apt_update" and "package_upgrade"?11:28
smoseraps, as in you dont want them going to /dev/console ?13:10
smoser http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L59913:10
=== Toger_ is now known as Toger
=== Toger_ is now known as Toger
harlowjamgagne if u get anytime reviews on  https://code.launchpad.net/~harlowja/cloud-init/cloud-init-net-sysconfig/+merge/297115  would be cool18:48
harlowjathat should be the thing that lets u get rid of https://github.com/mgagne/cloud-init-fedora-pkg/blob/epel7/cloud-init-0.7.5-network-info-support.patch18:48
harlowjaif rharper then does a networkd (?) renderer, then the world will all be merry18:48
mgagneharlowja: ok, will I need to rebuild a package?19:00
harlowjalikely, especially since that hasn't merged yet :-P19:03
smemshhello, i'm making a cidata volume for local attach to a vm (i.e. not cloud).  i understand that network config has to be in metadata, not userdata.  however it looks like straight debian format.  does this format work for a centos image? will cloud-config "know" how to translate it?19:07
smosersmemsh,yes, cloud-init will convert the debian interfaces style format into appropriate distro config.19:36
smoserthis is very m uch in progress thoguh, and recently improved.19:37
smemshsmoser: it won't require me to be using systemd will it?19:37
smoserand harlwoja is working on the renderer for centos19:37
drqis cloud-init/freebsd-configdisk included in 0.7.6? I installed py26-cloud-init on FreeBSD 10.3-RELEASE. and I'm having issues with it seeing a mounted ISO.19:37
smemshsmoser: i'm using the centos6-generic cloud image, which uses afaik the "old" /etc/sysconfig/network-scripts way19:38
smoserharmw_, ^ ?  drq i have very little experience there. if you wanted to let me in i could maybe quick poke around..19:38
smosersmemsh, that should be fine.19:38
smemshi see that google cloud is listed as the providers that use cloud-init, but it doesn't seem to be in their stock images19:39
drqOn our deploy scripts for linux on VMware, we mount an ISO with the config data on it. We haven't started using FreeBSD yet, but I'm trying to get it ready. I have an ISO mounted (not real data), but it appears that it doesn't look at /dev/cd0 for anything.19:40
drqdatasource_list is19:41
drqdatasource_list: ['ConfigDrive']19:41
smoserdrq, do you have blkid available ? it uses that to find things.19:41
smemshi found it easier to use a vfat with a label.  it's just a mkfs -t vfat -n cidata of any old thing19:42
drqis that installed as a dependency? blkid isn't found on the host.19:42
smemshis blkid on non-linux?19:42
drqpkg e2fsprogs-libblkid-1.42.13 might have it. Let me install that.19:43
smemshlibblkid-119:43
smemshi assumed that just parsed stuff in /sys, surprised it works on freebsd19:44
smoserdrq, see tools/build-on-freebsd19:44
smoserin trunk19:44
drqOK. let me try to find that.19:45
drqthere are so many cloud-init's in github. which is it.19:48
smosernone :)19:48
smoserhttps://launchpad.net/ubuntu/+source/cloud-init19:49
smoserwe shoudl be moving to git on launchpad soon.19:49
smoserwhich i might well maintain a mirror in github to help clear that confusion19:50
smemshi had same question.  openstack has one i'm assuming would be reasonable fresh19:52
smemshthey don't say in the repo comment that it's a mirror though, they should19:53
drqgot launchpad up in browser. I'll peruse that and see what I find and chew on it overnight. Thanks. Be back in the morning.19:53
smemshlatest commit october 2015 hmm19:53
smosersmemsh, well, the stuff under openstack was intended to be for cloud-init 2.019:54
smoserwhich kind of fizzled as we 've focused more on the 0.7 branch19:54
smemshsmoser: yeah howcome latest is 0.77, but next is 2.0 ? what happened to 1.0?19:54
smoserwell, 2.0 was picked as next just because it was intende to include windows support, which woudl be heavy rewrite. but that has been put on hold at least in the near future19:55
smemshlooks like there is https://git.launchpad.net/~usd-import-team/ubuntu/+source/cloud-init19:57
smosersmemsh, that is actually ubuntu packaging.19:57
smemshoh the debcheckout19:58
smoserright.19:58
smoserthe usd-import-team branches are for all packages. they're what "ubuntu distributed development" used to be for bzr19:58
smoserthey're just getting started really, but they will represent what was actually in the archive19:58
drqsmoser -> installing e2fsprogs installed blkid and it sees the ISO and does complain about the ISO I have mounted. Now we're cooking. Thanks.19:59
smemshdebian's is based on bzr121520:05
smemshwell, the jessie backport is bzr1156 and jessie is 97620:05
smemshi used lp:~smoser/ubuntu/yakkety/cloud-init/pkg guess that is 0.7 tip20:08
smemshoh nice there is lxd module20:10
smosersmemsh, the network configuration rendering is *heavily* updated in the last yakkety upload (ie, really recent)20:10
smoserand will get more for centos soon.20:10
smoserwith harlowja's work.20:10
harlowjaeventualy20:10
smemshhrm, well i'm hoping the latest upstream centos generic cloud images have whatever they need for it to work correctly... i will find out shortly.  working out the syntax atm (docs are a little sparse for some things)20:11
smemshwow cool you can provide cc data via /proc/cmdline??? that's really neat20:13
smemshwhat is the instance-id used for? i can set this to gibberish right?20:15
smemshi'm just booting in local vm20:16
smosersmemsh, right.20:24
smoserit shoudl be unique to this "instance".20:24
smoserif you change it that image will then think it needs new.20:24
smemshto support reprovision without a data wipe / reset ?20:26
smoserright.20:26
smosercloud-init supports shutdown and snapshot and new instance from taht snapshot20:27
smoserand i think that is a pretty common work flow on amazon..20:27
smosera.) start a ubuntu image20:27
smemshah so like an iterative cloning20:27
smoserb.) ssh in or automated do some stuff20:27
smoserc.) shutdown20:27
smoserd.) snapshot20:27
smosere.) new gold master .... profit!20:27
smemshyeah that makes sense.  however i would advocate for reset, the changes should be done in the automation layer (in my case ansible) and easy to reproduce the initial parts.  but it could be time consuming, i can see where it's useful to support the shortcut (and not everyone needs a layer after cloud-init)20:30
smemshi was thinking that after reading the list of all the modules, it's like, duplicating a lot of the modules in the config/orch tool.  was thinking hm if i can do all this in cloud-init, do i even need ansible? but it's like you can't go backwards or be declarative with cloud-init so i dunno20:33
smemshi can sort of see that as happening though in some future.  like cloud-init evolving into a more general-purpose orchestration tool that knows the full state of the machine20:34
smemshthe truth store / metadata can be updated and cloud-init can poll it or subscribe or something and then determine what needs to change20:35
smemshwith the NoConfig i.e. using a cidata-labeled filesystem, do i have to insert ssh key data into the config file or can i use #include and file:// urls just like for real metadata sources? idea being, to copy the key data from outside onto the vfat filesystem rather than inserting in /user-data22:06
smemshoh, it would still have to be the same format anyways, i couldn't just insert contents of a file.  so that won't work.  but the question is still valid, can i split up the files that way22:07
smemshi'm guessing /user-data can contain anything that it could from whatever source.  so i guess the only question is whether file:// urls will look up from other files on the config filesystem or if it's only http scheme supported22:11
smemshare 'hostname' and 'local-hostname' just aliases?22:55
smemshdoc/examples/cloud-config-resolv-conf.txt has "manage-resolv-conf: true" but should be underscores23:41

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!