Add murano-agent DIB element for Debian
Change-Id: I5d4ef79d9826ae2e0362ea63dc8aaf16cd0a8b9b Closes-Bug: #1455469
This commit is contained in:
parent
36fa352518
commit
bc7268ee6d
|
@ -0,0 +1,2 @@
|
|||
cloud-init-datasources
|
||||
murano-agent
|
|
@ -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
|
|
@ -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:
|
|
@ -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.
|
Loading…
Reference in New Issue