old_contents: 
  from kokki import *
  
  env.include_recipe("ssh")
  
  Group("sysadmin",
      gid = 2300)
  
  for user in env.config.sysadmins:
      home = "/home/%s" % user['username']
  
      User(user['username'],
          uid = user['id'],
          home = home,
          groups = ["sysadmin"])
  
      Directory(home,
          owner = user['username'],
          group = user['username'],
          uid = user['id'],
          gid = user['id'],
          home = home,
          mode = 0700)
  
      Directory(env.cookbooks.ssh.ssh_path_for_user(user['username']),
          owner = user['username'],
          group = user['username'],
          mode = 0700)
      env.cookbooks.ssh.SSHAuthorizedKey("%s-%s" % (user['username'], user['sshkey_id']),
          user = user['username'],
          keytype = user['sshkey_type'],
          key = user['sshkey'])
  
new_contents: 
  from kokki import *
  
  env.include_recipe("ssh")
  
  Group("sysadmin",
      gid = 2300)
  
  for user in env.config.sysadmins:
      home = "/home/%s" % user['username']
  
      User(user['username'],
          uid = user['id'],
          home = home,
          groups = ["sysadmin"])
  
      Directory(home,
          owner = user['username'],
          group = user['username'],
          home = home,
          mode = 0700)
  
      Directory(env.cookbooks.ssh.ssh_path_for_user(user['username']),
          owner = user['username'],
          group = user['username'],
          mode = 0700)
      env.cookbooks.ssh.SSHAuthorizedKey("%s-%s" % (user['username'], user['sshkey_id']),
          user = user['username'],
          keytype = user['sshkey_type'],
          key = user['sshkey'])
  
subject: Fix to users.sysadmins