summaryrefslogtreecommitdiffstats
path: root/manifests/reprepro/snapshots/time_based.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/reprepro/snapshots/time_based.pp')
-rw-r--r--manifests/reprepro/snapshots/time_based.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/reprepro/snapshots/time_based.pp b/manifests/reprepro/snapshots/time_based.pp
index bf040a3..6612d5e 100644
--- a/manifests/reprepro/snapshots/time_based.pp
+++ b/manifests/reprepro/snapshots/time_based.pp
@@ -156,6 +156,22 @@ class tails::reprepro::snapshots::time_based (
require => Package[$tails_compact_reprepro_db_pkg_deps],
}
+ file { '/usr/local/sbin/tails-publish-tagged-apt-snapshot':
+ ensure => $ensure,
+ owner => root,
+ group => root,
+ mode => '0755',
+ source => 'puppet:///modules/tails/reprepro/snapshots/time_based/tails-publish-tagged-apt-snapshot',
+ }
+
+ file { '/etc/sudoers.d/tails-publish-tagged-apt-snapshot':
+ ensure => $ensure,
+ owner => root,
+ group => root,
+ mode => '0440',
+ content => "${user} ALL = NOPASSWD: /usr/local/sbin/tails-publish-tagged-apt-snapshot\n",
+ }
+
# To avoid having to maintain them in yet another place, let's reuse
# the keys we give to APT on our systems:
tails::reprepro::snapshots::time_based::import_upstream_keys {