From 7407ae978c9d79c77f5e60e17b0e4def9b7a7751 Mon Sep 17 00:00:00 2001 From: Alexey Deryugin Date: Tue, 29 Sep 2015 15:24:03 +0300 Subject: [PATCH] Add elements for Chef/Puppet applications Change-Id: Ibba68dd3f43dbf5bc39bb50c9ec57ed3783038c5 Closes-Bug: #1499362 --- Chef/GitChef/elements/chef/install.d/60-chef | 2 + Chef/GitChef/elements/readme.rst | 42 +++++++++++++++++++ .../OrionChef/elements/chef/install.d/60-chef | 2 + Chef/OrionChef/elements/readme.rst | 42 +++++++++++++++++++ .../elements/puppet/install.d/60-puppet | 2 + Puppet/MySQLPuppet/elements/readme.rst | 42 +++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100755 Chef/GitChef/elements/chef/install.d/60-chef create mode 100644 Chef/GitChef/elements/readme.rst create mode 100755 Chef/OrionChef/elements/chef/install.d/60-chef create mode 100644 Chef/OrionChef/elements/readme.rst create mode 100755 Puppet/MySQLPuppet/elements/puppet/install.d/60-puppet create mode 100644 Puppet/MySQLPuppet/elements/readme.rst diff --git a/Chef/GitChef/elements/chef/install.d/60-chef b/Chef/GitChef/elements/chef/install.d/60-chef new file mode 100755 index 00000000..f2a906cb --- /dev/null +++ b/Chef/GitChef/elements/chef/install.d/60-chef @@ -0,0 +1,2 @@ +#!/bin/bash +install-packages chef \ No newline at end of file diff --git a/Chef/GitChef/elements/readme.rst b/Chef/GitChef/elements/readme.rst new file mode 100644 index 00000000..2b88a3aa --- /dev/null +++ b/Chef/GitChef/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/Chef/OrionChef/elements/chef/install.d/60-chef b/Chef/OrionChef/elements/chef/install.d/60-chef new file mode 100755 index 00000000..f2a906cb --- /dev/null +++ b/Chef/OrionChef/elements/chef/install.d/60-chef @@ -0,0 +1,2 @@ +#!/bin/bash +install-packages chef \ No newline at end of file diff --git a/Chef/OrionChef/elements/readme.rst b/Chef/OrionChef/elements/readme.rst new file mode 100644 index 00000000..2b88a3aa --- /dev/null +++ b/Chef/OrionChef/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/Puppet/MySQLPuppet/elements/puppet/install.d/60-puppet b/Puppet/MySQLPuppet/elements/puppet/install.d/60-puppet new file mode 100755 index 00000000..0b1df1cd --- /dev/null +++ b/Puppet/MySQLPuppet/elements/puppet/install.d/60-puppet @@ -0,0 +1,2 @@ +#!/bin/bash +install-packages puppet diff --git a/Puppet/MySQLPuppet/elements/readme.rst b/Puppet/MySQLPuppet/elements/readme.rst new file mode 100644 index 00000000..56808f6b --- /dev/null +++ b/Puppet/MySQLPuppet/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.