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

cron type and provider only return resources for ENV["USER"] or "root", not all users

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-5-21 to 2014-5-28, Week 2014-5-28 to 2014-6-4, Week 2014-6-4 to 2014-6-11
    • UX Priority:
      Major

      Description

      NOTE: This ticket now only tracks the adding of a warning about the upcoming fix. There will be a separate ticket to track the fix itself.

      Original report below.


      When using

      resources { cron: purge => true }

      only the root users crontab is purged. This works:

      cron {"foo":
              command => "ls",
              ensure => present,
              user => root,
      }
      

      (and then proceed to comment the above out):

      notice: /Cron[foo]/ensure: removed
      

      This does not work:

      cron {"bar":
              command => "ls",
              ensure => present,
              user => nick,
      }
      

      This crontab will still exist if commented out.

      Broken in 2.6 and latest stable.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  redmine.exporter redmine.exporter
                  QA Contact:
                  Narmadha Perumal
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support