Browse Source

remove stale appliance-builder content

the function of this repo has been moved to
the akanda-appliance repo.

Partially Implements: blueprint liberty-ci-updates

Change-Id: I88782acad59ecff1ae262a76b8bfa896abad4604
changes/25/194825/2
Sean Roberts 7 years ago
parent
commit
9b9a58b572
  1. 5
      README.md
  2. 22
      diskimage-builder/README.md
  3. 3
      diskimage-builder/elements/akanda/README.rst
  4. 3
      diskimage-builder/elements/akanda/element-deps
  5. 1
      diskimage-builder/elements/akanda/environment.d/10-cloudinit-akanda
  6. 9
      diskimage-builder/elements/akanda/install.d/akanda-source-install/70-akanda
  7. 5
      diskimage-builder/elements/akanda/post-install.d/90-fix-locale
  8. 1
      diskimage-builder/elements/akanda/source-repository-akanda
  9. 11
      diskimage-builder/elements/ansible/README.md
  10. 5
      diskimage-builder/elements/ansible/cleanup.d/50-remove-source-ansible
  11. 1
      diskimage-builder/elements/ansible/element-deps
  12. 4
      diskimage-builder/elements/ansible/environment.d/10-ansible-venv-dir.bash
  13. 4
      diskimage-builder/elements/ansible/install.d/ansible-package-install/30-ansible-package
  14. 35
      diskimage-builder/elements/ansible/install.d/ansible-source-install/30-ansible-source
  15. 10
      diskimage-builder/elements/debug-user/README.md
  16. 21
      diskimage-builder/elements/debug-user/install.d/50-debug-user
  17. 3
      diskimage-builder/elements/nginx-plus/README.rst
  18. 2
      diskimage-builder/elements/nginx-plus/element-deps
  19. 19
      diskimage-builder/elements/nginx-plus/pre-install.d/01-nginx-plus
  20. 2
      diskimage-builder/elements/nginx/README.rst
  21. 1
      diskimage-builder/elements/nginx/element-deps
  22. 1
      diskimage-builder/elements/nginx/install.d/package-installs-nginx
  23. 21
      diskimage-builder/elements/pip-and-virtualenv/README.md
  24. 2
      diskimage-builder/elements/pip-and-virtualenv/element-deps
  25. 2
      diskimage-builder/elements/pip-and-virtualenv/install.d/get-pip-py-package-install/package-installs-pip-and-virtualenv
  26. 6
      diskimage-builder/elements/pip-and-virtualenv/install.d/get-pip-py-source-install/01-install-pip
  27. 1
      diskimage-builder/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv
  28. 12
      nocloud/README.md
  29. 2
      nocloud/meta-data
  30. 30
      nocloud/user-data

5
README.md

@ -1 +1,4 @@
This repo contains various methods to build an Akanda appliance.
This repo functionality has been moved to the
akanda-appliance [http://git.openstack.org/cgit/stackforge/akanda-appliance]
repo. We are keeping this repo in place temporarily, to avoid broken
links. After a month, this repo will be removed.

22
diskimage-builder/README.md

@ -1,22 +0,0 @@
This directory contains elements necessary to build the Akanda appliance with
the diskimage-builder from the OpenStack project.
1) Install diskimage-builder via:
pip install diskimage-builder
or source at:
http://git.openstack.org/cgit/openstack/diskimage-builder
2) Ensure a few require packages are installed:
- debootstrap
- qemu-utils
3) Add elements to path
$ export ELEMENTS_PATH=~/akanda-appliance-builder/diskimage-builder/elements
4) Build image
$ DIB_RELEASE=wheezy DIB_EXTLINUX=1 disk-image-create debian vm akanda
5) If you're testing with kvm, don't forget to build the nocloud iso image

3
diskimage-builder/elements/akanda/README.rst

@ -1,3 +0,0 @@
This is the base element for building an Akanda appliance image.
Ansible is required on the local system.

3
diskimage-builder/elements/akanda/element-deps

@ -1,3 +0,0 @@
cloud-init-datasources
source-repositories
ansible

1
diskimage-builder/elements/akanda/environment.d/10-cloudinit-akanda

@ -1 +0,0 @@
export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, NoCloud"

9
diskimage-builder/elements/akanda/install.d/akanda-source-install/70-akanda

