lib/autofs_utils.pm

autofs_utils

autofs_utils - Functions for setup autofs server and check autofs service

setup_autofs_server

setup_autofs_server([autofs_map_file => $autofs_map_file], [autofs_conf_file => $autofs_conf_file], [test_mount_dir => $test_mount_dir], [test_conf_file => $test_conf_file], [test_conf_file_content => $test_conf_file_content]);

Set up an autofs server by using scripts

check_autofs_service

check_autofs_service();

Check autofs service by starting and stopping service

install_service

install_service();

Install autofs package

enable_service

enable_service();

Enable service autofs

start_service

install_service();

Start service autofs

check_service

check_service();

Check service autofs

configure_service

configure_service([$stage]);

Configure service autofs by assert_script_run, check and restart autofs.

The argument $stage has the value function, some iso and autofs related rpms will get installed for sle15+ and jeos. It is optional and will be default to an empty string. Also check_autofs_service() will be called.

check_function

check_function();

Check iso which is mounted to test directory

do_cleanup

do_cleanup();

Save files into $autofs_conf_file, restart autofs and clean up files

full_autofs_check

full_autofs_check([$stage]);

Run checks of autofs by call following functions: