computology / computology-packagecloud Goto Github PK
View Code? Open in Web Editor NEWPuppet module for packagecloud.io
License: Apache License 2.0
Puppet module for packagecloud.io
License: Apache License 2.0
puppet-lint
packagecloud//manifests/gem_repo.pp - WARNING: defined type not documented on line 1 (check: documentation)
packagecloud//manifests/init.pp - WARNING: class not documented on line 21 (check: documentation)
packagecloud//manifests/init.pp - WARNING: legacy fact 'operatingsystem' on line 22 (check: legacy_facts)
packagecloud//manifests/init.pp - WARNING: legacy fact 'operatingsystem' on line 39 (check: legacy_facts)
packagecloud//manifests/init.pp - WARNING: top scope fact instead of facts hash on line 22 (check: top_scope_facts)
packagecloud//manifests/init.pp - WARNING: top scope fact instead of facts hash on line 39 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: defined type not documented on line 21 (check: documentation)
packagecloud//manifests/repo.pp - WARNING: line has more than 140 characters on line 82 (check: 140chars)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 59 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'lsbdistcodename' on line 65 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 95 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 100 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 113 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 114 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 115 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 116 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 120 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 121 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 122 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 123 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 128 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 129 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 130 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 131 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 137 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 146 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 148 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'architecture' on line 149 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: legacy fact 'operatingsystem' on line 175 (check: legacy_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 59 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 65 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 95 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 100 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 103 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 104 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 113 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 114 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 115 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 116 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 120 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 121 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 122 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 123 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 128 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 129 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 130 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 131 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 137 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 146 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 148 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 149 (check: top_scope_facts)
packagecloud//manifests/repo.pp - WARNING: top scope fact instead of facts hash on line 175 (check: top_scope_facts)
packagecloud//test/test/manifests/site.pp - WARNING: case statement without a default case on line 5 (check: case_without_default)
packagecloud//test/test/manifests/site.pp - WARNING: legacy fact 'operatingsystemrelease' on line 12 (check: legacy_facts)
packagecloud//test/test/manifests/site.pp - WARNING: top scope fact instead of facts hash on line 12 (check: top_scope_facts)
Notice: /Stage[main]/Baseline/Packagecloud::Repo[haf/oss]/Exec[yum_make_cache_haf/oss]/returns: executed successfully
Takes a long time to execute.
test/.kitchen/
and test/.tmp/
probably don't belong in the released package of the module. Unfortunately, they're currently in the version at https://forge.puppetlabs.com/computology/packagecloud
I suggest these changes to make using this puppet module more amenable to pulling into an existing setup.
puppet-packagecloud
- this will make it easier to find this repository through search engines - it's only puppetlabs that puts its name as a prefix, the rest of us use 'puppet'<root>/manifests
where you currently have an integration test specification instead of the module's code@ice799 would you mind enabling this repo in Travis?
https://travis-ci.org/computology/computology-packagecloud
Thanks ๐
$always_update_cache
parameter, turned on by default (as to not break this behaviour for people updating the module) that makes it so that the apt-get update and the yum makecache
(Suggested by @spuder in #12)refreshonly
parameter$always_update_cache
to only run the cache updates if true.On v0.2.4
I'm on Puppet v3.4.3
repo_gpgcheck
was introduced 10th June 2014 into puppet:
Hi!
What is the status of this project? I can see #18 has been open for a while, and the last activity on this project was on the 16th of June last year.
@ice799 are you still actively maintaining this project as part of the packagecloud.io portfolio? Or is this something that isn't supported anymore?
I'm particularly after the replacement of package { 'apt-transport-https': ..}
with ensure_packages
that currently prevents this puppet module from playing nicely with others.
this module should re-use puppetlabs-apt and yumrepo, rather than reinventing their behaviour.
This has the added benefit, that when someone already uses apt to manage their sources, a packagecloud managed repo will not suddenly vanish, because they purge /etc/apt/sources.list*
it should also fix #9.
The gpg key imports should not run every time that the puppet configuration is applied. They should run only if the key doesn't exist in the keychain.
The API's Url seems to have changed :
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 404 "Not Found" at /etc/puppet/environments/production/modules/packagecloud/manifests/repo.pp:42
On every puppet run we get something that looks like this.
Notice: /Stage[main]/Profile::Splunk/Packagecloud::Repo[X/Y]/Exec[apt_key_add_X_Y]/returns: executed successfully
Notice: /Stage[main]/Profile::Splunk/Packagecloud::Repo[umich/splunk]/Exec[apt_get_update_X_Y]/returns: executed successfully
Looks like you should check to see if they key is installed first?
It looks like a default puppet module (for deb packages) fails with:
Error: Validation of Exec[apt_key_add_myrepo_mypackage] failed: 'wget -qO - https://packagecloud.io/gpg.key | apt-key add -' is not qualified and no path was specified. Please qualify the command or specify a path. at /tmp/vagrant-puppet-2/modules-1/packagecloud/manifests/repo.pp:74
Possible solutions:
It's not a huge problem so feel free to close this issue, but a short info in README or a minor code change could help.
On Debian, with puppet 3.7.4, using the module outputs this message :
Could not retrieve pygpgme_installed: uninitialized constant Facter::Core
It seems the fact uses rpm command without checking the os.
Puppet error:
Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install pygpgme' returned 1: Error: Unable to find a match: pygpgme
Error: /Stage[main]/Packagecloud/Package[pygpgme]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install pygpgme' returned 1: Error: Unable to find a match: pygpgme
The module assumes direct connection to the internet, which in light of log4shell is a bad idea. It always was a bad idea not to block outgoing traffic in general.
However adding the possibility tp configure a proxy will ease up on this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.