<%# name: Puppet Module - Install from forge - Script Default model: JobTemplate job_category: Puppet description_format: Install Puppet Module "%{puppet_module}" from forge snippet: false template_inputs: - name: puppet_module required: true input_type: user description: Full name of the module, e.g. "puppetlabs-stdlib". advanced: false - name: target_dir required: false input_type: user description: The directory into which modules are installed, defaults to production environment. advanced: false - name: version required: false input_type: user description: Module version to install. advanced: true - name: force required: false input_type: user description: Force overwrite of existing module, if any. Type "true" to force. advanced: true - name: ignore_dependencies required: false input_type: user description: Do not attempt to install dependencies. Type "true" to ignore dependencies. advanced: true provider_type: script kind: job_template -%> <% if @host.operatingsystem.family == 'Debian' -%> export PATH=/opt/puppetlabs/bin:$PATH <% end -%> puppet module install <%= input('puppet_module') %> <%= "--target-dir #{input('target_dir')}" if input('target_dir').present? %> <%= "--version #{input('version')}" if input('version').present? %> <%= "--force" if input('force') == "true" %> <%= "--ignore-dependencies" if input('ignore_dependencies') == "true" %>