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
This commit is contained in:
Sean Roberts 2015-06-23 14:15:20 -07:00
parent 7fbd58f476
commit 9b9a58b572
30 changed files with 4 additions and 240 deletions

View File

@ -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.

View File

@ -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

View File

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

View File

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

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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/

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

@ -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/

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

@ -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"