Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7773

Unable to remove Cron environment

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Debian 7
      FreeBSD 9.2

      Description

      When I set an environment parameter for a Cron resource, it can't be removed afterwards. Defining an empty environment parameter is not allowed.

      For example:

      cron { 'test':
        command => '/bin/echo',
      }
      

      creates:

      # Puppet Name: test
      * * * * * /bin/echo
      

      When I set an environment, it appears in the crontab:

      Cron['test'] { environment => 'FOO=BAR' }
       
      # Puppet Name: test
      FOO=BAR
      * * * * * /bin/echo
      

      When I remove the environment parameter, the crontab is not affected at all, and setting an empty or undef environment either is not allowed or doesn't change the crontab.

      How do I remove the environment?

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                skoef Reinier Schoof
                QA Contact:
                Narmadha Perumal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: