Skip to content

Commit

Permalink
Merge pull request #3 from LeanKit-Labs/agent_register_updates
Browse files Browse the repository at this point in the history
Updates to WazuhAgentRegister Resource
  • Loading branch information
Chris Lee authored Oct 25, 2017
2 parents 2e5d7cf + 2731ee6 commit b1060e5
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 102 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
// When enabled, will trim trailing whitespace when you save a file.
"files.trimTrailingWhitespace": true
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": false,
"powershell.codeFormatting.preset": "Allman"
}
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
# WazuhOSSec
# WazuhOSSecDSC
Powershell DSC Class based resource for installing and configuring the Wazuh Agent

The **WazuhOSSec** DSC resources allow you to install and register the Wazuh Ossec Agent with the defined Wazuh Server.
The **WazuhOSSecDSC** resources allow you to install and register the Wazuh Ossec Agent with the defined Wazuh Server.


## Description
The **WazuhOSSec** DSC module contains the **WazuhAgentInstall** and **WazuhAgentRegister** DSC Resources. These resources were built using PowerShell Classes and such will require Powershell 5.0 +. These DSC resources allow you to install the Wazuh agent and regster it with the Wazuh server.
The **WazuhOSSecDSC** module contains the **WazuhAgentInstall** and **WazuhAgentRegister** DSC Resources. These resources were built using PowerShell Classes and as such will require Powershell 5.0+. These DSC resources allow you to install the Wazuh agent and register it with the Wazuh server.

## Resources
* **WazuhAgentInstall** Installs or Upgrades the Wazuh Agent from a path you provide.
* **WazuhAgentRegister** Registers an agent with the Wazuh server
* **WazuhAgentRegister** Registers or Deletes an agent on the Wazuh Manager.

### **WazuhAgentInstall**
* **InstallerPath** - Path to the Wazuh Agent installer on the local server.
* **Ensure** - Install or uninstall the agent. (Present/Absent)
* **Ensure** - Install or uninstall the agent. (Present/Absent).

### **WazuhAgentRegister**
* **AgentName** - The name you want to register for the Agent (Default to hostname $env:ComputerName)
* **AgentName** - The name you want to register for the Agent.
* **WazuhServerApiFqdn** - The FQDN of the Wazuh Server. i.e. wazuh.domain.com
* **WazuhServerApiPort** - The port the Wazuh server is listening on. Defaults to 55000
* **UseSelfSignedCerts** - Determines whether to use a self signed cert with the Wazuh server. Default is false.
* **ApiPollingInterval** - Used to determine a polling interval for checking if the agent is registered. Default is 0 for no interval meaning the resource will poll the server everytime DSC is run. Specified in minutes.
* **Credential** - PSCredential object passed into the rersource for authenticating to the Wazuh server
* **Ensure** - Register the agent with the wazuh server. (Present/Absent)
* **Ensure** - Registers or Deletes the agent on the Wazuh Manager. (Present/Absent)

## Versions
### 1.0.1
* Included check for Service AND Package in Get() of WazuhAgentInstall
* More Verbose output in a couple of helper methods

### 1.0.0
* Initial commit of DSC resource
8 changes: 4 additions & 4 deletions WazuhOSSec.psd1 → WazuhOSSecDSC.psd1
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#
# Module manifest for module 'MyModule'
# Module manifest for module 'WazuhOSSecDSC'
#
# Generated by: Marco
# Generated by: Marco Crank
#
# Generated on: 10/4/2017
#

@{

# Script module or binary module file associated with this manifest.
RootModule = 'WazuhOSSec.psm1'
RootModule = 'WazuhOSSecDSC.psm1'

# Version number of this module.
ModuleVersion = '1.0.0'
Expand Down Expand Up @@ -101,7 +101,7 @@
# LicenseUri = ''

# A URL to the main website for this project.
ProjectUri = 'https://github.com/LeanKit-Labs/WazuhOSSec'
ProjectUri = 'https://github.com/LeanKit-Labs/WazuhOSSecDSC'

# A URL to an icon representing this module.
# IconUri = ''
Expand Down
Loading

0 comments on commit b1060e5

Please sign in to comment.