Skip to content

Commit c82938b

Browse files
committed
add custom wallpaper path
1 parent 4900814 commit c82938b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Congratulations, the codam-web-greeter will now be installed on your cluster com
3434
### Campus logo
3535
Now, the following is optional but recommended: add your campus's logo to the `campus_files` directory in your `ansiblecluster` repository. The logo should be named `logo.png` and be placed in `campus_files/usr/share/codam/web-greeter/`. It will then get copied to the cluster computer and displayed by the login screen.
3636

37-
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.
37+
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 the `login_wallpaper_path` variable) to avoid this.
3838

3939
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.
4040

@@ -49,3 +49,4 @@ It is also possible to specify a default user image in case the user's `~/.face`
4949
| `codam_web_greeter_data_server_url` | The 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/` |
5050
| `dbus_cache_group_check_enabled`| Whether to check if a user is in a specific ldap group before adding it to the dbus cache. Usually this is not required. | `false` |
5151
| `dbus_cache_group_check_group`| The group to check for. | `student` |
52+
| `login_wallpaper_path` | The path to the login wallpaper to set. | `/usr/share/42/login-screen.jpg` |

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ codam_web_greeter_data_server_url: "https://clusterdata.codam.nl/api/config/"
1212
# Define whether or not to check if the user is in a specific group when caching their user data with dbus
1313
dbus_cache_group_check_enabled: false
1414
dbus_cache_group_check_group: "student" # default ou=student,ou=groups,dc=42campus,dc=org
15+
16+
login_wallpaper_path: "/usr/share/42/login-screen.jpg"

tasks/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
dest: "{{ item.dest }}"
3838
state: link
3939
with_items:
40-
- { src: /usr/share/42/login-screen.jpg, dest: /usr/share/codam/web-greeter/login-screen.png } # yes, jpg to png. The greeter can handle this
40+
- { src: "{{ login_wallpaper_path }}", dest: /usr/share/codam/web-greeter/login-screen.png } # file extension doesn't matter, the greeter will display it anyway
4141

4242
- name: Copy web-greeter config
4343
tags: [codam.webgreeter, codam.webgreeter.setup]

0 commit comments

Comments
 (0)