Date: Friday, June 1, 2018 @ 14:57:29 Author: shibumi Revision: 336103
pushed cloud-init back to community I will take care of cloud-init. I will need it for official cloud images Added: cloud-init/ cloud-init/repos/ cloud-init/trunk/ cloud-init/trunk/PKGBUILD cloud-init/trunk/archlinux.cloud.cfg cloud-init/trunk/fix-lib.patch ---------------------+ PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++++++ archlinux.cloud.cfg | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ fix-lib.patch | 11 ++++++++++ 3 files changed, 107 insertions(+) Added: cloud-init/trunk/PKGBUILD =================================================================== --- cloud-init/trunk/PKGBUILD (rev 0) +++ cloud-init/trunk/PKGBUILD 2018-06-01 14:57:29 UTC (rev 336103) @@ -0,0 +1,43 @@ +# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org> +# Contributor: kpcyrd <[email protected]> +# Contributor: Jonathan Steel <jsteel at archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> + +pkgname=cloud-init +pkgver=18.2 +pkgrel=2 +pkgdesc="The standard for customising cloud instances" +arch=('any') +url="https://cloud-init.io" +license=('GPL3') +depends=('systemd' 'sudo' 'python2-yaml' 'python2-cheetah' 'python2-prettytable' + 'python2-oauth' 'python2-boto' 'python2-configobj' + 'python2-jsonschema' 'python2-jsonpatch' 'python2-jsonpointer' 'net-tools' + 'python2-requests' 'python2-argparse' 'python2-oauthlib' + 'python2-jinja') +makedepends=('python2' 'python2-setuptools') +backup=('etc/cloud/cloud.cfg' 'etc/cloud/cloud.cfg.d/05_logging.cfg') +source=("https://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz" + fix-lib.patch + archlinux.cloud.cfg) +sha256sums=('0224969ebdae6eadffc5f40823bb206d8b05d99a1b730018535102f38b155249' + '0ace6a9e4156145e5b50bd5fa75d6aeefe8e5c10a63f8d9e0d3c7be4c9b53942' + '109dd4500593c2fb7b2f7bf05eaf1835be8062c4f7b3025a0371184a691950da') + +prepare(){ + cd $pkgname-$pkgver + + patch -Np1 -i ../fix-lib.patch + + find . -name \*.py -exec sed -i '1s/python$/&2/' {} + + sed -i '1s/python$/&2/' tools/read* + sed -e 's:/etc/systemd:/usr/lib/systemd:g' -e 's:\"/lib\":\"/usr/lib\":g' -i setup.py +} + +package() { + cd $pkgname-$pkgver + + python2 ./setup.py install --root="$pkgdir" --init-system systemd + + install -m644 ../archlinux.cloud.cfg "$pkgdir"/etc/cloud/cloud.cfg +} Property changes on: cloud-init/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: cloud-init/trunk/archlinux.cloud.cfg =================================================================== --- cloud-init/trunk/archlinux.cloud.cfg (rev 0) +++ cloud-init/trunk/archlinux.cloud.cfg 2018-06-01 14:57:29 UTC (rev 336103) @@ -0,0 +1,53 @@ +## +### Arch Linux 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 + +ssh_genkeytypes: ['dsa', 'rsa', 'ecdsa', 'ed25519'] + +# 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 + +# root:log matches the rest of the logs on Arch +syslog_fix_perms: root:log + +system_info: + distro: arch + default_user: + name: archlinux + lock_passwd: True + gecos: Archlinux + groups: [adm, audio, floppy, video, wheel] + sudo: ["ALL=(ALL) NOPASSWD:ALL"] + shell: /bin/bash + paths: + cloud_dir: /var/lib/cloud/ + templates_dir: /etc/cloud/templates/ + ssh_svcname: sshd Added: cloud-init/trunk/fix-lib.patch =================================================================== --- cloud-init/trunk/fix-lib.patch (rev 0) +++ cloud-init/trunk/fix-lib.patch 2018-06-01 14:57:29 UTC (rev 336103) @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -151,7 +151,7 @@ INITSYS_TYPES = sorted([f.partition(".")[0] for f in INITSYS_ROOTS.keys()]) + USR = "usr" + ETC = "etc" + USR_LIB_EXEC = "usr/lib" +-LIB = "lib" ++LIB = "usr/lib" + if os.uname()[0] == 'FreeBSD': + USR = "usr/local" + USR_LIB_EXEC = "usr/local/lib"
