dotfiles/modules/yaourt/manifests/keys.pp

29 lines
787 B
ObjectPascal
Raw Normal View History

2017-08-12 14:01:40 +01:00
class yaourt::keys () {
2017-10-08 17:32:31 +01:00
$keys = [
2017-10-08 18:52:37 +01:00
'8A8F901A', # Sublime Text
2017-10-11 22:02:17 +01:00
'D1483FA6C3C07136', # Tor Browser
'9D5F1C051D146843CDA4858BDE64825E7CBC0D51', # ArchStrike
'7448C890582975CD'
2017-10-08 17:32:31 +01:00
]
2017-08-12 14:01:40 +01:00
2017-10-08 17:32:31 +01:00
$keys.each |$key| {
2017-10-19 20:49:41 +01:00
exec {"Add $key key":
command => "gpg --recv-keys $key",
2017-10-08 17:32:31 +01:00
user => 'jake',
unless => "gpg --list-keys $key"
}
2017-10-19 20:49:41 +01:00
exec { "Add $key for root": # So root can install things
2017-10-08 17:32:31 +01:00
command => "gpg --recv-keys $key",
unless => "gpg --list-keys $key"
}
2017-10-19 20:49:41 +01:00
exec { "Add $key to pacman":
command => "pacman-key -r $key",
2017-10-08 17:32:31 +01:00
unless => "pacman-key --list-keys $key"
}
2017-10-19 20:49:41 +01:00
exec { "Locally sign $key with pacman":
command => "pacman-key --lsign-key $key",
unless => "pacman-key --list-keys $key | grep full"
2017-10-19 13:18:21 +01:00
}
2017-08-12 14:01:40 +01:00
}
}