Merge lp:~michael.nelson/charm-helpers/create-hook-symlinks into lp:charm-helpers
Status: | Work in progress |
---|---|
Proposed branch: | lp:~michael.nelson/charm-helpers/create-hook-symlinks |
Merge into: | lp:charm-helpers |
Prerequisite: | lp:~michael.nelson/charm-helpers/ansible-detect-hooks |
Diff against target: |
193 lines (+91/-13) 2 files modified
charmhelpers/contrib/ansible/__init__.py (+44/-10) tests/contrib/ansible/test_ansible.py (+47/-3) |
To merge this branch: | bzr merge lp:~michael.nelson/charm-helpers/create-hook-symlinks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
charmers | Pending | ||
Review via email: mp+216143@code.launchpad.net |
Commit message
Don't require charm author to create symlinks for each hook used in the playbook.
Description of the change
Can't currently get this to work, as python-support is installed with ansible, so when the install hook runs, it doesn't seem possible to import ansible.utils in the same process, as sys.path hasn't been setup by python-support.
Tried manually adding /usr/share/pyshared but it's not enough (and a dangerous path).
Unmerged revisions
- 149. By Michael Nelson
-
Use /usr/share/pyshared
- 148. By Michael Nelson
-
Ensure pymodules on the path.
- 147. By Michael Nelson
-
Update available_tags during hook execution if it couldn't be set at init time.
- 146. By Michael Nelson
-
Set required symlinks based on playbook tags.
- 145. By Michael Nelson
-
Deprecation warning.
- 144. By Michael Nelson
-
Hook-up with get_tags_
for_playbook. - 143. By Michael Nelson
-
Add get_tags_
for_playbook. - 142. By Michael Nelson
-
Add available tags to module - need to populate during install.