Skip to content

Commit

Permalink
Merge pull request #152 from juniorsysadmin/remove-gpg_key
Browse files Browse the repository at this point in the history
Remove soft dependency on treydock/gpg_key
  • Loading branch information
igalic committed Dec 2, 2015
2 parents 3241dba + 177ca13 commit e78e9a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ fixtures:
"portage": "git://github.com/gentoo/puppet-portage.git"
"chocolatey": "git://github.com/chocolatey/puppet-chocolatey.git"
"epel": "git://github.com/stahnma/puppet-module-epel.git"
"gpg_key": "git://github.com/treydock/puppet-gpg_key.git"
symlinks:
"nodejs": "#{source_dir}"
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,6 @@ This module is not supported on Debian Squeeze.

### Module dependencies

This module uses `treydock-gpg_key` for the import of RPM GPG keys. If using
an operating system of the RedHat-based family, you will need to ensure that
it is installed.

This modules uses `puppetlabs-apt` for the management of the NodeSource
repository. If using an operating system of the Debian-based family, you will
need to ensure that `puppetlabs-apt` version 2.x is installed.
Expand Down
7 changes: 2 additions & 5 deletions manifests/repo/nodesource/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
proxy => $proxy,
proxy_password => $proxy_password,
proxy_username => $proxy_username,
require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'],
}

yumrepo { 'nodesource-source':
Expand All @@ -42,6 +43,7 @@
proxy => $proxy,
proxy_password => $proxy_password,
proxy_username => $proxy_username,
require => File['/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL'],
}

file { '/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL':
Expand All @@ -51,11 +53,6 @@
owner => 'root',
source => "puppet:///modules/${module_name}/repo/nodesource/NODESOURCE-GPG-SIGNING-KEY-EL",
}

gpg_key{ 'nodesource':
path => '/etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL',
before => [ Yumrepo['nodesource'], Yumrepo['nodesource-source'], ],
}
}

else {
Expand Down

0 comments on commit e78e9a3

Please sign in to comment.