/srv/irclogs.ubuntu.com/2014/03/23/#juju-dev.txt

=== Daviey_ is now known as Daviey
=== bodie_ is now known as Guest78484
hazmatanyone know what happened to the api for logs13:08
=== bodie_ is now known as Guest7331
rick_h_hazmat: it got back burnered and didn't end up landing yet13:24
rick_h_hazmat: I'm trying to recall what it got pulled to but can't recall off the top of my head13:25
hazmatrick_h_, yeah.. not seeing in the review queue or tree.. but i remember the discussions and thought it was imminent13:28
rick_h_hazmat: yea, we were tracking it to support debug-log in the gui, but it got handed off and then that person ended up getting pulled to a higher priority13:28
rick_h_hazmat: so it was still yellow close to red on the planning spreadsheet13:28
hazmatyeah.. looks like the latest was this mp https://code.launchpad.net/~rogpeppe/juju-core/themue-058-debug-log-api/+merge/20290913:29
hazmatbut that implementation is broken with ha13:30
rick_h_yea, there was a lot of implementation discussions and a couple of stabs and it needed some more work is my understanding.13:30
stokachuis there a way to copy a non core juju plugin to the deployed system?13:54
stokachuto be made available to a charm13:54
=== bodie_ is now known as Guest84660
hazmatstokachu, not sure if you got an answer.. but no re non-core plugin15:13
stokachuhazmat: ok thanks19:26
hazmatstokachu, the closet thing you can get is api access ala the gui, via config or login with credentials19:27
stokachuhazmat: ok i was trying to write a parser for charm development but couldnt think of a clean way to access the library19:28
hazmatstokachu, if its just a binary you can totally include it in a charm or pass it via juju scp19:28
hazmatstokachu, but that's a little different then modifying the env19:29
stokachuhazmat: so if i wrote it in go i could pass it through with scp19:29
hazmatstokachu, its a fairly trivial go program to validate charms..19:29
stokachuwas trying to do a parser for a 1 file charm deployment19:29
hazmatstokachu, you mean like a bundle archive? or19:29
stokachuyea19:29
hazmatstokachu, but why do you want the validation in the service/unit?19:31
stokachuits more of a parser like install => [ names => ['nginx'] ]19:31
stokachutranslate to apt-get install ..19:31
hazmatstokachu, deployer has a good amount of the logic for validation and checking.. i'd be game for seeing bundle archive support there... but i'm not sure we're talking about the same thing19:31
hazmatstokachu, if you want a dsl for charms, use charm-helpers..19:32
hazmatstokachu, we already have ansible, salt helpers there..19:32
stokachubut you still have to symlink all hooks to a hooks.py file19:32
hazmatstokachu, still not clear on the use case but bug  1009687 would cover that19:33
_mup_Bug #1009687: charms should be able to provide a 'missing-hook' script <pyjuju:Confirmed> <https://launchpad.net/bugs/1009687>19:33
stokachuhazmat: ah ok that helps19:34
hazmatjust linked it to core as well19:34
stokachujust didnt like the fact i had to symlink files everywhere19:34
hazmatstokachu, so charm-helpers + missing-hook + 1 file  should be close to what your saying..19:35
stokachuwould be easy if i could alter the cloud-init as well19:35
stokachuhazmat: yea exactly19:35
stokachuthinking more in line of like a Dockerfile or Vagrantfile19:35
hazmatstokachu, you need to use the api for provisioning if you want to mod cloud-init19:36
hazmatstokachu, i do it in some of my manual provider based plugins/tools19:36
stokachuhazmat: yea i was looking at your judo stuff19:36
stokachuhazmat: do you have it in there?19:36
* hazmat tries to remember judo19:36
hazmatso long ago.. before gui and before azure.. before core.. there was ju-jitsu ..19:36
stokachuhaha i remember that19:37
hazmatstokachu, no.. that stuff is way old and pyjuju based..19:37
hazmatstokachu, i'm on a plane atm.. (bandwidth bites).. but checkout add.py on github in my juju-lxc project19:37
hazmatre using the provisioning api19:38
hazmatyou can get a script, shove it into cloudinit and tweak the rest as needed19:38
hazmatstokachu, what's the use case?19:38
hazmatfor modifying cloudinit?19:39
stokachuhazmat: so basically i was attempting to create a Dockerfile syntax like for one file19:39
stokachubut required installing a few packages19:39
stokachuand i didnt want to install the packages in an install-hook and then re-eval after the fact19:39
hazmatstokachu,  dockerfiles have no orchestration.. there basically a simple makefile..19:39
hazmatwith snapshots for each command19:39
stokachuyea this was for charms19:39
stokachurather than writing pure shellscript19:39
hazmatstokachu, iotw.. how is this dsl going to do relations?19:40
hazmatstokachu, use ansible19:40
stokachuwell i was attempting to do it in perl :)19:40
stokachujust to hack at it19:40
* hazmat holds back the lol19:40
hazmatstokachu, what you want is already possible today using charm-helpers ansible support19:40
hazmatsingle file dsl, with relation support19:41
stokachuyea19:41
stokachubut you still have the symlinks until that bug gets fixed right?19:41
hazmatstokachu, yes19:41
stokachuok thats not so bad then19:41
hazmatstokachu, have fun19:41

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