Skip to content

CentOS Stream 8 / CentOS Linux 8 - Locmap

Locmap is typically installed by default when installing a new CentOS Stream 8 / CentOS Linux 8 system and selecting 'Software Development Workstation (CERN Recommended Setup)' during the installation.

In the event that locmap is not available, you may follow these instructions to install it.

$ sudo dnf -y install locmap-release
$ sudo dnf -y install locmap
$ for module in afs cernbox chrony cvmfs eosclient kerberos lpadmin postfix ssh sudo; do sudo locmap --enable $module; done
$ sudo locmap --configure all

Usage

You can access the documentation by typing (as root):

# man locmap

You can list enabled modules:

# locmap --list
[Available Modules]
afs            [disabled]
cernbox        [disabled]
chrony         [disabled]
cvmfs          [disabled]
eosclient      [disabled]
kerberos       [disabled]
lpadmin        [disabled]
postfix        [disabled]
ssh            [disabled]
sudo           [disabled]

You can configure all enabled module with the following command:

# locmap --configure all

You can configure a new module:

# locmap --enable modulename
# locmap --configure modulename

You can disable a module:

# locmap --disable modulename

Locmap and Openstack

It easy to run locmap during an openstack installation. Create a script with the above commands say install.sh. Pass this as user data to openstack create.

openstack server create --image 'CS8 - x86_64 [2021-08-10]' --key-name <mykey> --user-data ~/tmp/install.sh  --flavor m2.small mynode

alternativly the script can be uploaded the configuration tab of "Lauch Instance' panel of openstack horizon.