fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

Update examples for user creations #159

Closed martbhell closed 7 years ago

martbhell commented 8 years ago

The ansible-role-users can be updated. Unfortunately it would mean that sites would need to update their group_vars - and we could have them do that before we update the role. If they don't, the "users" role will fail. But that is run very rarely so maybe that's ok.

The error is that in examples/group_vars/all/root_keys.yml we have

adminusers:             
  - { name: cscluis, uid: 5001, group: csc, state: "present", groups: "{{admingroup}}", shell: "{{adminshell}}", pubkey: "ssh-rsa KEYHERE" }

4 changed so this role adds the csc group as the primary group of the user. Before it only added the {{ admingroup }} and didn't do anything with the csc group. When a user is added to a group the group must exist first, it doesn't and the task fails.

Two methods (both by changing group_vars):


Release notes we could use when we are ready:

martbhell commented 7 years ago

Examples updated. Informing users via usual communications on Monday. Updating fgci-ansible in a week or three.

martbhell commented 7 years ago

Role updated in https://github.com/CSC-IT-Center-for-Science/fgci-ansible/commit/938118a3f29113643b45cf210c3041e14ede5bcf