| Index: hiera/install_precise.py |
| =================================================================== |
| --- a/hiera/install_precise.py |
| +++ b/hiera/install_precise.py |
| @@ -98,6 +98,8 @@ |
| subprocess.check_call(['apt-get', '-y', 'install', 'hiera-puppet']) |
| if not os.path.exists('/etc/puppet/hiera.yaml'): |
| - config = os.path.join(os.path.dirname(__file__), 'hiera.yaml') |
| + realpath = os.path.realpath(__file__) |
| + dirname = os.path.dirname(realpath) |
| + config = os.path.join(dirname, 'hiera.yaml') |
|
mathias
2015/03/17 09:28:48
This is actually a bug I encountered and fixed dur
|
| if os.path.exists(config): |
| os.symlink(config, '/etc/puppet/hiera.yaml') |