@ -1,9 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
APP_SRC_DIR="/tmp/akanda-appliance"
[ -d "${APP_SRC_DIR}" ] || exit 0
ansible-playbook -i "localhost," -c local $APP_SRC_DIR/ansible/main.yml

5
diskimage-builder/elements/akanda/post-install.d/90-fix-locale

@ -1,5 +0,0 @@
#!/bin/bash
# ensure the locale is properly setup
sed -i 's/^# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
locale-gen

1
diskimage-builder/elements/akanda/source-repository-akanda

@ -1 +0,0 @@
akanda git /tmp/akanda-appliance https://github.com/stackforge/akanda-appliance.git

11
diskimage-builder/elements/ansible/README.md

@ -1,11 +0,0 @@
Install Ansible.
Configuration
-------------
At Present there is no configuration for this element.
NOTICE
------
This element is copied from the OpenStack Tripleo project at
http://git.openstack.org/cgit/openstack/tripleo-image-elements/

5
diskimage-builder/elements/ansible/cleanup.d/50-remove-source-ansible

@ -1,5 +0,0 @@
#!/bin/bash
set -eu
sudo rm -fr "${TMP_MOUNT_PATH}/opt/stack/tripleo-ansible"

1
diskimage-builder/elements/ansible/element-deps

@ -1 +0,0 @@
pip-and-virtualenv

4
diskimage-builder/elements/ansible/environment.d/10-ansible-venv-dir.bash

@ -1,4 +0,0 @@
#!/bin/bash
set -ue
export ANSIBLE_VENV_DIR=${ANSIBLE_VENV_DIR:-"/opt/stack/venvs/ansible"}

4
diskimage-builder/elements/ansible/install.d/ansible-package-install/30-ansible-package

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
install-packages ansible

35
diskimage-builder/elements/ansible/install.d/ansible-source-install/30-ansible-source

@ -1,35 +0,0 @@
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
set -eux
set -o pipefail
install-packages build-essential libssl-dev libyaml-dev python-dev libxml2-dev libxslt-dev
virtualenv $ANSIBLE_VENV_DIR
set +u
source $ANSIBLE_VENV_DIR/bin/activate
set -u
$ANSIBLE_VENV_DIR/bin/pip install paramiko PyYAML jinja2 httplib2
$ANSIBLE_VENV_DIR/bin/pip install ansible==1.8.1
ln -s $ANSIBLE_VENV_DIR/bin/ansible /usr/local/bin/ansible
ln -s $ANSIBLE_VENV_DIR/bin/ansible-playbook /usr/local/bin/ansible-playbook

10
diskimage-builder/elements/debug-user/README.md

@ -1,10 +0,0 @@
Creates a sudo privileged user in the appliance VM that can be used for
debugging connectivity issues via the console, when SSH connectivity is
not possible. Note that an 'akanda' user is created by the RUG and setup
to authenticate using a SSH public key. This element should only be included
when building images for develoment environments.
The username and password can be set in the build environment as
$DIB_AKANDA_APPLIANCE_DEBUG_USER and $DIB_AKANDA_APPLIANCE_DEBUG_PASSWORD
The defaults are akanda-debug/akanda.

21
diskimage-builder/elements/debug-user/install.d/50-debug-user

@ -1,21 +0,0 @@
#!/bin/bash
DIB_AKANDA_APPLIANCE_DEBUG_USER=${DIB_AKANDA_APPLIANCE_DEBUG_USER:-akanda-debug}
DIB_AKANDA_APPLIANCE_DEBUG_PASSWORD=${DIB_AKANDA_APPLIANCE_DEBUG_PASSWORD:-akanda}
set -eu
set -o xtrace
useradd -m $DIB_AKANDA_APPLIANCE_DEBUG_USER -s /bin/bash
passwd $DIB_AKANDA_APPLIANCE_DEBUG_USER <<EOF
$DIB_AKANDA_APPLIANCE_DEBUG_PASSWORD
$DIB_AKANDA_APPLIANCE_DEBUG_PASSWORD
EOF
cat > /etc/sudoers.d/akanda-debug-user <<eof
$DIB_AKANDA_APPLIANCE_DEBUG_USER ALL=(ALL) NOPASSWD:ALL
eof
chmod 0440 /etc/sudoers.d/akanda-debug-user
visudo -c

3
diskimage-builder/elements/nginx-plus/README.rst

