Skip to content

OndrejHome/ansible.fast-vm-import-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    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

    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

    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

    rhel_image_url_base: ''
    

Example Playbook

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

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

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

- hosts: servers
  roles:
     - { 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.

# 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).

About

Ansible role for importing fast-vm images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published