mschuchard.general.puppet_apply (1.0.1) — module

Module to execute a Puppet application of a manifest.

| "added in version" 1.0.0 of mschuchard.general"

Authors: Matthew Schuchard (@mschuchard)

Install collection

Install with ansible-galaxy collection install mschuchard.general:==1.0.1


Add to requirements.yml

  collections:
    - name: mschuchard.general
      version: 1.0.1

Description

The standalone Puppet execution tool used to apply individual manifests.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# apply a puppet manifest at manifest.pp with test options
- name: Apply a puppet manifest at manifest.pp with test options
  mschuchard.general.puppet_apply:
    manifest: manifest.pp
    test: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# apply a puppet manifest at manifest.pp with debug and verbosity enabled in no-operative mode
- name: Apply a puppet manifest at manifest.pp with debug and verbosity enabled in no-operative mode
  mschuchard.general.puppet_apply:
    debug: true
    manifest: manifest.pp
    no_op: true
    verbose: true

Inputs

    
test:
    default: false
    description: Enable the most common options used for testing. These are 'verbose',
      'detailed-exitcodes', and 'show_diff'.
    required: false
    type: bool

debug:
    default: false
    description: Enable full debugging.
    required: false
    type: bool

no_op:
    default: false
    description: Use 'noop' mode where Puppet runs in a no-op or dry-run mode. This is
      useful for seeing what changes Puppet will make without actually executing the changes.
    required: false
    type: bool

verbose:
    default: false
    description: Print extra information.
    required: false
    type: bool

manifest:
    description: The path to the Puppet manifest file to apply.
    required: true
    type: str

Outputs

command:
  description: The raw Puppet command executed by Ansible.
  returned: always
  type: str