Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3768

scheduled_task keeps reapplying

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      Hide

      Scheduled_task should not re-apply for arguments of string len up to 4096 chars, and commands of string len up to 260 chars.

      The acceptance test: acceptance/tests/resource/scheduled_task/should_modify.rb
      should pass.

      The integration test: spec/integration/util/windows/taskscheduler_spec.rb
      should pass.

      Show
      Scheduled_task should not re-apply for arguments of string len up to 4096 chars, and commands of string len up to 260 chars. The acceptance test: acceptance/tests/resource/scheduled_task/should_modify.rb should pass. The integration test: spec/integration/util/windows/taskscheduler_spec.rb should pass.
    • Story Points:
      2
    • Sprint:
      Windows 2016-06-15, Windows 2016-06-29

      Description

      Every puppet run I have a scheduled task that gets re-applied even though there was no change. After doing some digging, it looks like it applies correctly, but on the next run, it is only comparing a part of the argument string instead of the full string.

      It looks like when doing the comparison, it is only reading in the first 256 characters instead of the entire string.

      scheduled_task { 'cloud_backup':
      ensure => present,
      command => 'C:\Program Files\Duplicati\Duplicati.CommandLine.exe',
      arguments => template('fdlic/duplicati/backup.erb'),
      trigger =>

      { schedule => weekly, start_time => '08:00:00', start_date => '2014-05-08' }

      }

      arguments changed 'backup --ftp-username=empty --ftp-password=empty --max-upload-pr-second=500kb --thread-priority=BelowNormal --use-ssl --passphrase=empty --aes-encryption-dont-allow-fallback=true --full-if-older-than=1M --exclude=.wma --exclude=.mp3 --exclu' to 'backup --ftp-username=empty --ftp-password=empty --max-upload-pr-second=500kb --thread-priority=BelowNormal --use-ssl --passphrase=empty --aes-encryption-dont-allow-fallback=true --full-if-older-than=1M --exclude=.wma --exclude=.mp3 --exclude=.acc' --exclude=.mp4 --exclude=.avi --exclude=.3gp --exclude=.mpg --exclude=.mov

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              erick Erick Banks
              Reporter:
              z.shahan zack shahan
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support