Skip to content

Commit 6711278

Browse files
committed
Learn Editor: Update linux-install-with-saltack.md
1 parent 8069352 commit 6711278

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

defender-endpoint/linux-install-with-saltack.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,7 @@ Here are a few important points:
6464

6565
:::image type="content" source="media/portal-onboarding-linux-2.png" alt-text="The Download onboarding package option":::
6666

67-
4. On the SaltStack Master, extract the contents of the archive to the SaltStack Server's folder (typically `/srv/salt`):
68-
69-
```bash
70-
ls -l
71-
```
72-
73-
```console
74-
total 8
75-
-rw-r--r-- 1 test staff 4984 Feb 18 11:22 WindowsDefenderATPOnboardingPackage.zip
76-
```
67+
1. On the SaltStack Master, extract the contents of the archive to the SaltStack Server's folder (typically `/srv/salt`):
7768

7869
```bash
7970
unzip WindowsDefenderATPOnboardingPackage.zip -d /srv/salt/mde
@@ -86,6 +77,36 @@ Here are a few important points:
8677

8778
## Create Saltstack state files
8879

80+
There are two ways you can create the Saltstack state files:
81+
82+
1. **Installer Script (recommended):** In this method, the script will automate deployment by installing the agent as well as onboarding the device to the security portal and also configure the repositories to pick the correct agent compatible with your linux distribution.
83+
84+
1. **Manually configuring the repositories:** In this method, repositories need to be configured manually along with selecting agent version compatible with your linux distribution. It gives more granular control over the deployment process.
85+
86+
### Create Saltstack state files using Installer Script
87+
88+
1. Pull the [installer bash script](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/mde_installer.sh) from Microsoft GitHub Repository or use the following command to download it:
89+
90+
```bash
91+
wget https://raw.githubusercontent.com/microsoft/mdatp-xplat/refs/heads/master/linux/installation/mde_installer.sh /srv/salt/mde/
92+
```
93+
94+
95+
1. Create the state file `/srv/salt/install_mdatp.sls` with the following content. The same can be downloaded from [GitHub](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/third_party_installation_playbooks/salt.install_mdatp_simplified.sls)
96+
97+
```bash
98+
#Download the mde_installer.sh: https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/mde_installer.sh
99+
install_mdatp_package:
100+
cmd.run:
101+
- name: /srv/salt/mde/mde_installer.sh --install --onboard /srv/salt/mde/mdatp_onboard.json
102+
- shell: /bin/bash
103+
- unless: 'pgrep -f mde_installer.sh'
104+
```
105+
106+
107+
108+
### Create Saltstack state files by manually configuring repositories
109+
89110
In this step, you create a SaltState state file in your configuration repository (typically `/srv/salt`) that applies the necessary states to deploy and onboard Defender for Endpoint. Then, you add the Defender for Endpoint repository and key: `install_mdatp.sls`.
90111

91112
> [!NOTE]

0 commit comments

Comments
 (0)