/srv/irclogs.ubuntu.com/2011/11/24/#juju.txt

SpamapSmarcoceppi: put your email address (the more precise, the better), but yes, otherwise good.00:02
m_3aren't we ok with a copyright for the whole charm-tools project applying to the whole thing?00:04
SpamapSm_3: IMO no. Put a header on every file. Especially files full of code that people will be tempted to copy/paste into their charms. ;)00:05
m_3gotcha, yeah if they're gonna be real snippets00:06
SpamapSm_3: the more explicit one is about their licensing, the less they have to deal with it later on.00:06
m_3cool00:06
SpamapSambiguity is the enemy of license due dilligence. ;)00:06
marcoceppiSpamapS: Thanks! pushed up00:09
SpamapSmarcoceppi: looks good. :)00:12
marcoceppiawesome00:13
SpamapSmarcoceppi: so, if you wanted to get your feet wet on packaging.. lp:~charmers/charm-tools/packaging00:13
marcoceppiSpamapS: <3 wet feet00:14
SpamapSmarcoceppi: the idea would be to add a charm-helpers-sh to debian/control ...00:14
SpamapS(ignore everything outside of debian/ in that branch)00:14
marcoceppiI'll take a look and branch00:15
SpamapSmarcoceppi: and then a charm-tools-sh.install file which puts the files in /usr/lib/charm-helpers/sh00:15
SpamapSactually00:16
SpamapSthey should be in /usr/share/charm-helpers/sh00:16
SpamapS/usr/lib should only have binaries00:16
marcoceppihow do I get the file into the environment?00:16
SpamapSlike, in your charm?00:17
SpamapS. /usr/share/charm-helpers/sh/net.sh00:18
marcoceppiSure, for instance.00:18
marcoceppiWould I need to source it00:18
marcoceppiah, k00:18
SpamapSsimplest way00:18
_mup_Bug #894362 was filed: orchestra launch failure can "lose" machines <juju:In Progress by fwereade> < https://launchpad.net/bugs/894362 >12:26
=== TeTeT_ is now known as TeTeT
rogfwereade_: if you want a distraction for a bit: https://codereview.appspot.com/5433056/14:20
fwereade_cheers rog14:20
rogfwereade_: unfortunately the diffs include the diffs from the previous merge request which only changed the error type14:21
fwereade_rog: don't worry about it :)14:21
rogfwereade_: it's an interesting thing though that i hadn't previously - merge requests are submitted against a moving target...14:22
rogs/ously/ously appreciated/14:22
fwereade_rog: yeah, I find that the regular merge-test-pushes become a bit tedious when I have more than two or 3 branches pending14:23
rogfwereade_: i can see why some people choose a more linear model14:24
fwereade_rog, I feel like I've adapted quite well, and am content14:25
fwereade_rog, it's only really something I notice when i have multiple branches out14:25
rogfwereade_: cool. i'm aiming for that state of mind :-)14:25
fwereade_rog, otherwise when I'm working it's just a regular work-merge-work-merge-work-merge thing and it fades into the mental background14:25
rogfwereade_: that's easier when reviews are timely, i guess14:26
fwereade_rog, well, maybe wok-merge-work-merge-work-merge-dammit,conflict-fiddle-fiddle14:26
fwereade_rog, definitely14:27
roganyone know of a way to change a repo's default push location without actually using push?14:45
therverog, you can set something for your branch in the locations.conf?14:48
rogtherve: do you mean branch.conf?14:49
rogtherve: if that's the definitive source for the info, that's a good idea, thanks.14:50
therveI meant ~/.bazaar/locations.conf, but branch.conf sounds good too :)14:51
rogtherve: hmm, except it's stored there in full URL form rather than short lp:... form. i wonder if it'll work anyway.14:52
hazmatrog, its worthwhile looking up the docs for location.conf, it has lots of options.. appendpath is the most useful, you can set for the parent directory and your subdirs (branches) all pickup the appropriate push path15:12
roghazmat: i'll have a look, but it's only for a branch temporarily created by a script, so maybe not appropriate in this case.15:15
hazmatrog, its worth looking/setting up regardless of an individual branch15:15
* hazmat wanders off to enjoy the holiday15:16
roghazmat: useful, yes, but in this case branch.conf is what i needed.15:34
rogfwereade_: next review in stack: https://codereview.appspot.com/5431067/15:39
fwereade_rog, cheers again15:39
rogoh bugger, it's got two prerequisites15:40
fwereade_rog, sorry, I've been finding it a bit tricky to engage with reviewing today15:40
rogfwereade_: that's fine, it's just a FYI15:40
fwereade_rog, ha, I find it very irritating that multiple prereqs aren't handled by lp15:40
rogfwereade_: i couldn't push without a nod from gustavo anyway15:40
rogfwereade_: aren't they?15:40
fwereade_rog not that I'm aware of15:41
fwereade_rog, if C depends on B depends on A, fine15:41
fwereade_if C depends on both A and B I don't think that can be expressed15:41
rogah, so i see. oh well, i won't have to start yet again then15:41
rogyeah, this review relies on two parallel changes to two different repositories15:41
rogs/review/merge request/15:42
rogi'll just put it in the comments15:42
fwereade_rog, I found making sure the branch with the bigger diff-from-trunk was the one marked as the prereq was helpful to people15:43
roghmm, let me see15:43
rogthe diffs come to 980 vs 1257 lines respectively. i've chosen the wrong one, but it's probably not too bad.15:45
rogis there some definitive documentation on cloudinit somewhere? this only seems to give some examples: https://help.ubuntu.com/community/CloudInit17:38
george_ejcastro: Please, oh please be here...20:07
george_eI ran into some problems polishing up my ThinkUp charm.20:08
SpamapSgeorge_e: anything I can help with?22:18
SpamapSrog: the package puts some good stuff in /usr/share/doc/cloud-init.. I think22:18
rogSpamapS: i'd looked at that. nothing like definitive docs there.22:22
george_eSpamapS: Possibly - I am writing a charm for ThinkUp and I have a question about config. data.22:22
rogi ended up going through the source codee22:23
SpamapSgeorge_e: fire away.. :)22:23
george_eIf in config.yaml I do not specify a default value for a particular option, what is the value of that option when I look it up with 'config-get'?22:23
SpamapSrog: I think the best docs are just the example cloud config yaml22:24
SpamapSgeorge_e: I believe its ""22:24
SpamapSgeorge_e: as in, empty22:24
george_eOkay, thanks.22:24
george_eI was just wondering about that.22:24
SpamapSgeorge_e: best to always specify a default though. :)22:24
SpamapSI think we talked about making some values required, which would mean you couldn't deploy the charm, and there was a lot of resistance to that idea.22:24
george_eWell, not in this case: it's for a username and password and email address :)22:25
george_eAll the other options have defaults though.22:25
rogSpamapS: i just went through cloudinit/CloudConfig/cc_*.py and looked for occurrences of "cfg"22:41
rogSpamapS: which gave a pretty good idea of what fields there are and what types are expected22:41
rog(which is what i wanted to know, as i was making a Go package for generating cloud-init config)22:41
rogoff to bed.22:43
SpamapSgeorge_e: in the past I've used the empty string in the yaml file as the explicit default, and acted accordingly. :)22:47
george_eSo just "default:" will suffice?22:47
SpamapSgeorge_e: I did  default: ""23:32
george_eWith quotes? Does that work?23:32
SpamapSyes it is type: string23:32
george_eOkay, thanks.23:35
george_eSpamapS: Does config-get return the same data in each hook?23:35
george_eFor example, can I access the DB config data in the config-changed hook?23:36
SpamapSgeorge_e: relation-get is only available in *-relation-* hooks23:38
SpamapSgeorge_e: config-get is always available23:38
george_eOh right.23:39
george_eOkay, thanks.23:39

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