From c666a0211372c7ff13e71fe5e0f93341ca9f0696 Mon Sep 17 00:00:00 2001
From: Adam Henry Lewenberg <adamhl@stanford.edu>
Date: Thu, 15 Oct 2020 11:57:51 -0700
Subject: [PATCH] add sudo cowbuilder file

---
 data/common.yaml |  6 ++++++
 hiera.yaml       | 10 ++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 data/common.yaml
 create mode 100644 hiera.yaml

diff --git a/data/common.yaml b/data/common.yaml
new file mode 100644
index 0000000..d828550
--- /dev/null
+++ b/data/common.yaml
@@ -0,0 +1,6 @@
+---
+cowbuilder:
+  content:
+    - '# Members of the root group can run cowbuilder (needed for building Debian pacakges)'
+    - '%root ALL = NOPASSWD: /usr/sbin/cowbuilder'
+  priority: 50
diff --git a/hiera.yaml b/hiera.yaml
new file mode 100644
index 0000000..eb05e58
--- /dev/null
+++ b/hiera.yaml
@@ -0,0 +1,10 @@
+---
+version: 5
+defaults:  # Used for any hierarchy level that omits these keys.
+  datadir: data         # This path is relative to hiera.yaml's directory.
+  data_hash: yaml_data  # Use the built-in YAML backend.
+
+hierarchy:
+  - name: "Common data"
+    path: "common.yaml"
+
-- 
GitLab