From 13c70b486462a5a285b21cc5a8c671e2eb231264 Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Thu, 5 May 2016 19:46:37 -0400 Subject: [PATCH] Disable Homebrew Analytics This is not the most robust of solutions, but will do the job. A better solution would be a custom Salt state, backed by a custom Salt module, that uses the `brew analytics` command to stay decoupled from implementation details. Instead, directly change the git config settings of the local Homebrew repo to disable analytics. --- osx/init.sls | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/osx/init.sls b/osx/init.sls index ba1fa6c1..ae84de1c 100644 --- a/osx/init.sls +++ b/osx/init.sls @@ -11,3 +11,15 @@ - group: wheel - mode: 644 - source: salt://{{ tpldir }}/files/profile + +# Disable Homebrew Analytics +# TODO: wrap this up into a proper state that uses the `brew analytics` command +# instead of directly changing the git configuration +# (requires either upstreaming this state + updating Salt, +# or Salting the Salt master) +# TODO: also ensure the `homebrew.analyticsuuid` setting is unset +disable-homebrew-analytics: + git.config: + - name: 'homebrew.analyticsdisabled' + - value: 'true' + - repo: /usr/local