Code Monkey home page Code Monkey logo

ansible-xenserver-vm-deploy's Introduction

Readme for Xenserver vm deploys

This repo contains Ansible plays that can do automated installs of Debian and Ubuntu on Xenserver. A VMWare play is in the works.

Automated installs on Xenserver

This section contains info about automated installations on Xenserver, using Ansible.

Supported distros

  • Debian Jessie 8.0
  • Debian Stretch 9.0
  • Ubuntu Xenial Xerus 16.04

Predefined VM flavours

vmtypes.csv contains settings for different flavours of VM's. It is possible to override everything (disk size, ram, cpu weight or count etc.), by supplying the variables on the command line, and the predefined types can be changed in vpstypes.csv if it's a more permanent change.

VM configs (vps types)

These predefined VM configs get loaded automatically

  • VM-S - 1GB RAM, 25GB disk, 1 CPU, CPU weight: 64
  • VM-M - 2GB RAM, 50GB disk, 1 CPU, CPU weight: 256
  • VM-L - 4GB RAM, 100GB disk, 1 CPU, CPU weight: 1024
  • VM-XL - 8GB RAM, 200GB disk, 1 CPU, CPU weight: 4096
  • VM-XXL - 16GB RAM, 500GB disk, 1 CPU, CPU weight: 16384
  • VM-XXXL - 32GB RAM, 1TB disk, 1 CPU, CPU weight: 65536

Static IP adresses

This playbook uses static IP adresses for now, but support for DHCP assigned addresses is planned.

Usage

The following variables are required:

  • hostname
  • domainname
  • gateway
  • vm_name
  • ipaddress
  • vps_type
  • sr_name
  • dnsservers
  • vm_template

The following variables has sane defaults, set by the VPS types CSV file. But you can change them, if you want to:

  • memory
  • disksize
  • cpu_weight
  • vcpu_count

The hosts file contains a list of Xenservers. When running the script, you have to limit the hosts it's being run on, to the one you wish the VPS to run on. If you have a Xenserver pool, please use the poolmaster.

Example

ansible-playbook -i hosts --limit xen01 xenserver-vm-deploy.yml -e "hostname=vm01 domainname=example.com gateway=192.168.1.1 vm_name=vm01 ipaddress=192.168.1.10 vps_type=VM-S sr_name=ssd_storage dnsservers=8.8.8.8 vcpu_count=2 vm_template='Ubuntu Xenial Xerus 16.04 (64-bit)'"

ansible-xenserver-vm-deploy's People

Contributors

jrisch avatar

Watchers

James Cloos 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.