Set Up the SUSE Manager for Retail Environment with dedicated network for terminal
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 dedicated network for POS terminals where branch server provides all required services including DHCP and DNS.
For dedicated network we assume 192.168.86.0/24 network.
In this example we provide salt and ftp CNAMEs 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.
This example covers two configuration methods with both of them achieving same result.
2. Create required system groups
Unlike when using provided tools, manually setting up formulas requires manual creation of needed 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 branch server formulas
We assign following formulas to the branch server:
-
Branch Network
-
Dhcpd
-
Bind
-
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
Dhcpd -
In displayed list select
Tftpd -
In displayed list select
Bind -
Save assigned formulas by clicking Save in top right corner
-
Select Branch Network formula from branch server formula list
-
Keep
Dedicated Niccheck-box selected, because we are using dedicated network for terminals -
Keep the rest with default values
-
In the
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 Dhcpd formula from branch server formula list
-
Set the
Domain Nameto thebranch1.mystore.com -
Set the
Domain Name Serverto the IP address of branch server192.168.86.1) -
Set the
Listen Interfacesto theeth1, which is network interface of branch server connected to dedicated terminal network
-
-
Navigate to the
Network Configuration (subnet)section, and use these parameters for Network1:-
In the
Network IPfield, enter the IP address of the terminal network192.168.86.0. -
In the
Netmaskfield, enter the network mask of the terminal network255.255.255.0. -
In the
Domain Namefield, enter the domain name for the terminal networkbranch1.mystore.com).
-
-
In the
Dynamic IP Rangesection, use these parameters to configure the IP range to be served by the DHCP service:-
In the first input box, set the lower bound of the IP range
192.168.86.10 -
In the second input box, set the upper bound of the IP range
192.168.86.250
-
-
In the
Broadcast Addressfield, enter the broadcast IP address for the terminal network192.168.86.255 -
In the
Routersfield, enter the IP address to be used as default route in the terminal network192.168.86.1 -
In the
Next Serverfield, enter the IP address of the branch server for PXE booting192.168.86.1 -
Set the
Filenameto the/boot/pxelinux.0 -
Set the
Filename Efito the/boot/shim.efi -
Set the
Filename Httpto the http://192.168.86.1/saltboot/boot/shim.efi -
Save the formula
-
Select Tftpd formula from branch server formula list
-
Set the
Internal Network Addressto192.168.86.1, this way tftp will be listening on any IPv4 -
Set the
TFTP base directoryto/srv/saltboot -
Save the formula
-
Select Bind formula from branch server formula list
-
In the
Configsection, selectInclude Forwardersso DNS server can forward queries to next DNS server -
In the
Optionssection clieck+to add an option -
Set the
Optiontoempty-zones-enable-
Set the
ValuetoNo
-
-
In the
Configured Zonessection, use these parameters for Zone 1, which is our primary zone:-
Set the
Nametobranch1.mystore.com -
In the
Typefield, selectmaster
-
-
Click Add item to add a second zone, and set these parameters for Zone 2, which is used for reverse name resolution:
-
Set the
Nametocom.mystore.branch1 -
In the
Typefield, selectmaster
-
-
In the
Available Zonessection, use these parameters for Zone 1:-
In the
Namefield, enter the domain namebranch1.mystore.com -
In the
Filefield, type the name of your configuration filebranch1.mystore.com.txt
-
-
In the
Start of Authority (SOA)section, use these parameters for Zone 1:-
In the
Nameserver (NS)field, use the FQDN of the branch serverbranch1.mystore.com -
In the
Contactfield, use the email address for the domain administrator -
Keep all other fields as their default values
-
-
In the
Recordssection, in subsectionA, use these parameters to set up an A record for Zone 1:-
In the
Hostnamefield, use the hostname of the branch serverbranch1.mystore.com., notice trailing.which are required here -
In the
IPfield, use the IP address of the branch server192.168.86.1
-
-
In the
Recordssection, subsectionNS, use these parameters to set up an NS record for Zone 1:-
In the input box, use the branch server
branch1.mystore.com.
-
-
In the
Recordssection, subsectionCNAME, use these parameters to set up CNAME records for Zone 1:-
In the
Keyfield, entersalt, and in theValuefield, type the branch serverbranch1.mystore.com. -
Click Add item to add another entry.
-
In the
Keyfield, enterftp, and in theValuefield, type the branch serverbranch1.mystore.com.
-
-
Set up Zone 2 using the same parameters as for Zone 1, but ensure you use the reverse details:
-
The same SOA section as Zone 1.
-
Empty A and CNAME records.
-
Additionally, configure in Zone 2:
-
Set
Generate Reverseto the network IP address192.168.86.0/24 -
Set
For Zonesto the domain name of your branch networkbranch1.mystore.com
-
-
-
Click Save Formula to save your configuration.
-
Apply the highstate.
4. Setup partitioning
Partitioning is specific to the hardware type and configured using Saltboot 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.
5. 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.