Make keys file nicer

This commit is contained in:
Jake Howard 2017-10-08 17:32:31 +01:00
parent d0996e2b19
commit 6a882b79db
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,15 +1,22 @@
class yaourt::keys () { class yaourt::keys () {
exec { 'gpg --recv-keys F7E48EDB': $keys = [
user => 'jake' "8A8F901A", # Sublime Text
} "D1483FA6C3C07136" # Tor Browser
]
exec { 'pacman-key -r 962DDE58': $keys.each |$key| {
} exec { "gpg --recv-keys $key":
user => 'jake',
exec { 'pacman-key --lsign-key 962DDE58': unless => "gpg --list-keys $key"
} }
exec { "add $key for root": # So root can install things
exec { 'gpg --keyserver pool.sks-keyservers.net --recv-keys 2E1AC68ED40814E0': command => "gpg --recv-keys $key",
user => 'jake' unless => "gpg --list-keys $key"
}
exec { "pacman-key -r $key":
unless => "pacman-key --list-keys $key"
}
exec { "pacman-key --lsign-key $key":
}
} }
} }