nextrevision / vagrant-rancher

Vagrant plugin to install a Rancher server and agents on all Vagrant guests.
MIT License
4 stars 4 forks source link

vagrant-rancher

Vagrant plugin to install a Rancher server and agents on all vagrant guests.

Installation

vagrant plugin install vagrant-rancher

Requirements

Usage

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.network "private_network", ip: "192.168.33.100"
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "1024"
  end

  config.vm.provision :docker
  config.vm.provision "rancher" do |rancher|
    rancher.hostname = "192.168.33.100"
  end
end

The vagrant-rancher plugin requires the hostname being set to either a DNS name or IP that is reachable by the host running the vagrant command.

Options

Examples

See examples directory. For a quick setup of a Rancher environment running on RancherOS, see https://github.com/nextrevision/rancheros-vagrant.

Providers Tested

Development

bundle install
bundle exec vagrant ...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nextrevision/vagrant-rancher.

License

The gem is available as open source under the terms of the MIT License.