Install the Salt Example Formula
This section provides guidance on installing and using SUSE-provided Salt formulas.
Procedure: Installing the Locale Formula
-
Install the locale formula with:
zypper install locale-formula
This installs the package contents to /usr/share/susemanager/formulas/{metadata,states}
-
After installing the RPM, log in to the SUSE Manager Web UI.
-
Browse to the
page of any client you would like to apply the formula to. -
On the
page you will see a new Formulas tab. Select it to view a list of installed formulas. -
From the Formulas list select
and click Save. -
A new tab will appear next to the
subtab. Select the new tab. -
The
tab contains options for setting the language, keyboard layout, timezone, and whether hardware clock is set to UTC. Select the desired options and click Save. -
Run the following command to verify pillar settings. The output has been truncated.
salt '$your_client' pillar.items
... keyboard_and_language: ---------- keyboard_layout: English (US) language: English (US) machine_password: foobar mgr_server: manager_server mgr_origin_server: manager_server org_id:alt '$your_client_here' 1 timezone: ---------- hardware_clock_set_to_utc: True name: CET ...
-
Apply this state to your client by applying the highstate from the command line with:
salt '$your_client' state.highstate
You can also apply the highstate from the previous formula tab from the SUSE Manager Web UI by selecting
and clicking Apply Highstate.