You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Deploy Microsoft Defender for Endpoint on Linux with Puppet
@@ -25,23 +25,23 @@ ms.date: 10/11/2024
25
25
**Applies to**:
26
26
27
27
- Microsoft Defender for Endpoint Server
28
-
-[Microsoft Defender for Servers](/azure/defender-for-cloud/integration-defender-for-endpoint)
28
+
-[Microsoft Defender for Servers](/azure/defender-for-cloud/integration-defender-for-endpoint)
29
29
30
30
> Want to experience Defender for Endpoint? [Sign up for a free trial.](https://signup.microsoft.com/create-account/signup?products=7f379fee-c4f9-4278-b0a1-e4c8c2fcdf7e&ru=https://aka.ms/MDEp2OpenTrial?ocid=docs-wdatp-investigateip-abovefoldlink)
31
31
32
32
This article describes how to deploy Defender for Endpoint on Linux using Puppet. A successful deployment requires the completion of all of the following tasks:
33
33
34
34
-[Download the onboarding package](#download-the-onboarding-package)
-[Deployment (include the manifest inside the site.pp file)](#include-the-manifest-inside-the-sitepp-file)
37
+
-[Monitor your Puppet deployment](#monitor-puppet-deployment)
38
38
39
39
[!INCLUDE [Microsoft Defender for Endpoint third-party tool support](../includes/support.md)]
40
40
41
41
42
42
## Prerequisites and system requirements
43
43
44
-
For a description of prerequisites and system requirements for the current software version, see [the main Defender for Endpoint on Linux page](microsoft-defender-endpoint-linux.md).
44
+
For a description of prerequisites and system requirements, see [Microsoft Defender for Endpoint on Linux](microsoft-defender-endpoint-linux.md).
45
45
46
46
In addition, for Puppet deployment, you need to be familiar with Puppet administration tasks, have Puppet configured, and know how to deploy packages. Puppet has many ways to complete the same task. These instructions assume availability of supported Puppet modules, such as *apt* to help deploy the package. Your organization might use a different workflow. Refer to the [Puppet documentation](https://puppet.com/docs) for details.
47
47
@@ -51,7 +51,7 @@ Download the onboarding package from Microsoft Defender portal.
51
51
52
52
[!INCLUDE [Defender for Endpoint repackaging warning](../includes/repackaging-warning.md)]
53
53
54
-
1. In Microsoft Defender portal, go to **Settings** > **Endpoints** > **Device management** > **Onboarding**.
54
+
1. In the [Microsoft Defender portal](https://security.microsoft.com), go to **Settings** > **Endpoints** > **Device management** > **Onboarding**.
55
55
56
56
2. In the first drop-down menu, select **Linux Server** as the operating system. In the second drop-down menu, select **Your preferred Linux configuration management tool** as the deployment method.
57
57
@@ -72,20 +72,20 @@ Download the onboarding package from Microsoft Defender portal.
72
72
73
73
5. Extract the contents of the archive.
74
74
75
-
```bash
76
-
unzip WindowsDefenderATPOnboardingPackage.zip
77
-
```
75
+
```bash
76
+
unzip WindowsDefenderATPOnboardingPackage.zip
77
+
```
78
78
79
-
```console
80
-
Archive: WindowsDefenderATPOnboardingPackage.zip
81
-
inflating: mdatp_onboard.json
82
-
```
79
+
```console
80
+
Archive: WindowsDefenderATPOnboardingPackage.zip
81
+
inflating: mdatp_onboard.json
82
+
```
83
83
84
84
## Create a Puppet manifest
85
85
86
-
You need to create a Puppet manifest for deploying Defender for Endpoint on Linux to devices managed by a Puppet server. This example makes use of the `apt` and `yumrepo` modules available from puppetlabs, and assumes that the modules have been installed on your Puppet server.
86
+
You need to create a Puppet manifest for deploying Defender for Endpoint on Linux to devices managed by a Puppet server. This example makes use of the `apt` and `yumrepo` modules available from `puppetlabs`, and assumes that the modules are installed on your Puppet server.
87
87
88
-
1. Create the folders `install_mdatp/files` and `install_mdatp/manifests` under the modules folder of your Puppet installation. This folder is typically located in`/etc/puppetlabs/code/environments/production/modules` on your Puppet server.
88
+
1. Under the **modules** folder if your Puppet installation, create the folders `install_mdatp/files` and `install_mdatp/manifests`. The **modules** folder is typically located at`/etc/puppetlabs/code/environments/production/modules` on your Puppet server.
89
89
90
90
2. Copy the `mdatp_onboard.json` file created earlier to the `install_mdatp/files` folder.
91
91
@@ -111,7 +111,58 @@ You need to create a Puppet manifest for deploying Defender for Endpoint on Linu
111
111
└── init.pp
112
112
```
113
113
114
-
### Contents of `install_mdatp/manifests/init.pp`
114
+
### Create a manifest file
115
+
116
+
There are two ways to create a manifest file:
117
+
118
+
- Use an installer script; or
119
+
- Configure your repositories manually.
120
+
121
+
#### Create a manifest to deploy Defender for Endpoint using an installer script
122
+
123
+
Add the following content to the `install_mdatp/manifests/init.pp` file. You can also download the file directly from [GitHub](https://teams.microsoft.com/l/message/19:2c1dc910-b8b7-415a-a9fd-2cd04843b43c_cb7ab2ef-8a66-4fcf-8c66-1723507f52df@unq.gbl.spaces/1734343607885?context=%7B%22contextType%22%3A%22chat%22%7D)
124
+
125
+
```bash
126
+
127
+
# Puppet manifest to install Microsoft Defender for Endpoint on Linux.
128
+
# @param channel The release channel based on your environment, insider-fast or prod.
129
+
130
+
class install_mdatp (
131
+
$channel = 'prod',
132
+
) {
133
+
# Ensure that the directory /tmp/mde_install exists
require => File['/tmp/mde_install/mde_installer.sh', '/tmp/mde_install/mdatp_onboard.json'], # Ensure the script is copied before running the installer
160
+
}
161
+
162
+
}
163
+
164
+
```
165
+
#### Create a manifest to deploy Defender for Endpoint by configuring repositories manually
115
166
116
167
Defender for Endpoint on Linux can be deployed from one of the following channels:
117
168
@@ -123,7 +174,7 @@ Each channel corresponds to a Linux software repository.
123
174
124
175
The choice of the channel determines the type and frequency of updates that are offered to your device. Devices in*insiders-fast* are the first ones to receive updates and new features, followed later by *insiders-slow*, and lastly by *prod*.
125
176
126
-
In order to preview new features and provide early feedback, it's recommended that you configure some devices in your enterprise to use either *insiders-fast* or *insiders-slow*.
177
+
In order to preview new features and provide early feedback, we recommend that you configure some devices in your enterprise to use either *insiders-fast* or *insiders-slow*.
127
178
128
179
> [!WARNING]
129
180
> Switching the channel after the initial installation requires the product to be reinstalled. To switch the product channel: uninstall the existing package, re-configure your device to use the new channel, and follow the steps in this document to install the package from the new location.
@@ -135,76 +186,109 @@ In the below commands, replace *[distro]* and *[version]* with the information y
135
186
> [!NOTE]
136
187
> In case of RedHat, Oracle Linux, Amazon Linux 2, and CentOS 8, replace *[distro]* with 'rhel'.
137
188
138
-
```puppet
189
+
Add the following content to the `install_mdatp/manifests/init.pp` file:
190
+
191
+
```bash
139
192
# Puppet manifest to install Microsoft Defender for Endpoint on Linux.
140
193
# @param channel The release channel based on your environment, insider-fast or prod.
141
-
# @param distro The Linux distribution in lowercase. In case of RedHat, Oracle Linux, Amazon Linux 2, and CentOS 8, the distro variable should be 'rhel'.
142
-
# @param version The Linux distribution release number, e.g. 7.4.
Enrolled agent devices periodically poll the Puppet Server and install new configuration profiles and policies as soon as they are detected.
303
+
Enrolled agent devices periodically poll the Puppet Server and install new configuration profiles and policies as soon as they're detected.
220
304
221
305
## Monitor Puppet deployment
222
306
223
-
On the agent device, you can also check the onboarding status by running:
307
+
On the agent device, you can also check the deployment status by running the following command:
224
308
225
309
```bash
226
310
mdatp health
227
311
```
228
312
229
313
```console
230
314
...
315
+
healthy :true
316
+
health_issues : []
231
317
licensed :true
232
318
org_id :"[your organization identifier]"
233
319
...
234
320
```
235
321
236
-
- **licensed**: This confirms that the device is tied to your organization.
322
+
- `healthy`: Confirm that Defender for Endpoint is successfully deployed and operational.
323
+
- `health_issues`: States the issues which caused the healthy status to become false.
324
+
- `licensed`: Confirms that the device is tied to your organization.
325
+
- `orgId`: Your Defender for Endpoint organization identifier.
237
326
238
-
- **orgId**: This is your Defender for Endpoint organization identifier.
327
+
## Troubleshoot installation issues
239
328
240
-
## Check onboarding status
329
+
If you encounter issues during installation, try these self-troubleshooting steps:
241
330
242
-
You can check that devices have been correctly onboarded by creating a script. For example, the following script checks enrolled devices for onboarding status:
331
+
1. Refer to [Log installation issues](linux-resources.md#log-installation-issues) for more information on how to find the automatically generated log that is created by the installer when an error occurs.
243
332
244
-
```bash
245
-
mdatp health --field healthy
246
-
```
333
+
2. Refer to [Installation issues](/defender-endpoint/linux-support-install) for more information on commonly occurring installation issues
334
+
335
+
3. If health of the device is false, refer to [MDE agent health issues](/defender-endpoint/health-status)
247
336
248
-
The above command prints `1`if the product is onboarded and functioning as expected.
337
+
4. For product performance issues, refer to [Troubleshoot performance issues](/defender-endpoint/linux-support-perf), [performance tuning](/defender-endpoint/linux-support-perf?branch=main)
249
338
250
-
> [!IMPORTANT]
251
-
> When the product starts for the first time, it downloads the latest antimalware definitions. Depending on your Internet connection, this can take up to a few minutes. During this time the above command returns a value of `0`.
339
+
5. For proxy and connectivity issues, refer to [Troubleshoot cloud connectivity issues](/defender-endpoint/linux-support-connectivity)
252
340
253
-
If the product is not healthy, the exit code (which can be checked through `echo $?`) indicates the problem:
341
+
To get support from Microsoft, raise a support ticket and provide log files by using the [client analyzer](/defender-endpoint/run-analyzer-macos-linux)
254
342
255
-
- `1`if the device isn't onboarded yet.
256
-
- `3` if the connection to the daemon cannot be established.
343
+
## How to configure policies for Microsoft Defender on Linux
257
344
258
-
## Log installation issues
345
+
You can configure antivirus and EDR settings on your endpoints using following methods:
259
346
260
-
For more information on how to find the automatically generated log that is created by the installer when an error occurs, see [Log installation issues](linux-resources.md#log-installation-issues).
347
+
- See [Set preferences for Microsoft Defender for Endpoint on Linux](/defender-endpoint/linux-preferences) to learn more about the available settings
348
+
- See [security settings management](/mem/intune/protect/mde-security-integration) to configure settings in the Microsoft Defender portal.
261
349
262
350
## Operating system upgrades
263
351
264
-
When upgrading your operating system to a new major version, you must first uninstall Defender for Endpoint on Linux, install the upgrade, and finally reconfigure Defender for Endpoint on Linux on your device.
352
+
When upgrading your operating system to a new major version, you must first uninstall Defender for Endpoint on Linux, install the upgrade, and then reconfigure Defender for Endpoint on Linux on your device.
0 commit comments