GithubHelp home page GithubHelp logo

bwits / rancher-provisioning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from firegrass/rancher-provisioning

0.0 3.0 0.0 18 KB

Install rancher server and agents using ansible

Shell 100.00%

rancher-provisioning's Introduction

#Rancher server/agent installation and configuration using Ansible

This repository contains Ansible playbooks for configuring a Rancher Server with local auth enabled and registering Rancher Agents to the server automatically. Docker will be installed if not already on the target machine.

Requirements

To run these playbooks you need to have ansible installed: Ansible 1.9

Variables

Playbooks are configured by passing in extra variables. You need to pass in the environment variables in the --extra-vars option when running ansible-playbook. See the provisionServer.sh, provisionAgent.sh and bootstrapProvisioner.sh scripts for examples.

For the server playbook you need to set the --extra-vars:

  • RANCHER_SERVER_HOST (url for rancher server)
  • RANCHER_PORT (port rancher server is listening on)
  • ADMIN_USER (local auth admin username for rancher server web UI)
  • ADMIN_PASS (local auth admin user password for rancher server web UI)
  • SSH_USER (ssh user for target server machine)
  • SSH_PASS (ssh pass for target server machine)
  • API_USER (api username for talking to rancher server api)
  • API_PASS (api password for talking to rancher server api)

For the agent playbook you need to set the --extra-vars:

  • RANCHER_SERVER_HOST (url for rancher server)
  • RANCHER_PORT (port rancher server is listening on)
  • SSH_USER (ssh user for target agent machine)
  • SSH_PASS (ssh pass for target agent machine)
  • API_USER (api username for talking to rancher server api)
  • API_PASS (api password for talking to rancher server api)

Development environment

There is a development environment setup using Vagrant and Virtualbox. This environment consists 3 boxes: a rancher server, a single agent and a machine to provision the former two using ansible.

You will need to have the following software installed on your development machine:

  • Virtualbox (It works with >= 4 but i recommend 5 to maximise compatibility with the version of guest additions - version 5 - installed on the vm)
  • Vagrant (>= 1.7.4)

I suggest you use your native/favourite package manager to install these (for windows see chocolately, Mac OSX: homebrew, linux: apt-get :))

To create the environment run command in this directory:

vagrant up

This will provision the machines on first run

To reprovision the server and agent nodes run:

vagrant provision

rancher-provisioning's People

Contributors

jameskirk36 avatar firegrass avatar

Watchers

James Cloos avatar Bill Wang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.