Set modulepath to the first element of puppet's modulepath.
This duplicates the behavior of puppet module install for the git clone operations. Puppet module install will use the first element of the modulepath. This makes the git clone operations go into the same directory as the modules installed via the puppet module tool. This helps us downstream because we are moving the directory that holds these modules out of /etc/ and into /opt/. Change-Id: I0c7833a6d9a79fa613efc9daebee916f3192306a
This commit is contained in:
parent
7460b23e33
commit
4cc08edcd3
@ -14,7 +14,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
MODULE_PATH=/etc/puppet/modules
|
||||
MODULE_PATH=`puppet config print modulepath | cut -d ':' -f 1`
|
||||
SCRIPT_NAME=$(basename $0)
|
||||
SCRIPT_DIR=$(readlink -f "$(dirname $0)")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user