All Projects → lunagt → rancher-terraform-digitalocean

lunagt / rancher-terraform-digitalocean

Licence: other
Terraform module for a rancher server on digitalocean.

Programming Languages

HCL
1544 projects
Smarty
1635 projects

Projects that are alternatives of or similar to rancher-terraform-digitalocean

spring-cloud-microservices-on-kubernetes
My Best Practices in development and deployment of Spring Cloud Microservices on Kubernetes.
Stars: ✭ 19 (-9.52%)
Mutual labels:  rancher
terraform-aws-nvme-example
Example to manage your EBS NVME volumes on AWS
Stars: ✭ 46 (+119.05%)
Mutual labels:  cloud-init
deploy-vm
Libvirt wrapper to spawn VMs using cloud images
Stars: ✭ 56 (+166.67%)
Mutual labels:  cloud-init
rancher2-ansible
Provision a single node rancher2 k8s cluster using Ansible
Stars: ✭ 18 (-14.29%)
Mutual labels:  rancher
rancher-redis
A containerized redis master/slave configuration with sentinels for use in Rancher
Stars: ✭ 13 (-38.1%)
Mutual labels:  rancher
k3d-demo
Demo of k3d: Tool to run k3s (Kubernetes) in Docker
Stars: ✭ 197 (+838.1%)
Mutual labels:  rancher
luna
Provisioning tool for clusters
Stars: ✭ 58 (+176.19%)
Mutual labels:  luna
cloud-init-example
Example of setting user-data for AWS EC2 with multipart data, tests the order in which various user data formats are run
Stars: ✭ 39 (+85.71%)
Mutual labels:  cloud-init
terraform-metal-k3s
Manage K3s (k3s.io) region clusters on Equinix Metal
Stars: ✭ 41 (+95.24%)
Mutual labels:  rancher
gitlab-docker-rancher-letsencrypt-setup
Automated private dev environment with docker, gitlab CI/CD...
Stars: ✭ 15 (-28.57%)
Mutual labels:  rancher
Performance-Engineers-DevOps
This repository helps performance testers and engineers who wants to dive into DevOps and SRE world.
Stars: ✭ 35 (+66.67%)
Mutual labels:  rancher
Certified-Rancher-Operator-Thai
มาเรียนรู้ Kuberntes แบบ On-Premise และ Architecture ของ Rancher ที่ใช้ในการจัดการ Kubernetes Cluster เพื่อนำสู่ Certified Kubernetes Administrator และ Certified Rancer Operator
Stars: ✭ 78 (+271.43%)
Mutual labels:  rancher
monitoring-rancher
🤠How to Set up Rancher Server Monitoring with TIG Stack?
Stars: ✭ 22 (+4.76%)
Mutual labels:  rancher
bovine
Manager for single node Rancher clusters
Stars: ✭ 51 (+142.86%)
Mutual labels:  rancher
keycloak-sso-configs
common keycloak single sign on configurations
Stars: ✭ 19 (-9.52%)
Mutual labels:  rancher
cattlectl
gain control over your ranch
Stars: ✭ 33 (+57.14%)
Mutual labels:  rancher
konfigadm
konfigadm is a declarative configuration management tool and image builder focused on bootstrapping nodes for container-based environments.
Stars: ✭ 26 (+23.81%)
Mutual labels:  cloud-init
Luna
Club Penguin Server Emulator - AS2 Protocol
Stars: ✭ 22 (+4.76%)
Mutual labels:  luna
skalogs-bundle
Open Source data and event driven real time Monitoring and Analytics Platform
Stars: ✭ 16 (-23.81%)
Mutual labels:  rancher
ubuntu-vagrant
Ubuntu Linux Vagrant Base Box (https://app.vagrantup.com/rgl)
Stars: ✭ 25 (+19.05%)
Mutual labels:  cloud-init

rancherterraformdigitalocean

Rancher Terraform DigitalOcean

Terraform module for a rancher server on Digitalocean.

What you will get?

  • A Rancher server running on DigitalOcean
  • A Domain rule pointing to your Rancher server

Features

  • It works with your main DigitalOcean account or with DigitalOcean teams. For using a team you just need that team special token and your SSH keys installed there.
  • It doesn't install puppet, chef or ansible on the host. Instead it uses cloud-init.
  • It closes all the external and internal traffic and the only ports opened are the 80 and 8080.
  • Login with root user is disabled, you will need your SSH keys.
  • Iptables rules are persistent after reboot.
  • You will get the new DigitalOcean beta metrics agent installed.

What you will need?

  • Terraform installed. This was tested with the 0.8.5 version. You can see terraform instructions here.
  • A DigitalOcean account. If you still don't have one you can create one here for free.
  • You DigitalOcean token. You can get it from here.
  • Public and private SSH keys on your local machine and set them up on your Digital Ocean account. You can learn how to do that here.

How to use it

Clone this repository

git clone [email protected]:lunagt/rancher-terraform-digitalocean.git

Inside the repository folder create a copy of the example tfvars file

cp terraform.example.tfvars terraform.tfvars

Edit this new file with the variables you want (see variables section at the end).

Runing it

   terraform apply     If you don't need your server anymore, just destroy it

terraform destroy #and type 'yes' after this command

Variables

Mandatory DigitalOcean API Variables

Variable Default Description
do_token empty DigitalOcean Personal Access Token
pub_key empty Public key location, so it can be installed into new droplets
pvt_key empty Private key location, so Terraform can connect to new droplets
ssh_fingerprint empty Fingerprint of SSH key

Mandatory Host Variables

Variable Default Description
domain empty Existing DigitalOcean DNS in which the host will be added e.g. example.com

Optional Host Variables

Variable Default Description
host_name rancher-server Name of the host to be created
image docker-16-04 Base image for the host
region sfo1 Digital Ocean region for the host
size 1gb Digital Ocean size of the host (512mb, 1gb, 2gb)
private_networking false Enable/Disable private networking
domain_name rancher. Domain name, for example "rancher." (note the dot at the end), so you will have rancher.example.com
user rancher Username to be used to login to the host and for the home folder.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].