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:
Spencer Krum 2014-11-25 14:45:41 -08:00 committed by Spencer Krum
parent 7460b23e33
commit 4cc08edcd3
1 changed files with 1 additions and 1 deletions

View File

@ -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)")