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

Add user_attributes type (only modifies existing users)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:

      Description

      To avoid a too coarse dependency, I suggest addition of the following type: user_attributes. It allows modifying existing users, but never creates/deletes them.

      This then allows e.g.:

      class shell {
        file {'/etc/zshrc':
          ensure => 'present',
          owner => 'root',
        }
      }
       
      class shell::user {
        require shell
        user_attributes {'root':
          shell => '/bin/zsh',
        }
      }
       
      include shell::user
      

      If we had used the user type here, this would have caused a cyclic dependency.

      Detail: user_attributes has more or less the same attributes as user type, minus ensure and any other attributes related to user creation.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                kylo Kylo Ginsberg
                Reporter:
                nansa Tim Diels
                QA Contact:
                Eric Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: