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
Trying to get jamfsync working with a Jenkins job ssh'ing into mac mini.
Fighting keychain issues mostly it seems.
Is it possible to just pass credentials via CLI or some other option? Otherwise, what I have now is something like
#!/bin/sh
security unlock-keychain -p $password /Users/<user>/Library/Keychains/login.keychain
#Run JamfSync syncing the Cloud Distribution Point to Local
/Applications/Jamf\ Sync.app/Contents/MacOS/Jamf\ Sync -srcDp JCDS -dstDp Netapp --progress
#Unmount local FSDP
diskutil unmount /Volumes/fsdp
But that doesn't work. So I've tried running all via "sudo -u " but then jamfsync comes back with 25/01/31 10:44:31-VERBOSE: Failed to get a keychain item com.jamfsoftware.JamfSync.jps (instance.jamfcloud.com): keychainError(-25300)
So I'm a bit perplexed. Right now I have powershell pulling down everything from JCDS to local, but that doesn't handle deletions... so our distribution points have gotten quite bloated. Would really love to just have the JCDS be a source of truth and be able to delete anything local that isn't on the cloud DP.
Thanks!
The text was updated successfully, but these errors were encountered:
I like this idea, however I find it interacting with keychain through a script these days are more challenging than it used to be. Often I cannot get it to unlock or entry not found etc, and it is also very frustrating the amount of permissions consideration when running as cron or launchagent. The newer the OS, the harder the script will run.
Ideally passing the credentials over CLI would be the best.
I think many years ago, Jamf admin can request the API key to the S3 buckets of their own instances. I wonder if this is still the case.
Yeah, kind of defeats the purpose of having CLI options if we can't run headless. Just the option to pass API client creds via command line would be nice. These get set via env variables from jenkins task.
Trying to get jamfsync working with a Jenkins job ssh'ing into mac mini.
Fighting keychain issues mostly it seems.
Is it possible to just pass credentials via CLI or some other option? Otherwise, what I have now is something like
But that doesn't work. So I've tried running all via "sudo -u " but then jamfsync comes back with
25/01/31 10:44:31-VERBOSE: Failed to get a keychain item com.jamfsoftware.JamfSync.jps (instance.jamfcloud.com): keychainError(-25300)
Yet I can find that entry via
security find-generic-password -s 'com.jamfsoftware.JamfSync.jps (instance.jamfcloud.com)' /Users/<username>/Library/Keychains/Login.keychain
So I'm a bit perplexed. Right now I have powershell pulling down everything from JCDS to local, but that doesn't handle deletions... so our distribution points have gotten quite bloated. Would really love to just have the JCDS be a source of truth and be able to delete anything local that isn't on the cloud DP.
Thanks!
The text was updated successfully, but these errors were encountered: