Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SkeltonThatcher/vagrant-rancher
Vagrant files to create a Rancher server and host environment for local development
https://github.com/SkeltonThatcher/vagrant-rancher
Last synced: 3 months ago
JSON representation
Vagrant files to create a Rancher server and host environment for local development
- Host: GitHub
- URL: https://github.com/SkeltonThatcher/vagrant-rancher
- Owner: SkeltonThatcher
- Created: 2017-08-01T19:59:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T09:47:10.000Z (over 7 years ago)
- Last Synced: 2024-07-31T07:15:34.321Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rancher - Vagrant Rancher - Vagrant files to create a Rancher server and host environment for local development (Rancher 1.0 / Community projects 1.0)
README
# Vagrant files to create a Rancher server and host environment for local development
## Requirements
* Vagrant (with Virtualbox plugin)
* Virtualbox## Tested using the following desktop deployment environments
* Ubuntu 17.04 (Desktop)
* macOS Sierra 10.12.6 (Desktop)## Tested using the following Rancher, Vagrant and Docker versions
* Rancher Server v1.6.7
* Rancher Agent v1.2.6
* CentOS 7 (Vagrantbox)
* Docker-CE v17.06.0## Usage Instructions
1. Clone the repo
2. Run `sudo vagrant plugin install vagrant-vbguest` (to ensure host/guest VBox additions are matched)
3. Run `vagrant up` from within /server
4. After the instance is launched wait for 3-4 minutes until the Rancher server is up
5. Access the Rancher sever at http://192.168.50.50:8080
6. Go to infrastructure > hosts > add host
7. Accept the default host reg URL
8. Copy the (long) host reg string
9. Update the entry in host.sh with the new token (i.e `08E7A124D98AB02233F1:1483142400000:rBrLKo9bzo1qSZfeu1I3UrsXc8`)
10. Run `vagrant up` from within /host
11. Check the new host has launched and registered in the Rancher server**Note 1:** To persist the environment prior to PC or laptop suspend and/or shutdown/reboot:
Either..
- Pause both the server and host nodes from within the Virtualbox UI
Or..
- (Recommended) Issue a `vagrant suspend` for both /server and /host, followed by a `vagrant resume`.
**Note 2:** Guest to Host time sync:
To keep the guest time in sync with the host after a suspend/resume, ensure that Virtualbox Guest Additions are installed and update the locale string for `/usr/share/zoneinfo` in the Vagrantfile(s) for both server and host (This is currently set to `/Europe/London`).