Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ansible playbook to install the codam-web-greeter on a 42 network computer

License

NotificationsYou must be signed in to change notification settings

codam-coding-college/ansible-codam-web-greeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Ansible playbook installscodam-web-greeter on a 42 network cluster computer. It is intended to be used by IT staff at 42 schools to install the greeter theme on all cluster computers at once without too much effort.


How to use

Before starting, make sure npm is installed on your cluster computers. This is required for the build process of codam-web-greeter.

Add the following to the roles in yourrequirements.yml file in youransiblecluster repository:

roles:  -name:codam.webgreetersrc:git+https://github.com/codam-coding-college/ansible-codam-web-greeter.gitversion:v1.5.3

It is recommended to change the version specified to the latest one from theReleases page. Please note that this version is specific to this playbook and does not necessarily match the version of the codam-web-greeter itself.

Then run the following command to install the role:

ansible-galaxy install -r requirements.yml

Modify thevariables using thevars/all.yml file in youransiblecluster repository to your liking. The one you most likely want to change is thecodam_web_greeter_data_server_url variable to point to your own data server.

⚠️ If using iMacs with T2 chips, set theddcci_backlight_support variable tofalse to avoid issues with the ddcci-backlight kernel module.

Add the role to yoursite.yml playbook as the last role executed (do not define tags here, this is unneccessary and is a mistake 42 made for all the other roles):

roles:...  -{ role: codam.webgreeter }

Congratulations, the codam-web-greeter will now be installed on your cluster computers when you run thesite.yml playbook! You can run it with the tagcodam.webgreeter to only run the steps for the codam-web-greeter specifically.

⚠️ Do not run the playbook on all cluster computers at once without testing it first on a testing machine. Your campus setup could potentially break, resulting in students not being able to log in and changes that can not easily be reverted.

Campus logo

Now, the following is optional but recommended: add your campus's logo to thecampus_files directory in youransiblecluster repository. The logo should be namedlogo.png and be placed incampus_files/usr/share/codam/web-greeter/. It will then get copied to the cluster computer and displayed by the login screen.

However, keep in mind that most campuses feature their logo already in the wallpaper used by the login screen provided by 42/Ubuntu. In this case, the logo would be displayed twice by the login screen. It is recommended to remove the logo from your login screen wallpaper or to use a custom wallpaper without the logo (defined in thelogin_wallpaper_path variable) to avoid this.

Using this feature over the logo embedded in the wallpaper has the advantage that the logo can be shifted around and resized more easily when required by the login screen's user interface.

It is also possible to specify a default user image in case the user's~/.face file is not present in their home folder. This image should be nameduser.png and be placed in the same directory as the logo. The default 42 user image can be foundhere. If no default user image is present on the system, no image will be displayed on the lock screen at all and it will just display the student's name.

Variables

VariableDescriptionDefault value
nody_greeter_versionThe version of the nody-greeter to install from GitHub.1.6.2
codam_web_greeter_git_repoThe repository to download codam-web-greeter from.https://github.com/codam-coding-college/codam-web-greeter
codam_web_greeter_versionThe version of codam-web-greeter to download (use a tag or a branch name from the git repo).v1.3.6
codam_web_greeter_themeThe theme to use for the greeter. Can bedark orlight.dark
codam_web_greeter_boxed_modeBoxed mode adds a semi-transparent background to the login/unlock forms for better readability. Can bedefault (no background) orboxed.default
codam_web_greeter_data_server_urlThe URL to the data server to download the greeter data from. Hostname is appended to the url, so make sure it ends with a slash.https://clusterdata.codam.nl/api/config/
dbus_cache_group_check_enabledWhether to check if a user is in a specific ldap group before adding it to the dbus cache. Usually this is not required.false
dbus_cache_group_check_groupThe group to check for.student
login_wallpaper_pathThe path to the login wallpaper to set./usr/share/42/login-screen.jpg
ddcci_backlight_supportWhether to enable support for DDC/CI to allow controlling the brightness of external monitors. Should be set tofalse if you're using iMacs with T2 chips or any otherddcci-dkms unsupported kernel.true
codam_web_greeter_idle_logout_hook_contentsThe contents of the custom hook script that is run after a user is logged out due to leaving a computer idle. Look atdefaults/main.yml for an example.View example

About

Ansible playbook to install the codam-web-greeter on a 42 network computer

Topics

Resources

License

Stars

Watchers

Forks

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp