]> git.p6c8.net - policy-templates.git/commitdiff
Inital checkin of Mac policy support
authorMichael Kaply <consulting@kaply.com>
Mon, 10 Dec 2018 21:54:36 +0000 (15:54 -0600)
committerMichael Kaply <consulting@kaply.com>
Mon, 10 Dec 2018 21:54:36 +0000 (15:54 -0600)
mac/README.md [new file with mode: 0644]
mac/org.mozilla.firefox.plist

diff --git a/mac/README.md b/mac/README.md
new file mode 100644 (file)
index 0000000..5b575da
--- /dev/null
@@ -0,0 +1,36 @@
+**IMPORTANT**: These files are in active development along with the policies in Firefox. To get the policy information that corresponds to a specific release, go to https://github.com/mozilla/policy-templates/releases.
+
+Starting with Firefox 64 and Firefox ESR 60.4, Firefox supports configuration files on macOS.
+
+An example plist file with all options is available here:
+
+https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist
+
+If you want to set specific options from the command line, we also provide flattened shortcuts to any item that is nested in the plist file.
+
+For example, this policy:
+```
+{
+  "policies": {
+    "Homepage": {
+      "URL": "http://example.com/"
+    }
+  }
+}
+```
+which would be set in the plist file like this:
+```
+       <key>Homepage</key>
+       <dict>
+               <key>URL</key>
+               <string>http://example.com</string>
+    </dict>
+```
+can be set via the command line like this:
+```
+defaults write org.mozilla.firefox Homepage__URL -string "http://example.com"
+```
+Before any command line policies will work, you need to enable policies like this:
+```
+defaults write org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE
+```
index a2ba037e02437bdeccb017f3141ef9502f8daa52..db7da2da6611b68dfafa68406b3cda2b268198fb 100644 (file)
@@ -3,7 +3,7 @@
 <plist version="1.0">
 <dict>
        <key>EnterprisePoliciesEnabled</key>
 <plist version="1.0">
 <dict>
        <key>EnterprisePoliciesEnabled</key>
-       <true/>
+       <false/>
        <key>AppUpdateURL</key>
        <string>https://www.example.com/update.xml</string>
        <key>Authentication</key>
        <key>AppUpdateURL</key>
        <string>https://www.example.com/update.xml</string>
        <key>Authentication</key>
        <key>Homepage</key>
        <dict>
                <key>URL</key>
        <key>Homepage</key>
        <dict>
                <key>URL</key>
-               <string>about:policies</string>
+               <string>http://example.com</string>
                <key>Locked</key>
                <true/>
                <key>Additional</key>
                <key>Locked</key>
                <true/>
                <key>Additional</key>

patrick-canterino.de