bundle agent adduser { # The file /etc/adduser.conf controls local user creation. # For local user creation we want to make sure that local users do # not have uidNumbers and gidNumber conflicting with those in LDAP. files: debian.!standalone.installation:: "/etc/adduser.conf" edit_line => adduser_conf; } bundle edit_line adduser_conf { replace_patterns: "LAST_UID=59999" replace_with => value("LAST_UID=1999"); "LAST_GID=59999" replace_with => value("LAST_GID=1999"); "DIR_MODE=0755" replace_with => value("DIR_MODE=0700"); }