2017-08-12 14:01:40 +01:00
|
|
|
class yaourt::keys () {
|
2017-10-08 17:32:31 +01:00
|
|
|
$keys = [
|
|
|
|
"8A8F901A", # Sublime Text
|
|
|
|
"D1483FA6C3C07136" # Tor Browser
|
|
|
|
]
|
2017-08-12 14:01:40 +01:00
|
|
|
|
2017-10-08 17:32:31 +01:00
|
|
|
$keys.each |$key| {
|
|
|
|
exec { "gpg --recv-keys $key":
|
|
|
|
user => 'jake',
|
|
|
|
unless => "gpg --list-keys $key"
|
|
|
|
}
|
|
|
|
exec { "add $key for root": # So root can install things
|
|
|
|
command => "gpg --recv-keys $key",
|
|
|
|
unless => "gpg --list-keys $key"
|
|
|
|
}
|
|
|
|
exec { "pacman-key -r $key":
|
|
|
|
unless => "pacman-key --list-keys $key"
|
|
|
|
}
|
|
|
|
exec { "pacman-key --lsign-key $key":
|
|
|
|
}
|
2017-08-12 14:01:40 +01:00
|
|
|
}
|
|
|
|
}
|