@ -1,3 +0,0 @@
Before using this element copy your nginx-repo.key and nginx-repo.crt into ./bin

2
diskimage-builder/elements/nginx-plus/element-deps

@ -1,2 +0,0 @@
cloud-init-datasources
source-repositories

19
diskimage-builder/elements/nginx-plus/pre-install.d/01-nginx-plus

@ -1,19 +0,0 @@
#!/bin/bash
# this is an install script for nginx plus
# make nginx ssl dir
mkdir /etc/ssl/nginx
cp $(dirname $0)/../bin/* /etc/ssl/nginx/
wget https://cs.nginx.com/static/files/CA.crt -P /etc/ssl/nginx/
wget http://nginx.org/keys/nginx_signing.key -P /etc/ssl/nginx/
apt-key add nginx_signing.key
printf "deb https://plus-pkgs.nginx.com/debian `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list
wget https://cs.nginx.com/static/files/90nginx -P /etc/apt/apt.conf.d
apt-get update
apt-get install nginx-plus -y

2
diskimage-builder/elements/nginx/README.rst

@ -1,2 +0,0 @@
This element installs the open source nginx package.

1
diskimage-builder/elements/nginx/element-deps

@ -1 +0,0 @@
package-installs

1
diskimage-builder/elements/nginx/install.d/package-installs-nginx

@ -1 +0,0 @@
nginx

21
diskimage-builder/elements/pip-and-virtualenv/README.md vendored

@ -1,21 +0,0 @@
Install latest pip and virtualenv
=================================
We have problems with the latest binary package of pip and virtualenv.
Packaged version of pip can be old and virtualenv can also contain its
own version of pip. Issues include downloading packages from a local
pypi mirror that include a wheel package for pip.
The element follows the instructions from the pip website here:
http://www.pip-installer.org/en/latest/installing.html on how to install
the latest version of pip. That is to download get-pip.py and run this
file.
We use source-repositories element to download the file so it will be
cached and can be overridden to use package if that is required.
NOTICE
------
This element is copied from the OpenStack Tripleo project at
http://git.openstack.org/cgit/openstack/tripleo-image-elements/

2
diskimage-builder/elements/pip-and-virtualenv/element-deps vendored

@ -1,2 +0,0 @@
package-installs
source-repositories

2
diskimage-builder/elements/pip-and-virtualenv/install.d/get-pip-py-package-install/package-installs-pip-and-virtualenv vendored

@ -1,2 +0,0 @@
python-pip
python-virtualenv

6
diskimage-builder/elements/pip-and-virtualenv/install.d/get-pip-py-source-install/01-install-pip vendored

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
python /tmp/get-pip.py
pip install virtualenv

1
diskimage-builder/elements/pip-and-virtualenv/source-repository-pip-and-virtualenv vendored

@ -1 +0,0 @@
get-pip-py file /tmp/get-pip.py https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py

12
nocloud/README.md

@ -1,12 +0,0 @@
The files in this directory help to make test nocloud disk image:
genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
You can test the image in kvm without OpenStack by invoking kvm like this:
kvm -m 1024 -curses -net nic,model=virtio,macaddr=52:54:00:12:34:56 \
-net tap,ifname=tap0 \
-drive file=image.qcow2,if=virtio \
-drive file=seed.iso,if=virtio

2
nocloud/meta-data

@ -1,2 +0,0 @@
instance-id: akanda-test
local-hostname: akanda-linux

30
nocloud/user-data

@ -1,30 +0,0 @@
#cloud-config
cloud_config_modules:
- emit_upstart
- set_hostname
- locale
- set-passwords
- timezone
- disable-ec2-metadata
- runcmd
output: {all: '| tee -a /var/log/cloud-init-output.log'}
debug:
- verbose: true
bootcmd:
- /usr/local/bin/akanda-configure-management 52:54:00:12:34:56 fdca:3ba5:a17a:acda:5054:ff:fe12:3456
users:
- name: akanda
gecos: Akanda
groups: users
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
passwd: $6$rounds=4096$zxaBh6omTayBSA$rI1.FNliuUl7R2SMdkj7zWv.FBhqGVd1lLYDatJd6MiE9WqEQx0M.o7bLyp5nA0CxV6ahoDb0m8Y5OQMDHx1V/
lock-passwd: false
final_message: "Akanda appliance is running"
Loading…
Cancel
Save