How can I require plugin that im currently developing without publishing it to the rubygems? Before I could require with Vagrant.require_plugin, but now Its printing me out that its deprecated.
here's my gemfile
source 'https://rubygems.org'
gem 'bundler'
gem "vagrant", github: "mitchellh/vagrant"
group :plugin do
gem 'vagrant-sheogorath', :path => '/Users/sandric/vagrant-sheogorath/'
end
here's my Vagrantfile:
require "vagrant-sheogorath"
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
when I'm running bundle exec vagrant plugin list here's the output:
sandric#sandric-mac ~/v/provision> bundle exec vagrant plugin list
Vagrant appears to be running in a Bundler environment. Your
existing Gemfile will be used. Vagrant will not auto-load any plugins.
You must load any plugins you want manually in a Vagrantfile. You can
force Vagrant to take over with VAGRANT_FORCE_BUNDLER.
You appear to be running Vagrant outside of the official installers.
Note that the installers are what ensure that Vagrant has all required
dependencies, and Vagrant assumes that these dependencies exist. By
running outside of the installer environment, Vagrant may not function
properly. To remove this warning, install Vagrant using one of the
official packages from vagrantup.com.
No plugins installed.
and when I try to install it:
sandric#sandric-mac ~/v/provision> bundle exec vagrant plugin install vagrant-sheogorath
Vagrant appears to be running in a Bundler environment. Your
existing Gemfile will be used. Vagrant will not auto-load any plugins.
You must load any plugins you want manually in a Vagrantfile. You can
force Vagrant to take over with VAGRANT_FORCE_BUNDLER.
You appear to be running Vagrant outside of the official installers.
Note that the installers are what ensure that Vagrant has all required
dependencies, and Vagrant assumes that these dependencies exist. By
running outside of the installer environment, Vagrant may not function
properly. To remove this warning, install Vagrant using one of the
official packages from vagrantup.com.
Installing the 'vagrant-sheogorath' plugin. This can take a few minutes...
ERROR warden: Error occurred: Vagrant's built-in bundler management mechanism is disabled because
Vagrant is running in an external bundler environment. In these
cases, plugin management does not work with Vagrant. To install
plugins, use your own Gemfile. To load plugins, either put the
plugins in the `plugins` group in your Gemfile or manually require
them in a Vagrantfile.
It seems that you don't need to install plugins while developing. You just need to include it in the :plugin group of your Gemfile, and Vagrant should load it for you at runtime.
By the way, on the repository master branch an updated version of the plugin development doc page already exists.
Related
I have an ansible playbook to install eclipse. This works fine but I would like to add some plugins to it, like subclipse for instance. Does anyone know how to do it? It might also be a shell script which allow me to install subclipse. This I can run via ansible. I've already tried many things but most often end up with an error:
The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized
I'm trying to uninstall the current version of Eclipse IDE in my RHEL machine by simply deleting all the files like:
sudo rm -rf ~/.eclipse
sudo rm -rf ~/eclipse-workspace
I also tried
sudo yum remove 'eclipse*'
However, these didn't seem to solve the purpose.
Any help will be appreciated, thanks!
Applications on Linux systems are most often installed using so-called packages, which are managed by a package management system. In the case of RHEL, packages use the RPM format, and the package manager of choice is a tool called yum.
Both installation and removal of software (packages) should be done using yum, so as to allow the package management system keep track of all installed files and current status. Therefore, you shouldn't try to remove software by simply deleting files from the file system. Instead, use the yum command. See the RHEL System Admin Guide for a detailed explanation of how to use yum to search, install, upgrade, and remove packages: Working with Packages.
You have tried the correct command (yum remove <package-name>), but you need to use the correct package name. On RHEL 7.4, the latest version of Eclipse is available as a part of the DevTools channel, and the package name is rh-eclipse47 (see Enabling the Red Hat Developer Tools Repositories). Note that you may have also installed an older version, which would be, for example, rh-eclipse46.
To find out what is the name of the package you have installed, you can run, for example, the following command:
yum list installed | grep eclipse
There is also the possibility that you installed the software not from an RPM package but manually, e.g. from a .tar.gz file distrubuted from eclipse.org. If that's the case, you will need to use the uninstaller program supplied with that distribution of the software.
Write command as:
rpm -qa|grep eclipse
This will give a list of installed packages. Remove all the packages by giving below command:
rpm -e *package-name*
Done!!!
I'm new to collectd and Riemann. Im essentially trying to direct collectd logs to a riemann server instance. I understand that I need write_riemann plugin installed. I tried compiling the source files for write_riemann available online, but it includes a file called "riemann.pb-c.h", which is no where to be found. Please help!
Download the binary. After running the build script, while running the configure script include "--enable-write_riemann", this should install it. I had a lot of dependencies missing on CentOS, which threw a lot of errors. Once they were installed, write_riemann plugin was compiled and installed. Another issue you might face while installing the dependency is not able to find the right packages for protobuf-c.I was using yum package installer. Go to sudo vi /etc/yum.repos.d/epel.repo and change enabled from 0 to 1. After this, the protobuf-c processor was recognised while running the configure script. This solved my issue. Hope it does yours too!
I have a virtual machine where I want to run Rails application. I use Vagrant to run it and Puppet as the provision tool.
I want to run bundle install during the provision so the VM is ready. I use this:
exec { 'bundle install':
command => 'bundle install',
cwd => '/vagrant/',
logoutput => true,
}
All gems but one are installed. The problem is with ember-rails, which is the only one with a GitHub repo specified in Gemfile:
gem 'ember-rails', github: 'emberjs/ember-rails'
I think this must be a Puppet issue. When I ssh into the VM and run bundle install manually, the gem is downloaded and used. When running provision via Vagrant, Puppet logs this message, but the gem seems to be missing:
/Stage[main]/Bundler/Exec[bundle install]/returns: Using ember-rails (0.9.2) from git://github.com/emberjs/ember-rails.git (at master)
I have noticed one difference. When I run bundle install manually, Bundler logs this:
Fetching git://github.com/emberjs/ember-rails.git
However, there is no such message in the Puppet log. Any ideas what might be the problem?
Gems installed from git repos are only visible to Bundler and do not appear in gem list. This is normal and does not indicate a problem. Is there a problem actually running your app?
I tried to install plugins from jenkins web interface and using command line as well. I am failed on both:
After installing jenkins-1.429-1.1.noarch.rpm, when I go to manage plugins and search in available plugins like phpcpd: pdepend: phpcs:phpdoc:phploc: but those plugins are not available in the list. So strange.
When I try to create build , I get error like http://pastie.org/2516863
On the top of that I manually try to install the plugins with command
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle
, but unfortunately, I get error like
Failed to authenticate with your SSH keys. Proceeding with anonymous access
Installing checkstyle from update center
Can somebody suggest me why I am missing default plugins in jenkins and also why I am getting such ssh authentication error from command line.
I am looking forward to solve this issue sooner!
Thanks in advance!
Those php related plugins don't come with jenkins, we need to install them manually. In case of redhat, I followed following process to install the plugins:
yum search plugin_name
yum install plugin name
how to install phpunit? it is different from previous method:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit