Posted on 08-02-2023 12:35 PM
Hello,
Hope all is well. I was wondering if it's possible to get some assistance on this issue I came across. I am new to Jamf PRO. My Team Lead gave me an assignment to push Rapid7 automatically to MacOS devices in Jamf Pro. I've watched videos and read documentation but still a bit confused and was wondering if I could get some help.
Posted on 08-03-2023 12:39 AM
For a precise answer we would need more information. Is this a normal PKG installer? Or a DMG?
Posted on 08-03-2023 10:47 AM
Hello, yes it is a normal PKG installer.
Posted on 08-04-2023 04:46 AM
I just had to do this. IIRC there are two packages. One for ARM64 and one for X86. Currently traveling, but can post my script on Monday. Basically one big pkg with both of these and the option of what to install based on chip-set. aka artisan universal package
Posted on 08-04-2023 09:50 AM
Thank you very much.
Posted on 08-06-2023 03:33 PM
Greetings,
so in my case I was given a zip file that contained about 9 files. .pem,.crt,.key., etc. I unzipped the file to /tmp. Contained within the file, there were these files
agent_installer-arm64.sh
agent_installer-x86_64.sh
I added the folder to composer. I then created the following postinstall script:
#!/bin/sh
## postinstall
ARCH=`/usr/bin/arch`
cd /private/tmp/Rapid7
if [[ "$ARCH" == arm64 ]]; then
sudo ./agent_installer-arm64.sh install_start --token us:<yourtokenkeyhere>
sleep 10
else
sudo ./agent_installer-x86_64.sh install_start --token us:<yourtokenkeyhere>
sleep 10
rm -rf /private/tmp/Rapid7/*
rm -rf /private/tmp/Rapid7*.pkg
rm -rf /private/tmp/Rapid7
fi
as always test on a non-prod device, because you should never just implement a script you found online by some random guy..unless its @sdagley . hth
Posted on 08-07-2023 09:40 AM
Thank you very much. I am going to give this a try. Appreciate it alot.
Posted on 08-08-2023 05:54 AM
Nah, you'd definitely want to test it if @sdagley wrote it :-)