researchcloud-items

Installation scripts for SURF ResearchCloud catalog components

View the Project on GitHub UtrechtUniversity/researchcloud-items

Role fact_regular_users

back to index

Summary

Makes information available about regular users (excluding system process users) and groups.

Defines the following two facts:

Requires

Linux flavor operating system.

Description

The role sets the Ansible variable fact_regular_users to a list of users. Information from /etc/cpasswd is filtered on: 1) userid >= 1000 and 2) user has a home directory located underneath /home/

The fact fact_co_groups is filled with the members of the unix groups listed in /etc/rsc/managedgroups, which are the groups corresponding to roles defined for the CO in SRAM.

Variables

The variable fact_regular_users and fact_co_groups are filled. Examples:

fact_regular_users:

[
  {
    user: "foo", 
    userid: 1000, 
    groupid: 1000, 
    home: "/home/foo", 
    shell: "/bin/bash",
    description: "sample user foo"
  }  
]

fact_co_groups:

"fact_co_groups": {
    "@all": [
        "user1",
        "user2"
    ],
    "rsc_developers": [
        "user1",
        "user2"
    ],
    "src_co_admin": [
        "user1",
        "user2"
    ],
    "src_co_developer": [
        "user1",
        "user2"
    ],
    "src_co_wallet": [
        "user1",
        "user2"
    ],
    "src_developers": [
        "user1",
        "user2"
    ],
    "src_ws_admin": [
        "user1",
        "user2"
    ]
}

See also

Role runonce.

History

2021 Written by Ton Smeele (Utrecht University)

back to index