Set Up the SUSE Manager for Retail Environment with shared network between terminals, branch servers and SUSE Manager
To set up the SUSE Manager for Retail environment, you will need to have already installed and configured:
-
SUSE Manager for Retail Server
-
one or more SUSE Manager for Retail branch server proxies
-
one or more POS images built
1. Assumptions
In this example we consider architecture with shared network between POS terminals, branch server and SUSE Manager where branch server provides only PXE configuration and images.
In this example we provide salt on kernel command line option and ftp in pillar for Saltboot service discovery.
We assume to have one regular branch server with salt minion id branch1.mystore.com, which is equal to the branch server fully qualified domain name, and branch id B0001.
As a terminal we assume to have one terminal with hardware manufacturer TerminalOEM and model T1000.
For POS image we assume to have one with name POS_Image_JeOS7.
There is already existing external DHCP and DNS service. DHCP service is correctly configured to PXE boot from branch server.
2. Create required system groups
Follow guide 系统组 to create the system groups:
-
TERMINALS -
HWType:TerminalOEM-T1000 -
B0001
First group is generic optional group for collecting all POS terminals. Second group is hardware type group for our POS terminal. Third group is mandatory branch group.
For more information about Saltboot groups, see Set Up the SUSE Manager for Retail Environment.
3. Assign and configure formulas
We assign following formulas to the branch server:
-
Branch Network
-
Pxe
-
Tftpd
-
Select the
Formulastab for the systembranch1.mystore.com -
You should see list of formulas in
Configurationsub-tab -
In displayed list select
Branch Network -
In displayed list select
Pxe -
In displayed list select
Tftpd -
Save assigned formulas by clicking Save in top right corner
-
Select Branch Network formula from branch server formula list
-
Unselect
Dedicated Niccheck-box because we are not using dedicated network -
Keep the rest with default values
-
In
Terminal Naming and Identificationsection editBranch Identificationand set it to our branch idB0001 -
Save the formula
-
Select Pxe formula from branch server formula list
-
At the end of
Kernel Command Line ParametersappendMASTER=branch1.mystore.com -
Keep the rest with default values
-
Save the formula
-
Select Tftpd formula from branch server formula list
-
Set
Internal Network Addressto0.0.0.0, this way tftp will be listening on any IPv4 -
Set
TFTP base directoryto/srv/saltboot -
Save the formula
|
Next two formulas are group formulas. Make sure you are editing those formulas in their respective groups. Group formulas are visible as assigned also on system level, but editing them will create system specific setting instead of group setting. |
Assign Saltboot Group formula to the B0001 group and Saltboot formula to the HWType:TerminalOEM-T1000 group.
-
Navigate to
-
Select group
`B0001, which is our branch group -
Select the
Formulastab once in group details -
You should see list of formulas in
Configurationsub-tab -
In displayed list select
Saltboot Group -
Save assigned formulas by clicking Save in the top right corner
-
Select Saltboot Group formula from
B0001group formula list -
Set
Image download servertobranch1.mystore.com -
Unselect
Branch server is containerized proxybecause this is not containerized proxy -
Save the formula
-
Navigate to
-
Select group
HWType:TerminalOEM-T1000, which is our hardware type group -
Select the
Formulastab once in group details -
You should see list of formulas in
Configurationsub-tab -
In displayed list select
Saltboot -
Save assigned formulas by clicking Save in top right corner
-
Select Saltboot formula from
HWType:TerminalOEM-T1000group formula list -
Set
Disk Symbolic IDtoDisk1 -
Set
Device TypetoDISK -
Set
Disk Deviceto* -
Set
Partition table typetogpt -
Click + to add a partition
-
Set
Partition Symbolic IDtop1 -
Set
Partition Size (MiB)to512 -
Set
Device Mount Pointto/boot/efi -
Set
Filesystem Formattovfat -
Set
Partition Flagstoboot
-
-
Click + to add a partition
-
Set
Partition Symbolic IDtop2 -
Set
Device Mount Pointto/ -
Set
OS Image to DeploytoPOS_Image_JeOS7
-
-
Save the formula
After all procedures are done, apply highstate on the branch server.
4. Synchronize images
After highstate is applied, we proceed with synchronizing images as usual with apply image-sync state.
Terminal can now be started and will be automatically provisioned, pending salt key acceptance.