Skip to content

Module for extending the functionality of the nx resources

License

Notifications You must be signed in to change notification settings

citadelgroup/LinuxResourcesDsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinuxResourcesDsc

Module for extending the functionality of the nx resources

Resources

  • nxFileContent: Provides a mechanism to edit file content.
  • nxConfigSetting: Provides a mechanism to set config settings of apps/system based on a check.

nxFileContent

Provides a mechanism to edit file content.

Requirements

  • This must be run on a Linux OS

Parameters

  • [String] Name (Write): The name of the DSC Resource (must be unique).
  • [String] TestCommand (Write): The bash command to test for. Must return "pass" or "fail".
  • [String] Filename (Write): The file to edit.
  • [String] FileContent (Write): A string representing the content to write.
  • [String] AppendCommand (Optional): The bash command to test whether the content should be edited in place or appended.
  • [String] EditRegex (Optional): A regex string to replace with FileContent.
  • [String] PostApplyCommand (Optional): A command to run after editing the file.

Read-Only Properties from Get-TargetResource

None

Examples

nxConfigSetting

Provides a mechanism to set config settings of apps/system based on a check.

Requirements

  • This must be run on a Linux OS

Parameters

  • [String] Name (Write): The name of the DSC Resource (must be unique).
  • [String] TestCommand (Write): The bash command to test for. The result is compared against TestRegex.
  • [String] TestRegex (Write): The string containing regex to compare against.
  • [String] FixCommands (Write): An array of strings representing bash commands to enforce.

Read-Only Properties from Get-TargetResource

None

Examples

Versions

1.0.0

  • Initial release of LinuxResourcesDsc.

1.1.0

  • Added nxConfigSetting

About

Module for extending the functionality of the nx resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published