lp:~mew/charms/precise/postgresql/charmtool-path-fix
- Get this branch:
- bzr branch lp:~mew/charms/precise/postgresql/charmtool-path-fix
Branch merges
- Mark Mims (community): Approve
-
Diff: 28 lines (+3/-3)1 file modifiedhooks/hooks.py (+3/-3)
Branch information
- Owner:
- Matthew Wedgwood
- Status:
- Development
Recent revisions
- 30. By Marco Ceppi
-
Marco Ceppi 2013-02-06 Since we're working with explicit addresses don't appent /32
- 28. By Juan L. Negron
-
While putting together a charm with a postgresql relation, I ran into a situation that appears to have been anticipated by a TODO comment in the postgresql charm:
# XXX: This appears to reset the password every time
# this might not end wellSpecifically, I found that the password was being reset (IIRC by the db-{,admin-
}relation- changed hook) after I'd made use of it in my charm, and of course then everything went wrong. There doesn't seem any particularly nice way to deal with this; I don't think we can rely on the password being cached in the relation, because multiple relations might make use of the same user. But given the existing password handling, it doesn't seem that bad to just cache it in a file readable only by root, and this fixed the problem for me. Of course I'm open to better suggestions. MP: 135128
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:charms/postgresql