From 14c042c05d008bf195744a070d4004c1f3391418 Mon Sep 17 00:00:00 2001 From: Alexey Deryugin Date: Wed, 6 May 2015 19:11:16 +0300 Subject: [PATCH] Add elements for puppet/chef Change-Id: I869ac19705437faf99c77b3c87f9cf590f9eaae4 --- .../elements/chef/install.d/60-chef | 2 + Examples/ChefExample/elements/readme.rst | 42 +++++++++++++++++++ .../elements/puppet/install.d/60-puppet | 2 + Examples/PuppetExample/elements/readme.rst | 42 +++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100755 Examples/ChefExample/elements/chef/install.d/60-chef create mode 100644 Examples/ChefExample/elements/readme.rst create mode 100755 Examples/PuppetExample/elements/puppet/install.d/60-puppet create mode 100644 Examples/PuppetExample/elements/readme.rst diff --git a/Examples/ChefExample/elements/chef/install.d/60-chef b/Examples/ChefExample/elements/chef/install.d/60-chef new file mode 100755 index 00000000..f2a906cb --- /dev/null +++ b/Examples/ChefExample/elements/chef/install.d/60-chef @@ -0,0 +1,2 @@ +#!/bin/bash +install-packages chef \ No newline at end of file diff --git a/Examples/ChefExample/elements/readme.rst b/Examples/ChefExample/elements/readme.rst new file mode 100644 index 00000000..2b88a3aa --- /dev/null +++ b/Examples/ChefExample/elements/readme.rst @@ -0,0 +1,42 @@ +Chef Elements +=============== + +This folder contains necessary DIB elements to build Chef image +expected by "Chef Example" Murano application. + + +Prerequisites +------------- + +1. Install diskimage-builder + +.. sourcecode:: bash + + sudo pip install diskimage-builder + +2. Install qemu-utils 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 +-------------- + +.. sourcecode:: bash + + sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${murano_apps_root}/Example/ChefExample/elements disk-image-create \ + vm ubuntu murano-agent chef -o ubuntu14.04-x64-chef + +Where ${murano_agent_root} is a path to murano-agent files +and ${murano_apps_root} is a path to murano-apps files. diff --git a/Examples/PuppetExample/elements/puppet/install.d/60-puppet b/Examples/PuppetExample/elements/puppet/install.d/60-puppet new file mode 100755 index 00000000..0b1df1cd --- /dev/null +++ b/Examples/PuppetExample/elements/puppet/install.d/60-puppet @@ -0,0 +1,2 @@ +#!/bin/bash +install-packages puppet diff --git a/Examples/PuppetExample/elements/readme.rst b/Examples/PuppetExample/elements/readme.rst new file mode 100644 index 00000000..56808f6b --- /dev/null +++ b/Examples/PuppetExample/elements/readme.rst @@ -0,0 +1,42 @@ +Puppet Elements +=============== + +This folder contains necessary DIB elements to build Puppet image +expected by "Puppet Example" Murano application. + + +Prerequisites +------------- + +1. Install diskimage-builder + +.. sourcecode:: bash + + sudo pip install diskimage-builder + +2. Install qemu-utils 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 +-------------- + +.. sourcecode:: bash + + sudo ELEMENTS_PATH=${murano_agent_root}/contrib/elements:${murano_apps_root}/Example/PuppetExample/elements disk-image-create \ + vm ubuntu murano-agent puppet -o ubuntu14.04-x64-puppet + +Where ${murano_agent_root} is a path to murano-agent files +and ${murano_apps_root} is a path to murano-apps files.