Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Error: Unable to find service named autofs in systemd. RHEL8.1  #797

@mrpullen

Description

@mrpullen

Attempting to deploy the RHEL79.MOF file from ato-toolkit using the latest DSC for linux release 1.2. Seems to work without issues until it reaches a nxService resource - then fails.

Error: Unable to find service named autofs in systemd.
2021/05/13 15:58:25: ERROR: null(0): EventId=1 Priority=ERROR Job FE792666-948D-4600-A1AD-08060B9E1C4A :
This event indicates that failure happens when LCM is processing the configuration. ErrorId is 1. ErrorDetail is The SendConfigurationApply function did not succeed.. ResourceId is [nxService][V-204451][medium][SRG-OS-000114-GPOS-00059]::[RHEL]Baseline and SourceInfo is C:\Program Files\WindowsPowerShell\Modules\PowerStig\4.8.0\DSCResources\Resources\linux.nxService.ps1::13::9::nxService. ErrorMessage is A general error occurred, not covered by a more specific error code..

From the MOF that specific resourceId looks like this

instance of MSFT_nxServiceResource as $MSFT_nxServiceResource1ref
{
ResourceID = "[nxService][V-204451][medium][SRG-OS-000114-GPOS-00059]::[RHEL]Baseline";
 Controller = "systemd";
 Enabled = False;
 SourceInfo = "C:\\Program Files\\WindowsPowerShell\\Modules\\PowerStig\\4.8.0\\DSCResources\\Resources\\linux.nxService.ps1::13::9::nxService";
 Name = "autofs";
 ModuleName = "nx";
 ModuleVersion = "1.0";

 ConfigurationName = "LinuxBaseLine";

};

Installing omi-server and dsc with the following script

# Install repository configuration
curl -sSL https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft-prod.repo

# Install Microsoft's GPG public key
curl -sSL https://packages.microsoft.com/keys/microsoft.asc > ./microsoft.asc

## Import
sudo rpm --import ./microsoft.asc

## Install OMI
sudo yum -y install omi

sudo wget https://github.com/microsoft/PowerShell-DSC-for-Linux/releases/download/v1.2.0-0/dsc-1.2.0-0.ssl_110.x64.rpm
sudo rpm -Uvh dsc-1.2.0-0.ssl_110.x64.rpm

## now DSC is installed - what do we do about it.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions