From 18ad8258bfdc82fa11bdb5075d3d97b29bf5fcee Mon Sep 17 00:00:00 2001 From: John Bellone Date: Sat, 13 Apr 2013 16:04:09 -0400 Subject: [PATCH] Added ubuntu-12.10 definitions. This was a copy from the ubuntu-12.04 definitions basically wholesale. --- definitions/ubuntu-12.10-i386/chef-client.sh | 1 + definitions/ubuntu-12.10-i386/cleanup.sh | 1 + definitions/ubuntu-12.10-i386/definition.rb | 11 +++++++++++ definitions/ubuntu-12.10-i386/minimize.sh | 1 + definitions/ubuntu-12.10-i386/networking.sh | 1 + definitions/ubuntu-12.10-i386/preseed.cfg | 1 + definitions/ubuntu-12.10-i386/sudoers.sh | 4 ++++ definitions/ubuntu-12.10-i386/update.sh | 1 + definitions/ubuntu-12.10-i386/vagrant.sh | 1 + definitions/ubuntu-12.10/chef-client.sh | 1 + definitions/ubuntu-12.10/cleanup.sh | 1 + definitions/ubuntu-12.10/definition.rb | 11 +++++++++++ definitions/ubuntu-12.10/minimize.sh | 1 + definitions/ubuntu-12.10/networking.sh | 1 + definitions/ubuntu-12.10/preseed.cfg | 1 + definitions/ubuntu-12.10/sudoers.sh | 4 ++++ definitions/ubuntu-12.10/update.sh | 1 + definitions/ubuntu-12.10/vagrant.sh | 1 + 18 files changed, 44 insertions(+) create mode 120000 definitions/ubuntu-12.10-i386/chef-client.sh create mode 120000 definitions/ubuntu-12.10-i386/cleanup.sh create mode 100644 definitions/ubuntu-12.10-i386/definition.rb create mode 120000 definitions/ubuntu-12.10-i386/minimize.sh create mode 120000 definitions/ubuntu-12.10-i386/networking.sh create mode 120000 definitions/ubuntu-12.10-i386/preseed.cfg create mode 100644 definitions/ubuntu-12.10-i386/sudoers.sh create mode 120000 definitions/ubuntu-12.10-i386/update.sh create mode 120000 definitions/ubuntu-12.10-i386/vagrant.sh create mode 120000 definitions/ubuntu-12.10/chef-client.sh create mode 120000 definitions/ubuntu-12.10/cleanup.sh create mode 100644 definitions/ubuntu-12.10/definition.rb create mode 120000 definitions/ubuntu-12.10/minimize.sh create mode 120000 definitions/ubuntu-12.10/networking.sh create mode 120000 definitions/ubuntu-12.10/preseed.cfg create mode 100644 definitions/ubuntu-12.10/sudoers.sh create mode 120000 definitions/ubuntu-12.10/update.sh create mode 120000 definitions/ubuntu-12.10/vagrant.sh diff --git a/definitions/ubuntu-12.10-i386/chef-client.sh b/definitions/ubuntu-12.10-i386/chef-client.sh new file mode 120000 index 000000000..635081810 --- /dev/null +++ b/definitions/ubuntu-12.10-i386/chef-client.sh @@ -0,0 +1 @@ +../.common/chef-client.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/cleanup.sh b/definitions/ubuntu-12.10-i386/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-12.10-i386/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/definition.rb b/definitions/ubuntu-12.10-i386/definition.rb new file mode 100644 index 000000000..2241e89c5 --- /dev/null +++ b/definitions/ubuntu-12.10-i386/definition.rb @@ -0,0 +1,11 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-12.10-server-i386.iso" + +session = + UBUNTU_SESSION.merge( :os_type_id => 'Ubuntu', + :iso_file => iso, + :iso_md5 => "b3d4d4edfc8f291af0b83f8a2ba19a2f", + :iso_src => "http://releases.ubuntu.com/12.10/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-12.10-i386/minimize.sh b/definitions/ubuntu-12.10-i386/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-12.10-i386/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/networking.sh b/definitions/ubuntu-12.10-i386/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-12.10-i386/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/preseed.cfg b/definitions/ubuntu-12.10-i386/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-12.10-i386/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/sudoers.sh b/definitions/ubuntu-12.10-i386/sudoers.sh new file mode 100644 index 000000000..5fce3dd2c --- /dev/null +++ b/definitions/ubuntu-12.10-i386/sudoers.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers +sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers diff --git a/definitions/ubuntu-12.10-i386/update.sh b/definitions/ubuntu-12.10-i386/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-12.10-i386/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10-i386/vagrant.sh b/definitions/ubuntu-12.10-i386/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-12.10-i386/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/chef-client.sh b/definitions/ubuntu-12.10/chef-client.sh new file mode 120000 index 000000000..635081810 --- /dev/null +++ b/definitions/ubuntu-12.10/chef-client.sh @@ -0,0 +1 @@ +../.common/chef-client.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/cleanup.sh b/definitions/ubuntu-12.10/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-12.10/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/definition.rb b/definitions/ubuntu-12.10/definition.rb new file mode 100644 index 000000000..c5a31277d --- /dev/null +++ b/definitions/ubuntu-12.10/definition.rb @@ -0,0 +1,11 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-12.10-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :os_type_id => 'Ubuntu', + :iso_file => iso, + :iso_md5 => "4bd3270bde86d7e4e017e3847a4af485", + :iso_src => "http://releases.ubuntu.com/12.10/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-12.10/minimize.sh b/definitions/ubuntu-12.10/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-12.10/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/networking.sh b/definitions/ubuntu-12.10/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-12.10/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/preseed.cfg b/definitions/ubuntu-12.10/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-12.10/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-12.10/sudoers.sh b/definitions/ubuntu-12.10/sudoers.sh new file mode 100644 index 000000000..5fce3dd2c --- /dev/null +++ b/definitions/ubuntu-12.10/sudoers.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers +sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers diff --git a/definitions/ubuntu-12.10/update.sh b/definitions/ubuntu-12.10/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-12.10/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.10/vagrant.sh b/definitions/ubuntu-12.10/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-12.10/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file