summaryrefslogtreecommitdiff
path: root/jeos
diff options
context:
space:
mode:
authorSteven Hardy <shardy@redhat.com>2013-04-27 14:45:12 +0100
committerSteven Hardy <shardy@redhat.com>2013-04-29 12:53:25 +0100
commitf773a12e3b24ed0e9eb4e0021a24c7f69d3e5bc0 (patch)
tree124b17e4d46d7ea8333a218c12b212b9218785c9 /jeos
parentde67cecf926d660057ad9f72f87ae159829e54bf (diff)
downloadheat-templates-f773a12e3b24ed0e9eb4e0021a24c7f69d3e5bc0.tar.gz
Add heat-jeos TDL files and oz wrapper script
Import heat-jeos oz TDL files, and a utility script which wraps the commands required to process them. The heat-jeos.sh script is a simple (if not quite as fully featured) replacement for the heat-jeos tool, meaning we can deprecate it. fixes bug #1171602 Change-Id: I23416d1e3c7a5329c2076db6fbe6f51d44720766
Diffstat (limited to 'jeos')
-rw-r--r--jeos/CentOS-6.3-x86_64-cfntools.tdl37
-rw-r--r--jeos/F16-i386-cfntools.tdl23
-rw-r--r--jeos/F16-x86_64-cfntools-openshift.tdl45
-rw-r--r--jeos/F16-x86_64-cfntools.tdl23
-rw-r--r--jeos/F17-i386-cfntools.tdl23
-rw-r--r--jeos/F17-x86_64-cfntools.tdl23
-rw-r--r--jeos/F18-i386-cfntools.tdl23
-rw-r--r--jeos/F18-x86_64-cfntools.tdl23
-rw-r--r--jeos/U10-amd64-cfntools.tdl23
-rw-r--r--jeos/U12.10-amd64-cfntools.tdl23
-rw-r--r--jeos/U12.10-i386-cfntools.tdl23
11 files changed, 289 insertions, 0 deletions
diff --git a/jeos/CentOS-6.3-x86_64-cfntools.tdl b/jeos/CentOS-6.3-x86_64-cfntools.tdl
new file mode 100644
index 0000000..b35542c
--- /dev/null
+++ b/jeos/CentOS-6.3-x86_64-cfntools.tdl
@@ -0,0 +1,37 @@
+<template>
+ <name>CentOS-6.3-x86_64-cfntools</name>
+ <os>
+ <name>CentOS-6</name>
+ <version>3</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/CentOS-6.3-x86_64-bin-DVD1.iso</iso>
+ </install>
+ </os>
+ <description>CentOS 6.3</description>
+ <commands>
+ <command name='network-config'>
+cat > /etc/sysconfig/network-scripts/ifcfg-eth0 &lt;&lt; EOF
+DEVICE="eth0"
+BOOTPROTO=dhcp
+NM_CONTROLLED="yes"
+ONBOOT="yes"
+EOF
+ </command>
+chmod +x /etc/rc.d/rc.local
+ </command>
+ <command name='packages'>
+yum -y update
+curl -O http://ftp.ps.pl/pub/Linux/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
+rpm -Uvh epel-release-6-7.noarch.rpm
+yum -y install perl python python-setuptools cloud-init python-pip
+pip-python install argparse 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+rm -f epel-release-6-7.noarch.rpm
+ </command>
+ <command name='post-configuration'>
+chkconfig --level 345 sshd on
+rm -rf /etc/udev/rules.d/70-persistent-net.rules
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F16-i386-cfntools.tdl b/jeos/F16-i386-cfntools.tdl
new file mode 100644
index 0000000..b24c031
--- /dev/null
+++ b/jeos/F16-i386-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F16-i386-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>16</version>
+ <arch>i386</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-16-i386-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 16</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F16-x86_64-cfntools-openshift.tdl b/jeos/F16-x86_64-cfntools-openshift.tdl
new file mode 100644
index 0000000..ea0f8cb
--- /dev/null
+++ b/jeos/F16-x86_64-cfntools-openshift.tdl
@@ -0,0 +1,45 @@
+<template>
+ <name>F16-x86_64-cfntools-openshift</name>
+ <os>
+ <name>Fedora</name>
+ <version>16</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-16-x86_64-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 16 base OpenShift Install</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-boto
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+ </command>
+ <command name='cfn-perms'>
+chmod +x /opt/aws/bin/cfn-*
+ </command>
+ <command name='openshift_prereqs'>
+sed -i "s/SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
+setenforce 0
+yum -y install ntp git vim emacs wget tig mock createrepo tito fedora-kickstarts livecd-tools ruby rubygems rubygem-rake java-1.6.0-openjdk jpackage-utils java-1.6.0-openjdk-devel
+ </command>
+ <command name='openshift_build'>
+useradd builder
+usermod -a -G mock builder
+su builder -c 'cd /home/builder ; git clone git://github.com/openshift/crankcase.git /home/builder/crankcase'
+echo 'Hacking Rakefile to work with notty'
+sed -i '/.*usermod.*/d' /home/builder/crankcase/build/Rakefile
+cd /home/builder/crankcase/build; rake build_setup
+cd /home/builder/crankcase/build ; rake build
+ </command>
+ </commands>
+ <files>
+ <file name='/opt/aws/bin/cfn-init' type='base64'></file>
+ <file name='/opt/aws/bin/cfn-hup' type='base64'></file>
+ <file name='/opt/aws/bin/cfn-signal' type='base64'></file>
+ <file name='/opt/aws/bin/cfn_helper.py' type='base64'></file>
+ <file name='/opt/aws/bin/cfn-get-metadata' type='base64'></file>
+ <file name='/opt/aws/bin/cfn-push-stats' type='base64'></file>
+ </files>
+</template>
diff --git a/jeos/F16-x86_64-cfntools.tdl b/jeos/F16-x86_64-cfntools.tdl
new file mode 100644
index 0000000..43e9426
--- /dev/null
+++ b/jeos/F16-x86_64-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F16-x86_64-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>16</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-16-x86_64-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 16</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F17-i386-cfntools.tdl b/jeos/F17-i386-cfntools.tdl
new file mode 100644
index 0000000..08b9824
--- /dev/null
+++ b/jeos/F17-i386-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F17-i386-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>17</version>
+ <arch>i386</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-17-i386-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 17</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F17-x86_64-cfntools.tdl b/jeos/F17-x86_64-cfntools.tdl
new file mode 100644
index 0000000..1d0a0f8
--- /dev/null
+++ b/jeos/F17-x86_64-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F17-x86_64-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>17</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-17-x86_64-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 17</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F18-i386-cfntools.tdl b/jeos/F18-i386-cfntools.tdl
new file mode 100644
index 0000000..634fbba
--- /dev/null
+++ b/jeos/F18-i386-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F18-i386-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>18</version>
+ <arch>i386</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-18-i386-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 18</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip python-boto
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/F18-x86_64-cfntools.tdl b/jeos/F18-x86_64-cfntools.tdl
new file mode 100644
index 0000000..9065dc5
--- /dev/null
+++ b/jeos/F18-x86_64-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>F18-x86_64-cfntools</name>
+ <os>
+ <name>Fedora</name>
+ <version>18</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/Fedora-18-x86_64-DVD.iso</iso>
+ </install>
+ </os>
+ <description>Fedora 18</description>
+ <commands>
+ <command name='packages'>
+yum -y update fedora-release
+yum -y install yum-plugin-fastestmirror cloud-init python-psutil python-pip python-boto
+yum -y update
+sed --in-place -e s/Type=oneshot/"Type=oneshot\nTimeoutSec=0"/ /lib/systemd/system/cloud-final.service
+pip-python install heat-cfntools
+cfn-create-aws-symlinks --source /usr/bin
+
+ </command>
+ </commands>
+</template>
diff --git a/jeos/U10-amd64-cfntools.tdl b/jeos/U10-amd64-cfntools.tdl
new file mode 100644
index 0000000..95e4e5b
--- /dev/null
+++ b/jeos/U10-amd64-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>U10-x86_64-cfntools</name>
+ <os>
+ <name>Ubuntu</name>
+ <version>10.04</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/ubuntu-10.04.4-server-amd64.iso</iso>
+ </install>
+ </os>
+ <description>Ubuntu 10.04</description>
+ <commands>
+ <command name='commands'>
+apt-get -y update
+apt-get -y upgrade
+apt-get -y install python-argparse chkconfig cloud-init python-psutil python-pip
+apt-get -y remove python-boto
+
+pip install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/local/bin
+ </command>
+ </commands>
+</template>
diff --git a/jeos/U12.10-amd64-cfntools.tdl b/jeos/U12.10-amd64-cfntools.tdl
new file mode 100644
index 0000000..83aabfe
--- /dev/null
+++ b/jeos/U12.10-amd64-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>U12-10-x86_64-cfntools</name>
+ <os>
+ <name>Ubuntu</name>
+ <version>12.10</version>
+ <arch>x86_64</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/ubuntu-12.10-server-amd64.iso</iso>
+ </install>
+ </os>
+ <description>Ubuntu 12.10</description>
+ <commands>
+ <command name='commands'>
+apt-get -y update
+apt-get -y upgrade
+apt-get -y install python-argparse cloud-init python-psutil python-pip
+apt-get -y remove python-boto
+
+pip install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/local/bin
+ </command>
+ </commands>
+</template>
diff --git a/jeos/U12.10-i386-cfntools.tdl b/jeos/U12.10-i386-cfntools.tdl
new file mode 100644
index 0000000..8d899aa
--- /dev/null
+++ b/jeos/U12.10-i386-cfntools.tdl
@@ -0,0 +1,23 @@
+<template>
+ <name>U12-10-i386-cfntools</name>
+ <os>
+ <name>Ubuntu</name>
+ <version>12.10</version>
+ <arch>i386</arch>
+ <install type='iso'>
+ <iso>file:/var/lib/libvirt/images/ubuntu-12.10-server-i386.iso</iso>
+ </install>
+ </os>
+ <description>Ubuntu 12.10</description>
+ <commands>
+ <command name='commands'>
+apt-get -y update
+apt-get -y upgrade
+apt-get -y install python-argparse cloud-init python-psutil python-pip
+apt-get -y remove python-boto
+
+pip install 'boto==2.5.2' heat-cfntools
+cfn-create-aws-symlinks --source /usr/local/bin
+ </command>
+ </commands>
+</template>