SUSE / machinery

A systems management toolkit for Linux
GNU General Public License v3.0
158 stars 32 forks source link

Add an options to skip exporting UID, GID, and package version #2283

Closed guangyee closed 3 years ago

guangyee commented 3 years ago

If a given UID has already been taken by a different user on a target machine, user creation will fail. Therefore, we need to provide an option to skip exporting the UIDs from source machine to avoid potential UID conflicts when recreating the user on the target machine. In this case, a new UID will be allocated during user creation as per

https://docs.saltproject.io/en/latest/ref/states/all/salt.states.user.html

To skip migrating UID, use '--skip-uid' option.

Likewise, use '--skip-gid' option to skip GID migration.

When migrating to a higher OS version, we may not want to migration to package version as that would constitutes a package downgrade. Furthermore, the specific package version may no longer be supported in the higher OS version. Therefore, we need an option to skip migrating the package version.

To skip migrating package version, use '--skip-package-version' option.