--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/bba5b59d-472a-48b5-bdb3-424f545c572an%40googlegroups.com.
This actually sounds exactly like expected behavior. You have a key in there saying it requires a restart, so it's not just going to install by itself. It requires the user to update, so Managed Software Center can log out and restart after installing the item.
Copy that. Thanks
If you want that to force install, you need to use the force_install_after_date key.
So what would be the option to select from the munki admin app UI to forcefully install an app OR is it something like a custom key that does not show up in the munki admin app UI?
That said, does this need a restart, if you expect it to just install in the background? If it doesn't require a restart, take out the RestartAction key and leave in unattended_install as true, and you should be good.
In fact, the app which I am trying to install does not automatically restart. Instead I wanted to forcefully restart after the app is installed, so from the munki admin app, there is an option called post install script, here I have used the following command but that did not take effect. What should be the right key if I would like to forcefully restart the device after the app is installed?
<key>postinstall_script</key>
<string>#!/bin/bash
sudo shutdown -r now
</string>
last one is about the requirements section in the munki admin app, I have another app where I want it to be installed after a required app is installed, with the munki admin app, you can add a requirement app to be installed first so the plist looks like below and in the same app, I have also added a pre-install-script to install another app, so here my question is which one takes the precedence first "RequiredApps Or PreinstallScript"?
<key>requires</key>
<array>
<string>JamfConnect</string>
<string>JamfConnectLaunchAgent</string>
</array>
<key>postinstall_script</key>
<string>#!/bin/bash
sudo shutdown -r now
</string>
please support.
You received this message because you are subscribed to a topic in the Google Groups "munki-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/munki-discuss/lNmFFC0Zpbs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to munki-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAE%2BBptxSwh-4hPpHwoD1A%3DKHVNjdgWmkCdTrLDQL%3DpXL8CNMKA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAEX%3DaBpmHc9EWAZ38fWshqz-e7qiV5XXS%2BiSpa9%2BpbkT1J1HhQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAE%2BBptzmWWDDfn9ueOJwh9Kmd2B0bE8mNarzN%2B--o4ifY_4vbw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAEX%3DaBoM11BFf_gMEsdAZX8CE0RoybLNo%2BgMparsr9OKnzetJw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAE%2BBptzPhV-_tdCsjiMWOjRenPqD_bLc7D7AXc3eSdviOPYYSw%40mail.gmail.com.
To answer your question, I am not aiming to have multiple environments such as testing, development, and production. I get that about the catalog, and please forget about the name set on those, as I used it for just testing.
Please Note: Our MDM (Intune) isn't capable of installing apps or config profiles during the enrollment process, and there is no room for customization to drive setup assistance. This means the profile for automatic device enrollment does have the option to add custom scripts, apps, profiles, etc. The app deployment via Intune takes a lot of time as it depends on the Intune Service CDNs, which is why I wanted to try out Munki, where I can use our repository.
In my opinion, for a beginner to Munki, the MunkiAdmin app would be a good tool to start with because it explains fairly what options can be used with Munki and also enables us to view how it updates the keys in each app's (.plist) after the changes are made from this UI shown below. This helps greatly to control apps' behavioral configuration. With this tool, I can test whatever features show up in there, and of course, going deep dive would always go the extra mile towards Munki, but in my opinion, as a starter, MunkiAdmin would be just enough.
The most important section that made my life easier is the Manifest shown below, it is similar to Intune's app assignment where I can define what apps need to be managed install and optional installAs long as the MunkiAdmin app makes the changes, whatever I want to do with the app, I am ok with that.I again tested after having this key, "unattended_install," and still it says "will be installed," but it is not getting installed automatically after the Munki app is in place.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAEX%3DaBoQhjbdTwNwwJrrK3aGOgKMp-pnpdOoBn8faGoNWHncqw%40mail.gmail.com.
1) On the first logon to a Mac desktop, our MDM installs the Munki app. Subsequently, Munki installs Apps A and B and should initiate an immediate restart without user consent (forced reboot).
On Jan 14, 2024, at 11:08 AM, Sujithkumar Govindan Suriyamurthy <suji...@gmail.com> wrote:
Even with the following key, it does not install automatically, and user interaction is still required.<key>forced_install</key>
<true/>Please assist.RegardsSujith
On Sun, Jan 14, 2024 at 7:47 PM Sujithkumar Govindan Suriyamurthy <suji...@gmail.com> wrote:
To answer your question, I am not aiming to have multiple environments such as testing, development, and production. I get that about the catalog, and please forget about the name set on those, as I used it for just testing.Please Note: Our MDM (Intune) isn't capable of installing apps or config profiles during the enrollment process, and there is no room for customization to drive setup assistance. This means the profile for automatic device enrollment does have the option to add custom scripts, apps, profiles, etc. The app deployment via Intune takes a lot of time as it depends on the Intune Service CDNs, which is why I wanted to try out Munki, where I can use our repository.In my opinion, for a beginner to Munki, the MunkiAdmin app would be a good tool to start with because it explains fairly what options can be used with Munki and also enables us to view how it updates the keys in each app's (.plist) after the changes are made from this UI shown below. This helps greatly to control apps' behavioral configuration. With this tool, I can test whatever features show up in there, and of course, going deep dive would always go the extra mile towards Munki, but in my opinion, as a starter, MunkiAdmin would be just enough.
<image.png>
The most important section that made my life easier is the Manifest shown below, it is similar to Intune's app assignment where I can define what apps need to be managed install and optional install
<image.png>
As long as the MunkiAdmin app makes the changes, whatever I want to do with the app, I am ok with that.I again tested after having this key, "unattended_install," and still it says "will be installed," but it is not getting installed automatically after the Munki app is in place.Therefore, the question is, is it by default that user interaction is needed, or else it won't install?RegardsSujith
On Sun, Jan 14, 2024 at 5:21 PM Alan <alan...@gmail.com> wrote:
I think you need to go back to basics first. Have you done https://github.com/munki/munki/wiki/Demonstration-Setup? You may also want to have a look at https://github.com/munki/munki/wiki/Launchd-Jobs-and-Changing-When-Munki-Runs and other parts of the wiki to understand Munki. Even your catalogs are oddly named. I mean, technically, you can call your catalogs whatever you want, but the fact you've named your catalogs RequiredApps and AvailableAppsindicates you may not fully understand what catalogs are for (as opposed to managed installs or optional installs): https://github.com/munki/munki/wiki/Using-Munki-Catalogs
In terms of deploying Munki with an MDM, and then having Munki install a bunch of stuff, you may want to look into https://gitlab.com/Mactroll/DEPNotify or https://github.com/setup-your-mac/Setup-Your-Mac and have it set Munki to bootstrap mode and then log out afterwards: https://github.com/munki/munki/wiki/Bootstrapping-With-Munki. Based on the problems you're running into and the questions you're asking, I don't think you're quite there yet.It sounds as if you're trying to do too much with Munki without having a basic understanding of Munki. I think you should start with the basics first: https://github.com/munki/munki/wiki/Demonstration-SetupAnother thing you may want to avail yourself of is the Munki channel on the MacAdmins Slack. Lots of folks want to help here on Munki Discuss, but Slack is more conducive to quick back-and-forth help than a mailing list is (just my opinion).
On Sun, Jan 14, 2024 at 5:44 AM Sujithkumar Govindan Suriyamurthy <suji...@gmail.com> wrote:
As suggested from your last to last email, I have removed postintall_scrpt, added unattended_install key to true, and also set the restart action = "None" still it says "will be installed" but not installing automatically and it looks like expecting the user to click on üpdate all".
<image.png>Is it the default behavior? Is there a way to make it auto-install without user interaction?RegardsSujith
On Sun, Jan 14, 2024 at 1:46 PM Sujithkumar Govindan Suriyamurthy <suji...@gmail.com> wrote:
You don't need a separate postinstall_script in order to reboot. If you say to require a reboot, Munki will do a reboot after installing the item. But, as I said before, Munki will just wait for the user to install the item requiring a reboot via Managed Software Center, unless you use a force_install_after_date key (in MunkiAdmin, this is the Force Install After Date option under Basic Info—but MunkiAdmin is just a GUI frontend for editing the XML in the plist/pkginfo file).You say without a need of using restart command in the postinstall_script Munki is able to reboot the device after it is installed but in the second line you have mentioned that Munki will wait for the user to install the items requiring a reboot via Managed Software Center, so this means, if there are managed (required) Or optional install apps needs reboot then Munki will wait for all the apps to be installed either user OR managed install initiated then it will go for restart, is that what you are saying? if it is true then what I am trying to achieve may not work.
<image.png>Here is what I am trying to achieve as followsI am kind of creating dependencies between the managed install apps. (required apps) but NOT for optional apps. Here is the condition as follows.1) On the first logon to a Mac desktop, our MDM installs the Munki app. Subsequently, Munki installs Apps A and B and should initiate an immediate restart without user consent (forced reboot).[I do not want Munki to delay the restart for other apps that require it. To ensure this, I believe I should avoid selecting the 'required reboot' option for any other apps. Otherwise, Munki will wait for the user to click "update all" in the UI, which will trigger the installation of the apps and then reboot. This process is to prevent multiple reboots, correct?]2) Once Apps A and B are detected as installed, App C should then be installed. I assume this is the purpose of the key mentioned below, ensuring that Apps A and B are installed before App C.<key>requires</key><array><string>App A</string><string>App B</string></array>3) After confirming App C is installed, install all other required apps (managed installs like App D, E, F, G, etc.). Each of these apps will have a specific key, ensuring they can only be installed after App C is in place.<key>requires</key><array><string>App C</string></array>This is the sequence I wanted it to go but App A & B cannot be rebooted without user's interaction, this is my understanding based on your first reply and this key "force_install_after_date" is not helpful for me to achieve my goal mentioned above.FYI - Here in this email I have used several times managed install or required apps, it is nothing but as shown below
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAEX%3DaBp%3D3wsqsxK%2B4HOkSa-iCpZFnyOL4MEzx2oiv366TWSSuw%40mail.gmail.com.
According to Bootstrapping With Munki, it says "Create a Bootstrap File: On the client machine, create an empty file named .com.googlecode.munki.checkandinstallatstartup. The location for this file is usually /Users/Shared/. This file signals Munki to perform a check and install software at the next startup. This is crucial for the bootstrapping process.". If this is crucial, then with Intune MDM not possible because Intune Management Extension agent is installed and ready to deploy scripts is possible only after user arrive at the desktop.
Ref: https://learn.microsoft.com/en-us/mem/intune/apps/lob-apps-macos-agent#how-is-the-agent-installed
This is one of major limitation from Intune, all apps, scripts, configuration profiles are pushed out to the devices at least 5-10 mins after user is at the desktop. Hence, creating this file ".com.googlecode.munki.checkandinstallatstartup"under this location is not possible "/Users/Shared/" during the enrolment.
Probably, if the OS image is customised with Munki then it should work but in our case we reply on Zero-Touch deployment without having a golden image concept.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/99C84BEB-56C4-4D89-9FD7-8F3693871146%40mac.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAEX%3DaBoqVeZjjQTHb9MqbCkKJoMictwQxHjoXnJ%3DJZaObL4JHQ%40mail.gmail.com.
On Jan 16, 2024, at 1:22 PM, Alan <alan...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/CAE%2BBptyrG%3D8jk89Yx6vO_thmy_S6wZZ1pmjSteKw13TPFJy6%3Dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/33E40C85-009F-4042-93CD-E59EEE7C688F%40gmail.com.