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

Unclear message when removing user expiry

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Master Config:
      Split
    • Agent OS:
      SLES 11 (i386, x86_64)
    • Master OS:
      RHEL 7 (x86_64)
    • Team:
      Platform OS

      Description

      Example resource:

      user { 'dragos':
      ensure => 'present',
      comment => 'dragos',
      expiry => '1970-01-01',
      gid => '120',
      home => '/home/dragos',
      password => 'here-goes-a-hash',
      password_max_age => '99999',
      password_min_age => '0',
      shell => '/bin/bash',
      uid => '1003',

      If I'm setting the expiry via the manifests file as absent:

      expiry => 'absent',

      , will cause a --noop run to report that the current expiry value should be absent:

      Notice: /Stage[main]/XXX::dragos/User[dragos]/expiry: current_value 1970-01-01, should be absent (noop)

      , while an actual run will report an invalid expiry value:

      Notice: /Stage[main]/XXX::dragos/User[dragos]/expiry: undefined 'expiry' from '1970-01-01'

      The goal is to be able to remove the account expire date, for an account that already has a value set.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  d3ag0s Dragos
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: