SUSE Manager/Locale Formula

From MicroFocusInternationalWiki
Jump to: navigation, search

Using the locale salt formula with SUSE Manager:

You can install this formula by searching for it via zypper:

   zypper install locale-formula

Installing this package installs the files to /usr/share/susemanager/formulas/{metadata,states}

One you've installed the rpm:

  1. Login to the SUSE Manager web page.
  2. Browse to the overview page of the minion you wish you apply the formula to.
  3. One you are there, you'll notice there is a new formula tab.
  4. Click on the formula tab, and you'll see a list of installed formulas.
  5. You can select the locale formula and click save.
  6. This will make a new tab appear next to the formula tab. Click on the locale tab.
  7. You'll see options to set the language, keyboard layout, timezone and if the hardware clock is set to UTC.
  8. Select the options you want and click save.

Running the following will return your pillar, where you can verify the settings, this output is truncated.

   salt '$your_minion_here' pillar.items
   ...
   keyboard_and_language:
       ----------
       keyboard_layout:
           English (US)
       language:
           English (US)
   machine_password:
       foobar
   mgr_server:
       manager_server
   org_id:alt '$your_minion_here'
       1
   timezone:
       ----------
       hardware_clock_set_to_utc:
           True
       name:
           CET
    ...

To apply this state to your minion apply the high state from the command line with

   salt '$your_minion_here' state.highstate

Or you can apply it by clicking on "Apply Highstate" on the previous formula tab and it'll be scheduled.