-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from LeanKit-Labs/agent_register_updates
Updates to WazuhAgentRegister Resource
- Loading branch information
Showing
4 changed files
with
209 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.