Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if $pgpkey != false {
- file {"/etc/pki/rpm-gpg/${pgpkey}":
- mode => '0444',
- owner => '0',
- group => '0',
- }
- if $pgpkeysource != false {
- File["/etc/pki/rpm-gpg/${pgpkey}"] {
- source => "${pgpkeysource}",
- }
- }
- exec {"pgpkey-${pgpkey}":
- command => "/bin/rpm --import /etc/pki/rpm-gpg/${pgpkey}",
- cwd => "/",
- refreshonly => true,
- subscribe => [ File["/etc/pki/rpm-gpg/${pgpkey}"] ],
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement