This will be another example for #Opscode #Chef . We will just extend the cookbook in the previous post to add a new recipe; we will add some extra lines to attributes file and write new simple recipe. Let's start with attributes file. To remove a user, required attribute is its name. Let's provide it: default['ruser']['name'] = "username" We will add an attribute which will specify whether to remove or keep home directory of removed user. Perhaps, it will be kept in the archive. Therefore, as default I set it false. default['ruser']['removehome'] = false
Development of cutting-edge technologies