Resource Type: shellvar

Defined in:
lib/puppet/type/shellvar.rb
Providers:
augeas

Overview

Manages variables in simple shell scripts.

Properties

  • comment

    Text to be stored in a comment immediately above the entry. It will be automatically prepended with the name of the variable in order for the provider to know whether it controls the comment or not.

  • ensure (defaults to: present)

    Create or remove the shellvar entry

    Supported values:
    • present
    • absent
    • unset
    • exported
  • value

    Value to change the variable to.

Parameters

  • array_append (defaults to: false)

    Whether to add to existing array values or replace all values.

    Supported values:
    • false
    • true
  • array_type (defaults to: auto)

    Type of array mapping to use, defaults to ‘auto`.

    • ‘auto` will detect the current type, and default to `string`

    • ‘string` will render the array as a string and use space-separated values

    • ‘array` will render the array as a shell array

    Supported values:
    • auto
    • string
    • array
  • name (namevar)

    The default namevar

  • provider

    The specific backend to use for this ‘shellvar` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • quoted (defaults to: auto)

    Quoting method to use, defaults to ‘auto`.

    • ‘auto` will quote only if necessary, leaving existing quotes as-is

    • ‘double` and `single` will always quotes

    • ‘none` will remove quotes, which may result in save failures

    Supported values:
    • auto
    • double
    • single
    • none
    • false
    • true
  • target (namevar)

    The file in which to store the variable.

  • uncomment (defaults to: false)

    Whether to remove commented value when found.

    Supported values:
    • true
    • false
  • variable (namevar)

    The name of the variable, e.g. OPTIONS