Skip to content

Commit 9a76ddb

Browse files
authored
Fixed indentation
1 parent 197e8eb commit 9a76ddb

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

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

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -107,51 +107,51 @@ There are two ways to create a manifest file:
107107
1. Download the installer bash script. 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.
108108

109109

110-
```bash
111-
wget https://raw.githubusercontent.com/microsoft/mdatp-xplat/refs/heads/master/linux/installation/mde_installer.sh /etc/puppetlabs/code/environments/production/modules/install_mdatp/files/
112-
```
110+
```bash
111+
wget https://raw.githubusercontent.com/microsoft/mdatp-xplat/refs/heads/master/linux/installation/mde_installer.sh /etc/puppetlabs/code/environments/production/modules/install_mdatp/files/
112+
```
113113

114114
2. Add the following content to the `install_mdatp/manifests/init.pp` file. You can also download the file directly from [GitHub](https://github.com/microsoft/mdatp-xplat/blob/master/linux/installation/third_party_installation_playbooks/puppet.install_mdatp_simplified.init.pp)
115115

116-
```bash
116+
```bash
117117

118-
# Puppet manifest to install Microsoft Defender for Endpoint on Linux.
119-
# @param channel The release channel based on your environment, insider-fast or prod.
118+
# Puppet manifest to install Microsoft Defender for Endpoint on Linux.
119+
# @param channel The release channel based on your environment, insider-fast or prod.
120120

121-
class install_mdatp (
122-
$channel = 'prod',
123-
) {
124-
# Ensure that the directory /tmp/mde_install exists
125-
file { '/tmp/mde_install':
126-
ensure => directory,
127-
mode => '0755',
128-
}
121+
class install_mdatp (
122+
$channel = 'prod',
123+
) {
124+
# Ensure that the directory /tmp/mde_install exists
125+
file { '/tmp/mde_install':
126+
ensure => directory,
127+
mode => '0755',
128+
}
129129

130-
# Copy the installation script to the destination
131-
file { '/tmp/mde_install/mde_installer.sh':
132-
ensure => file,
133-
source => 'puppet:///modules/install_mdatp/mde_installer.sh',
134-
mode => '0777',
135-
}
130+
# Copy the installation script to the destination
131+
file { '/tmp/mde_install/mde_installer.sh':
132+
ensure => file,
133+
source => 'puppet:///modules/install_mdatp/mde_installer.sh',
134+
mode => '0777',
135+
}
136136

137-
# Copy the onboarding script to the destination
138-
file { '/tmp/mde_install/mdatp_onboard.json':
139-
ensure => file,
140-
source => 'puppet:///modules/install_mdatp/mdatp_onboard.json',
141-
mode => '0777',
142-
}
137+
# Copy the onboarding script to the destination
138+
file { '/tmp/mde_install/mdatp_onboard.json':
139+
ensure => file,
140+
source => 'puppet:///modules/install_mdatp/mdatp_onboard.json',
141+
mode => '0777',
142+
}
143143

144-
# Install MDE on the host using an external script
145-
exec { 'install_mde':
146-
command => "/tmp/mde_install/mde_installer.sh --install --channel ${channel} --onboard /tmp/mde_install/mdatp_onboard.json",
147-
path => '/bin:/usr/bin',
148-
user => 'root',
149-
logoutput => true,
150-
require => File['/tmp/mde_install/mde_installer.sh', '/tmp/mde_install/mdatp_onboard.json'], # Ensure the script is copied before running the installer
151-
}
144+
# Install MDE on the host using an external script
145+
exec { 'install_mde':
146+
command => "/tmp/mde_install/mde_installer.sh --install --channel ${channel} --onboard /tmp/mde_install/mdatp_onboard.json",
147+
path => '/bin:/usr/bin',
148+
user => 'root',
149+
logoutput => true,
150+
require => File['/tmp/mde_install/mde_installer.sh', '/tmp/mde_install/mdatp_onboard.json'], # Ensure the script is copied before running the installer
151+
}
152152

153-
}
154-
```
153+
}
154+
```
155155
> [!NOTE]
156156
> The installer script also supports other parameters such as channel, realtime protection, version, etc. To select from the list of available options, check help.
157157
>`./mde_installer.sh --help`

0 commit comments

Comments
 (0)