Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.86 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.86 KB

SLES 12 Packer Template for MAAS

Introduction

The Packer template in this directory creates a SLES 12 AMD64 image for use with MAAS.

Prerequisites (to create the image)

Requirements (to deploy the image)

Customizing the Image

The deployment image may be customized using cloud-init configuration. Check the user-data file.

Building an image

You can easily build the image using the Makefile:

make ISO=/PATH/TO/SLES12-SP5-JeOS.x86_64-12.5-OpenStack-Cloud-GM.qcow2

Alternatively you can manually run packer. Your current working directory must be in packer-maas/sles12, where this file is located. Once in packer-maas/sles12 you can generate an image with:

packer init
PACKER_LOG=1 packer build -var 'sles_iso_path=/PATH/TO/SLES12-SP5-JeOS.x86_64-12.5-OpenStack-Cloud-GM.qcow2' .

Note: sles.pkr.hcl is configured to run Packer in headless mode. Only Packer output will be seen. If you wish to see the installation output connect to the VNC port given in the packer output or change the value of headless to false in sles.pkr.hcl.

Installation is non-interactive.

Makefile Parameters

TIMEOUT

The timeout to apply when building the image. The default value is set to 1h.

Uploading an image to MAAS

maas $PROFILE boot-resources create \
    name='suse/sles12.5' title='SLES 12-SP5' \
    architecture='amd64/generic' filetype='tgz' \
    content@=sles12.tar.gz

Default Username

The default username is sles