This repo contains Ansible plays that can do automated installation of Ubuntu on Xenserver.
This section contains info about automated installations on Xenserver, using Ansible.
This automation expects an Ubuntu ISO to be present in xen storage repository.
Planning to support network mode installation.
Preseeding provides a way to set answers to questions asked during the installation process, without having to manually enter the answers while the installation is running. This makes it possible to fully automate most types of installation and even offers some features not available during normal installations.
Preseed configuration can be used in different ways, here it's expected to host the configuration file on a server.
This repo consists a sample configuration file, with description on what each configuration does. Modify it as per your need and host it on a server.
- Ubuntu Precise 12.04
This playbook allows user to configure static and dynamic IP.
To configure static IP, set disable_dhcp as true and configure
following variables.
ipaddressgatewaydnsserversnetmaks
The following variables are required:
hostnamedomainnamevm_namesr_namevm_templatememorydisksizecpu_weightvcpu_countos_isopreseed_url
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.
ansible-playbook -i hosts --limit xen01 deploy.yml -e "hostname=vm01 vm_name=vm01 domainname=example.com"
init.yml will let you install few basic stuff like dist-upgrade,
install packages and configure DNS server.
add_disk.yml will let you create a disk on Xenserver and add it to
the given VM.