Create puppet module framework
#!/bin/bash PUPPET_PATH="/etc/puppetlabs/puppet/modules" echo "What would you like to name your module?" read MODULE_NAME echo "Creating module framework..." MODULE_PATH="$PUPPET_PATH/$MODULE_NAME" mkdir "$MODULE_PATH" cd $MODULE_PATH && mkdir {files,manifests,templates,tests} MODULE_PATH="$MODULE_PATH/manifests" echo -e "class $MODULE_NAME {\n}" > "$MODULE_PATH/init.pp" echo -e "include $MODULE_NAME" > "$MODULE_PATH/tests/init.pp" echo "Module framework created successfully." tree -A