Alexey Khivin 93b03c0e81 [Puppet] Class for building puppet cluster
Change-Id: Idd1ef2dabf6146d62c9e9bee1831127c3c967b7e
2016-08-01 16:40:46 +03:00

12 lines
194 B
Bash

#!/usr/bin/env bash
ENV_NAME="$1"
PUPPETFILE_LINK="$2"
ENV_DIR="/etc/puppet/environments/${ENV_NAME}"
cd ${ENV_DIR}
wget --quiet -c ${PUPPETFILE_LINK} -O Puppetfile
librarian-puppet install