Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Feb 18, 2017
1 parent 7ac0b04 commit c50510e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Makefile.global
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ global: colour pkgs rootpw rsyslog sshkey tz

colour:
ifneq ($(strip $(COLOUR)),)
dab exec echo "export PS1='\[\033[36m\]\h\[\033[32m\] \w\[\033[00m\]:'" >> ~/.bashrc
dab exec echo "alias ls=\"ls -lh --color\"" >> ~/.bashrc
echo "export PS1='\[\033[36m\]\h\[\033[32m\] \w\[\033[00m\]:'" >> $(BASEDIR)/etc/environment
echo "alias ls=\"ls -lh --color\"" >> $(BASEDIR)/etc/environment
endif

pkgs:
Expand All @@ -44,7 +44,7 @@ sshkey:
ifneq ($(strip $(SSH_KEY)),)
mkdir -p $(BASEDIR)/root/.ssh
echo $(SSH_KEY) >> $(BASEDIR)/root/.ssh/authorized_keys.tmp
cat $(BASEDIR)/root/.ssh/authorized_keys.tmp | sed s/^ //g | sed s/^\$//g > $(BASEDIR)/root/.ssh/authorized_keys
cat $(BASEDIR)/root/.ssh/authorized_keys.tmp | sed 's/^ //g' | sed 's/^$$//g' > $(BASEDIR)/root/.ssh/authorized_keys
rm -f $(BASEDIR)/root/.ssh/authorized_keys.tmp
endif

Expand Down
33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ These templates are installed on a Proxmox PVE host. It is also possible to inst

### Install pre-requisites

On an existing Proxmox host:
```
apt-get install dab git
```

On a non-Proxmox Wheezy host:
```
wget http://download.proxmox.com/debian/dists/wheezy/pvetest/binary-amd64/dab_1.2-7_all.deb
dpkg -i dab_1.2-7_all.deb
```

### Clone GIT repository

```
Expand All @@ -19,20 +26,26 @@ git clone https://github.com/ngardiner82/dab_templates.git

## Create a Template

Generate the template
Customize the Makefile.global file to suit your site

Generate the template image for any of the templates
```
cd dab_templates/jessie_minimal/
make
```

Move the template to the Proxmox container templates directory
```
mv debian-8.0-debian-8.2-minimal_8.2-1_amd64.tar.gz debian-8.2-minimal_8.2-1_amd64.tar.gz
mv debian-8.2-minimal_8.2-1_amd64.tar.gz /var/lib/vz/template/cache/
mv debian-8.0-minimal_8.5-1_amd64.tar.gz /var/lib/vz/template/cache/
```

Clean up the build data
```
make clean
```

## What is DAB?
DAB is the <a href="https://pve.proxmox.com/wiki/Debian_Appliance_Builder">Debian Appliance Builder</a> developed by the Proxmox PVE project to make the creation of Appliance Containers easier.
DAB is the <a href="https://pve.proxmox.com/wiki/Debian_Appliance_Builder">Debian Appliance Builder</a> developed by the <a href="http://www.proxmox.com">Proxmox PVE</a> project to make the creation of Appliance Containers easier.

The purpose of these templates are to add some template-time customizations to the Ubuntu templates so that they can be used as a base to automate the deployment of horizonally-scalable containers for data centre pod deployments on Proxmox VE.

Expand All @@ -53,8 +66,10 @@ In addition to the installation of packages and configuration files, the Makefil
Packages downloaded will be cached in the cache directory at the root of the repository. This will make subsequent DAB builds much faster.

## Templates
| *Template* | Distro | Description |
|---------------|---------------|-----------------------------|
| ansible | Ubuntu Xenial | Ansible automation platform |
| homeassistant | Ubuntu Xenial | Home Automation System |
| nginx_rproxy | Ubuntu Xenial | nginx Reverse Proxy |
| *Template* | *Distro* | *Description* |
|-----------------|---------------|---------------------------------------------|
| ansible | Ubuntu Xenial | Ansible automation platform |
| homeassistant | Ubuntu Xenial | Home Automation System |
| jessie_minimal | Debian Jessie | Minimal Debian Jessie Installation |
| jessie_standard | Debian Jessie | Standard Debian Jessie Installation |
| nginx_rproxy | Ubuntu Xenial | nginx Reverse Proxy (for use as a DMZ host) |

0 comments on commit c50510e

Please sign in to comment.