charms should be able to provide a 'missing-hook' script

Bug #1009687 reported by Clint Byrum
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Unassigned
pyjuju
Confirmed
Wishlist
Unassigned

Bug Description

Rather than having a bunch of symlinks to one central controlling hook, we should simply have a 'missing-hook' hook that gets executed with the name of the missing hook as the first cmdline argument.

This would make it easier to write charms which apply configuration using other tools such as puppet or a more declarative charm-helper.

Tags: charms feature
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

<imbrandon> would be really cool to have a hooks/missing hook
<imbrandon> that could get called if there was no other named hook
<hazmat> imbrandon, a whole charm with a single missing hook ... ick ;-)
<imbrandon> hahahah i was waiting for that :) it sounded good in my head and for like 5 miuntes, but the more i thought about it I tend to agree :) heh
<SpamapS> hazmat: so you'd rather have a whole charm with a single hook, and 20 symlinks?
<SpamapS> hazmat: because, thats whats there now, and its kind of ridiculous ;)
<hazmat> SpamapS, yeah.. because that's also discoverable what hooks its using
<hazmat> a single missing hook.. no idea
<SpamapS> at what point do you care?
<hazmat> the point where your debugging it
<hazmat> or modifying it
<SpamapS> If you're already debugging or modifying it
<SpamapS> you're editting the missing hook
<SpamapS> which isn't a useful hook without a clear routing switch/case of some kind
<SpamapS> Unless it calls a declarative charm helper thing.. which is what I think would be cool
<SpamapS> I mean, its already happening. Its just happening in a clunky way with symlinks
<SpamapS> because now you have to have the routing switch/case *AND* the symlinks
<imbrandon> hrm , declarative charm helpers and one hook .... hrm
<hazmat> SpamapS, as a charm author i can see that being nice.. as a farmer.. its nice to know what hooks are being used without having to dig through arbitrary src
<SpamapS> hazmat: As a one time chief farmer, and now occasional farmer.. I respectfully disagree. I still have to read the symlinked-to thing before I understand the charm... and often its not clear what is symlinked to.

Changed in juju:
status: New → Confirmed
Changed in juju:
milestone: none → 0.8
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Low
tags: added: charms feature
Changed in juju-core:
assignee: nobody → Nate Finch (natefinch)
status: Triaged → In Progress
milestone: none → next-stable
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: next-stable → none
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

No update for a long time - putting back to Triaged.

Changed in juju-core:
status: In Progress → Triaged
Nate Finch (natefinch)
Changed in juju-core:
assignee: Nate Finch (natefinch) → nobody
Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.