Giter VIP home page Giter VIP logo

ansible-role-proxmox's Introduction

#######################################################################################################

❗ DEPRECATION ❗

This repository and the role associated are deprecated.

You can find our other roles in the Manala Ansible Collection. You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Proxmox Build Status

Report issues and send Pull Requests in the main Ansible Role repository

This role will deal with the setup of Proxmox.

Handles:

  • Templates download
  • Storage management

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.proxmox

Using ansible galaxy requirements file:

- src: manala.proxmox

Role Handlers

None.

Role Variables

Definition

Name Default Type Description
manala_proxmox_templates_exclusive false Boolean Exclusion of existings templates
manala_proxmox_templates_dir /var/lib/vz/template/cache String Path to the templates directory
manala_proxmox_templates [] Array Collection of templates
manala_proxmox_isos_exclusive false Boolean Exclusion of existings isos
manala_proxmox_isos_dir /var/lib/vz/template/iso String Path to the isos directory
manala_proxmox_isos [] Array Collection of isos
manala_proxmox_storages [] Array Collection of storage points
manala_proxmox_instances [] Array Proxmove instances to manage
manala_proxmox_instances_defaults {} Array Defaults parameters used by manala_proxmox_instances

Configuration example

Proxmox templates

manala_proxmox_templates_exclusive: true
manala_proxmox_templates:
  - http://download.manala.io/proxmox/templates/debian-7.0-manala_2.0.0_amd64.tar.gz
  - url: http://download.manala.io/proxmox/templates/debian-8.0-manala_2.0.0_amd64.tar.gz
    file: debian-8.0.tar.gz
  - url: http://download.manala.io/proxmox/templates/debian-9.0-manala_2.0.0_amd64.tar.gz
    state: absent

Proxmox isos

manala_proxmox_isos_exclusive: true
manala_proxmox_isos:
  - https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-netinst.iso
  - url: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-netinst.iso
    file: debian-9.4.tar.gz
  - url: https://cdimage.debian.org/debian-cd/9.4.0/arm64/iso-cd/debian-9.4.0-arm64-netinst.iso
    state: absent

Proxmox storages

manala_proxmox_storages:
  - id:       storage_point_identifier
    type:     nfs
    server:   servername
    export:   /export/ftpbackup/my_storage_point_name
    maxfiles: 3
    content:  backup
    nodes:    hypervisor-1

Proxmox instances

manala_proxmox_instances_defaults:
  api_user: root@pam
  api_password: proxmox-api-password
  api_host: hv-1
  node: hv-1
  password: root-password

# See http://docs.ansible.com/ansible/latest/proxmox_module.html#options for available options
manala_proxmox_instances:
  - vmid: 101
    hostname: mysql-1.local
    cpus: 2
    memory: 6144
    swap: 512
    disk: 30
    netif: '{
      "net0": "name=eth0,ip=192.168.0.1/24,gw=192.168.0.254,bridge=vmbr1"
    }'
    pool: db
    ostemplate: local:vztmpl/debian-8.0-manala_2.0.0_amd64.tar.gz

Example playbook

- hosts: hypervisors
  roles:
    - { role: manala.proxmox }

Licence

MIT

Author information

Manala (http://www.manala.io/) is proudly supported by ELAO

ansible-role-proxmox's People

Contributors

greedybro avatar nervo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

peacedata0

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.