Make keys file nicer
This commit is contained in:
parent
d0996e2b19
commit
6a882b79db
1 changed files with 18 additions and 11 deletions
|
@ -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":
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue