Date: Friday, May 23, 2014 @ 00:32:58 Author: dwallace Revision: 111737
archrelease: copy trunk to community-any Added: cloud-init/repos/community-any/ cloud-init/repos/community-any/PKGBUILD (from rev 111736, cloud-init/trunk/PKGBUILD) cloud-init/repos/community-any/archlinux.cloud.cfg (from rev 111736, cloud-init/trunk/archlinux.cloud.cfg) ---------------------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ archlinux.cloud.cfg | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) Copied: cloud-init/repos/community-any/PKGBUILD (from rev 111736, cloud-init/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2014-05-22 22:32:58 UTC (rev 111737) @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> + +pkgname=cloud-init +pkgver=0.7.5 +pkgrel=1 +pkgdesc="Cloud Bootstrapping Application" +arch=(any) +license=("GPL3") +url=https://launchpad.net/cloud-init +# cloud-init python lib requirements (according to Requires file): +depends=(systemd python2-yaml python2-cheetah python2-prettytable python2-oauth python2-boto python2-configobj python2-jsonpatch python2-jsonpointer) +makedepends=('python2' 'python2-setuptools') +options=(!emptydirs) +# Archlinux specific cloud.cfg +source=(archlinux.cloud.cfg + https://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz + ) +noextract=(archlinux.cloud.cfg) +sha1sums=('4e32767ac0e18f3b6f34cfb184af17c8a84d563c' + '9f21617451ec45b6997470f5c3974de0896d8d67') +backup=(etc/cloud/cloud.cfg etc/cloud/cloud.cfg.d/05_logging.cfg) + +prepare(){ + find $pkgname-$pkgver -name \*.py -exec sed -i '1s/python$/&2/' {} + + sed -i '1s/python$/&2/' $pkgname-$pkgver/tools/read* +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + python2 ./setup.py install --root=${pkgdir} --init-system systemd + # Use a cloud.cfg crafted for archlinux + mv $pkgdir/etc/cloud/cloud.cfg ${pkgdir}/etc/cloud/cloud.cfg.ubuntu_default + install -Dm644 $srcdir/archlinux.cloud.cfg ${pkgdir}/etc/cloud/cloud.cfg +} Copied: cloud-init/repos/community-any/archlinux.cloud.cfg (from rev 111736, cloud-init/trunk/archlinux.cloud.cfg) =================================================================== --- community-any/archlinux.cloud.cfg (rev 0) +++ community-any/archlinux.cloud.cfg 2014-05-22 22:32:58 UTC (rev 111737) @@ -0,0 +1,40 @@ +## +### Archlinux cloud.cfg - This config enables Archlinux tested/compatible cloud-init modules. +## + +# Not using additional user / sudoers scheme. +disable_root: false +# Allow cloud-init to set the hostname. +preserve_hostname: false +# The modules that run in the 'init' stage. +cloud_init_modules: + - bootcmd + - write-files + - set_hostname + - update_hostname + - update_etc_hosts + - users-groups + - ssh + +# The modules that run in the 'config' stage. +cloud_config_modules: + - runcmd + +# The modules that run in the 'final' stage. +cloud_final_modules: + - rightscale_userdata + - scripts-per-once + - scripts-per-boot + - scripts-per-instance + - scripts-user + - ssh-authkey-fingerprints + - keys-to-console + - final-message + +# Masquerade as ubuntu since that is the default mode. +system_info: + distro: ubuntu + paths: + cloud_dir: /var/lib/cloud/ + templates_dir: /etc/cloud/templates/ + ssh_svcname: sshd