Added playbook to distribute web browser config for kerberos
authorZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Wed, 16 Dec 2015 06:13:46 +0000 (01:13 -0500)
committerZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Wed, 16 Dec 2015 06:13:46 +0000 (01:13 -0500)
distribute-kerberos.yml [new file with mode: 0644]
files/web-kerberos/chrome.json [new file with mode: 0644]
files/web-kerberos/firefox.js [new file with mode: 0644]

diff --git a/distribute-kerberos.yml b/distribute-kerberos.yml
new file mode 100644 (file)
index 0000000..b72fb4c
--- /dev/null
@@ -0,0 +1,14 @@
+---
+- hosts: office
+  remote_user: root
+  tasks:
+     - name: ensure directories exist
+       file: path={{ item }} state=directory
+       with_items:
+         - /etc/opt/chrome/policies/managed/
+         - /etc/firefox
+     - name: copy chrome managed policy
+       copy: src={{ item.src }} dest={{ item.dest }} backup=no
+       with_items:
+         - { src: 'files/web-kerberos/chrome.json', dest: '/etc/opt/chrome/policies/managed/csc-kerberos.json' }
+         - { src: 'files/web-kerberos/firefox.js', dest: '/etc/firefox/syspref.js' }
diff --git a/files/web-kerberos/chrome.json b/files/web-kerberos/chrome.json
new file mode 100644 (file)
index 0000000..d92ca7c
--- /dev/null
@@ -0,0 +1,3 @@
+{
+   "AuthServerWhitelist": "*.csclub.uwaterloo.ca"
+}
diff --git a/files/web-kerberos/firefox.js b/files/web-kerberos/firefox.js
new file mode 100644 (file)
index 0000000..3615052
--- /dev/null
@@ -0,0 +1,5 @@
+// This file can be used to configure global preferences for Firefox
+// Example: Homepage
+//pref("browser.startup.homepage", "http://www.weebls-stuff.com/wab/");
+
+pref("network.negotiate-auth.trusted-uris", ".csclub.uwaterloo.ca");