项目作者: OndrejHome

项目描述 :
Ansible role for importing fast-vm images.
高级语言:
项目地址: git://github.com/OndrejHome/ansible.fast-vm-import-images.git
创建时间: 2017-07-21T21:30:15Z
项目社区:https://github.com/OndrejHome/ansible.fast-vm-import-images

开源协议:GNU General Public License v3.0

下载


fast-vm-import-images

This role imports images for fast-vm.

Requirements

This roles was tested only on CentOS/RHEL 7.3. On RHEL systems this role expects that system is properly registered so it can download and install packages.
Also the working fast-vm installation is expected to be present on the machine.

NOTE: For RHEL 8.0 images this role also downloads and unpacks the Fedora 29 libguestfs appliance on non-Fedora systems. This may change in future.

Role Variables

  • URL or local path base to location where XML files are located

    1. xml_url_base: 'https://raw.githubusercontent.com/OndrejHome/fast-vm-public-images/master'
  • URL or local path base to location where hack files are located

    1. hacks_url_base: 'https://raw.githubusercontent.com/OndrejHome/fast-vm-public-images/master'
  • URL base of public fast-vm images mirror or local path to fast-vm images

    1. public_image_url_base: 'http://ftp.linux.cz/pub/linux/people/ondrej_famera/fastvm-images'
  • URL base of RHEL fast-vm images mirror or local path to fast-vm RHEL images

    1. rhel_image_url_base: ''

Example Playbook

Import all (except of RHEL) images from default mirror.

  1. - hosts: servers
  2. roles:
  3. - { role: OndrejHome.fast-vm-import-images }

Import everything from from local drive (offline import, no Internet connection required).

  1. - hosts: servers
  2. roles:
  3. - { role: OndrejHome.fast-vm-import-images, rhel_image_url_base: '/local/path/to/rhel/images', public_image_url_base: '/local/path/to/public/images', xml_url_base: '/local/path', hacks_url_base: '/local/path' }

IMPORTANT By default this role imports all available images. To select which images you want to import use ‘tags’.
Example of importing CentOS 6 BIOS images, CentOS 7 UEFI images and Fedora 29 image.

  1. # ansible-playbook example.yml --tags 'centos6,centos7_uefi,fedora_29'

License

GPLv3

Author Information

To get in touch with author you can use email ondrej-xa2iel8u@famera.cz or create a issue on github when requesting feature(s).