Skip to content

Commit

Permalink
Make time-related states conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jwokaty committed Dec 1, 2023
1 parent 1842922 commit 84f8447
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions saltstack/salt/common/linux.sls
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,19 @@ install_pip_pkgs:
check_locale:
locale.present:
- name: en_US.UTF-8
- onlyif: ls /usr/share/i18n/locales

change_date_to_24_hours:
cmd.run:
- name: "locale-gen 'en_GB'; update-locale LC_TIME='en_GB'"
- onchanges:
- locale: check_locale

change_time_to_edt:
cmd.run:
- name: timedatectl set-timezone America/New_York
- onchanges:
- locale: check_locale

# Set up Xvfb
install_xvfb:
Expand Down

0 comments on commit 84f8447

Please sign in to comment.