
In mixed environments with puppet modules installed from source or from packages, we end up in a situation where puppet can't find part of the modules. Symlink modules to their expected location for both source and package installs. Change-Id: I3e99feab5a2fff33cc4285197bdd5d00245d0999
11 lines
322 B
Bash
Executable File
11 lines
322 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
# Symlink modules to the expected location.
|
|
# Modules installed from package take precedence.
|
|
if (find /opt/stack/puppet-modules/ -mindepth 1 2>/dev/null) | read; then
|
|
ln -f -s /opt/stack/puppet-modules/* /etc/puppet/modules/
|
|
fi
|
|
ln -f -s /usr/share/openstack-puppet/modules/* /etc/puppet/modules/
|