<div dir="ltr">What's the difference between Actions and Set? If I do "juju set mysql admins=nate,bill" the mysql charm sees the updated admins, and performs some action (updating permissions in this case). How is that different from something like "juju do setadmins mysql nate,bill" ?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 27, 2014 at 11:24 AM, Gustavo Niemeyer <span dir="ltr"><<a href="mailto:gustavo@niemeyer.net" target="_blank">gustavo@niemeyer.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Mar 27, 2014 at 12:05 PM, James Solomon <<a href="mailto:binary132@gmail.com">binary132@gmail.com</a>> wrote:<br>
> I'd like to clarify what I'm understanding here: we are to implement the new<br>
> commands alongside "deploy" and "set" as verbs belonging to the Charm code.<br>
> And these commands are implemented separately from the /cmd code tree (I<br>
> guess the Command and RunCommand interfaces are for the "juju run" code<br>
> discussed above.)<br>
<br>
</div>That's almost right. It does need something analogous to the "set"<br>
command, and that is in fact sitting right next to the "set"<br>
configuration command. This is the "do" command in "juju do ...", and<br>
is not a verb belonging to the charm code. In addition to that, it<br>
needs action-get and action-set commands, analogous to config-get and<br>
config-set, and that is available to the charm hooks.<br>
<div class=""><br>
> "That's surprising, FWIW" -- on that side note, one scalable alternative to<br>
> parallel SSH for remote exec is ZeroMQ, which is really effective in<br>
<br>
</div>We already have a comprehensive mechanism to distribute requests to<br>
the unit agents. The main surprise is that it's not being used in this<br>
case. That said, if we are to discuss this, let's please start a new<br>
thread as this is a completely independent subject.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a><br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</div></div></blockquote></div><br></div>