Skip to main content
Table of contents

Accounts

Remove a user from Puppet

Removing a user from our infrastructure via Puppet is a 2 change process that requires a deploy in the middle. The first change ensures that when Puppet runs the user’s home directory is removed; the second change removes the user from Puppet itself. If the user is just removed from Puppet their files will remain on our servers forever more.

  1. First find the user manifest in: modules/users/manifests.
  2. Add an entry to the govuk_user class of ensure => absent. Here is an example.
  3. Once this has been raised as a PR and merged, deploy Puppet to all environments.
  4. Create a PR in GOV.UK secrets that:
  5. Create another PR for Puppet that:
  6. Once these have been merged, deploy Puppet again to all environments.
This page was last reviewed on 29 May 2019. It needs to be reviewed again on 29 May 2020 by the page owner #govuk-2ndline .
This page was set to be reviewed before 29 May 2020 by the page owner #govuk-2ndline. This might mean the content is out of date.