murano-agent/contrib/elements
Tetiana Lashchova f95912e1b9 Change chef installation method
Fedora and Centos don't have chef in their repos.
So we need to install it in another way.
This patch adds an ability to install chef in different ways
depending on a used distro (ubuntu, fedora, centos7)

Change-Id: I1a8ea048791cc0498e78c6a406ef9b486d213471
Related-Bug: #1578991
2016-05-19 17:34:37 +00:00
..
murano-agent/install.d Change chef installation method 2016-05-19 17:34:37 +00:00
murano-agent-debian Ensure murano-agent starts on boot on debian-based images 2015-12-08 12:17:55 +03:00
readme.rst Update Ubuntu-based image build documentation 2015-07-14 15:05:14 +00:00

Murano Agent Elements

This folder contains necessary DIB elements to build Murano Agent image.

Prerequisites

  1. Install diskimage-builder
sudo pip install diskimage-builder
  1. Install qemu-uils and kpartx

On Ubuntu, Debian:

sudo apt-get install qemu-utils kpartx

On Centos, Fedora:

sudo yum install qemu-utils kpartx

Image building

To build Ubuntu-based image

sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements \
    DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack" disk-image-create \
    vm ubuntu murano-agent -o ubuntu14.04-x64-agent

To build Debian-based image

sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements DIB_RELEASE=jessie \
    DIB_CLOUD_INIT_DATASOURCES="Ec2, ConfigDrive, OpenStack" disk-image-create \
    vm debian murano-agent-debian -o debian8-x64-agent

Where ${murano_agent_root} is a path to murano-agent files.