Comments (2)
I am not sure where to place this diff. It changes sensu-install, but that change is only needed because of sensu-omnibus. This allows me to run sensu-install --plugins sensu-plugins-aws --clear-sources --source https://private.repo --source https://rubygems.org
without failure:
--- /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-1.7.0/exe/sensu-install 2019-03-18 22:59:34.000000000 +0000
+++ sensu-install 2019-03-21 22:39:02.056970142 +0000
@@ -33,8 +33,12 @@
opts.on("-E", "--extensions EXTENSION[,EXT]", "EXTENSION or comma-delimited list of Sensu extensions to install") do |extensions|
options[:extensions].concat(extensions.split(","))
end
+ opts.on("--clear-sources", "Clear the gem sources") do
+ options[:clearsources] = true
+ end
opts.on("-s", "--source SOURCE", "Install Sensu plugins and extensions from a custom SOURCE") do |source|
- options[:source] = source
+ options[:source] ||= []
+ options[:source] << source
end
opts.on("-c", "--clean", "Clean up (remove) other installed versions of the plugin(s) and/or extension(s)") do
options[:clean] = true
@@ -73,7 +77,12 @@
gem_command << " --version '#{gem_version}'" if gem_version
gem_command << " --no-ri --no-rdoc"
gem_command << " --verbose" if options[:verbose]
- gem_command << " --source #{options[:source]}" if options[:source]
+ gem_command << " --clear-sources" if options[:clearsources]
+ if options[:source]
+ options[:source].each do |src|
+ gem_command << " --source #{src}"
+ end
+ end
gem_command << " --http-proxy #{options[:proxy]}" if options[:proxy]
log gem_command if options[:verbose]
unless system(gem_command)
from sensu-omnibus.
Closing as Sensu Classic is EOL. Please switch to Sensu Go.
from sensu-omnibus.
Related Issues (20)
- Ruby 2.4 issue #13794 affects sensu-client on AIX HOT 4
- [REGRESSION] EMBEDDED_RUBY default changed? HOT 4
- Broken SSL certificate handling in Linux packages HOT 2
- Copy sensu-translate to omnibus bin dir HOT 1
- Build packages for Ubuntu 18.04
- Service fail to run after package upgrade HOT 5
- Add builds for Ubuntu 18.04 HOT 2
- FreeBSD 11 builds are failing in CI HOT 2
- RPM packages should include changelog HOT 2
- postinstall scriptlet breaks LDAP sensu user on Linux
- Mac builds are failing HOT 2
- Solaris 10 packages do not install service manifest in /lib/svc/manifest/site HOT 1
- Solaris 10 packages fail to install cleanly due to missing directories HOT 1
- Packages for Ubuntu 16.04 and 18.04 collide HOT 1
- Update sensu-translator gem to 1.0.0 (for Sensu Go GA)
- Sensu Core 1.x packages conflict with Sensu Go packages
- sc command fails on Windows 2003 HOT 1
- Ruby version in README too low? HOT 1
- Upgraded embedded Ruby version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensu-omnibus.