Add murano-agent DIB element for Debian

Change-Id: I5d4ef79d9826ae2e0362ea63dc8aaf16cd0a8b9b
Closes-Bug: #1455469
This commit is contained in:
Alexey Deryugin 2015-05-27 18:28:55 +03:00
parent 36fa352518
commit bc7268ee6d
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,2 @@
cloud-init-datasources
murano-agent

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eu
set -o pipefail
# Fix problem with default hostname
rm -rf /etc/cloud/cloud.cfg.d/01_hostname.cfg
# Fix problem with locale generation
sed -e '/# en_US.UTF-8/ s/^# //' -i /etc/locale.gen
locale-gen

View File

@ -0,0 +1,14 @@
inetutils-ping:
net-tools:
vim:
isc-dhcp-client:
git-core:
wget:
make:
gcc:
python-pip:
python-dev:
python-setuptools:
python-virtualenv:
iptables:
virtualenvwrapper:

View File

@ -0,0 +1,50 @@
Murano Agent Elements
=====================
This folder contains necessary DIB elements to build Murano Agent image.
Prerequisites
-------------
1. Install diskimage-builder
.. sourcecode:: bash
sudo pip install diskimage-builder
2. Install qemu-uils and kpartx
On Ubuntu, Debian:
.. sourcecode:: bash
sudo apt-get install qemu-utils kpartx
On Centos, Fedora:
.. sourcecode:: bash
sudo yum install qemu-utils kpartx
Image building
--------------
To build Ubuntu-based image
.. sourcecode:: bash
sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements disk-image-create \
vm ubuntu murano-agent -o ubuntu14.04-x64-agent
To build Debian-based image
.. sourcecode:: bash
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.