Skip to content

Commit

Permalink
Added make template command
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Feb 18, 2017
1 parent c60a77f commit f6e8e7c
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.veid
cache
keys
testing
4 changes: 2 additions & 2 deletions Makefile.global
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SSH Public Key for root. This can be commented out if not required.
# Multiple entries can be provided. Proxmox will prompt for root password
# or SSH key at template deployment, this setting allows
SSH_KEY +="abcd12345\n"
SSH_KEY +="zxcvbn345\n"
SSH_KEY +="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9Wh7yS/6uq112z+KvbYnQmam2DQrbxeaa/DsU9fBms7eo3yrAQOSj+l1h+XksWMBKTeYQczo08gCLz+5MijUg2VhrGSl4B/dIYHGRm+/yXiaICb5/76u6+jTr1m5Pk4q2FKPRbb7MOzrUobZr6zNdqg3a56V6oMdedsakEh4P/kupt6CntOM+3gGfk884Pa+1uciUDhaLYRd59EDZUb0uQIx/sKalP9JzM/5/ilQVP0Y3/tzt5DR1zIlV/X2/EYMzN7Ktg3/fd0p07bx7rYrjwpzWmaIfw0F+s2igu1yItCQsAa3S9PAAmY+PwZ+zncZDWpdwVp71/I3082yhjnwl [email protected]\n"
SSH_KEY +="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCaLbPkfm7OFUAujAu5LXL7H6B+71HXo+tLkB5j8De1rd42RHx4tF7lvZFCdwFuKe3KWSPoNIRBfg9qESe/DsYQcKMG2dj0GQNC5qtuhbjBOHU6pV7vNx2LVjvNDgglTVDx/eCPv8mt3fIzBBjI2uV0/MVkUpVc0XmXsyqsbqR/uapYJgvrRN5dq8xUSlG+sg8aq98YZSuWpw6mNQMyIfI7e0YbOFTWNcHwh7TYC8/qV/3dPHb3m1HH9anKd4hJkVs7rQLo+9Id6vl0k362xIUawBqlUliqbb/Y5KJDIJebQbRrWnR4c1BNplMGL1AU4rQAXdslzZ8QozjHfUs5XmMRBpFUtGirCYJ1kip25i3mqlE3mPBYTZEZ53/UYzMaKCA11tBZ3ULMzfX0cU2pkcqtiywlOBiMrlHaH5ulZevfHZbn0KXPaxB2Q7vDIT9SH5eFwqBaGoI+VrQDZFcbYV2F5t/zv5WfVGiuHEb9WSQ1++ZcBsSGHKncLSsk03M14wCt23gKUZOwn3inwR8qegvcCBuzuphmNjXpE0bQQMaU0R0sQtf3qZjlnwS6yxACNZ5RXKvqDzUFF0VEoA1CLLNjL3EnNSrhPXXRNKhsprfM428Jq3LoR9pJjzRa8nksE+0LDIwfjPZXqI9nRCTjV+Gegh350OnqtMC4XQKyZVmCOw== [email protected]\n"

# Add standard packages that you would like by default on all templates
PACKAGES += sudo tcpdump traceroute
Expand Down
4 changes: 4 additions & 0 deletions ansible/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ info/init_ok: dab.conf
dab init
touch $@

.PHONY: template
template:
cp ubuntu-16.04-ansible_16.04-1_amd64.tar.gz /var/lib/vz/template/cache

.PHONY: clean
clean:
dab clean
Expand Down
4 changes: 4 additions & 0 deletions jessie_minimal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ info/init_ok: dab.conf
dab init
touch $@

.PHONY: template
template:
cp debian-8.0-minimal_8.5-1_amd64.tar.gz /var/lib/vz/template/cache

.PHONY: clean
clean:
dab clean
Expand Down
4 changes: 1 addition & 3 deletions jessie_standard/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<<<<<<< HEAD
.veid
=======
>>>>>>> cdeb30b537af4d02d82b35fd997e82cc88bd1f24
config
info
logfile
rootfs
debian-8.0-standard_8.5-1_amd64.tar.gz
4 changes: 4 additions & 0 deletions jessie_standard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ info/init_ok: dab.conf
dab init
touch $@

.PHONY: template
template:
cp debian-8.0-standard_8.5-1_amd64.tar.gz /var/lib/vz/template/cache

.PHONY: clean
clean:
dab clean
Expand Down
4 changes: 2 additions & 2 deletions jessie_standard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

- Built from a standard debootstrap install of Debian Jessie
- Adds any customizations such as root login enabled or SSH keys from ../Makefile.global
- Total uncompressed image size is *0MB*
- Total compressed image size is *0MB*
- Total uncompressed image size is *552 MB*
- Total compressed image size is *193 MB*
6 changes: 6 additions & 0 deletions nginx_rproxy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.veid
config
info
logfile
rootfs
ubuntu-16.04-ansible_16.04-1_amd64.tar.gz
6 changes: 6 additions & 0 deletions zabbix_server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.veid
config
info
logfile
rootfs
ubuntu-16.04-ansible_16.04-1_amd64.tar.gz
36 changes: 36 additions & 0 deletions zabbix_server/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

BASEDIR:=$(shell dab basedir)
PKG=zabbix-server-mysql_3.2.3-1+xenial_amd64.deb
include ../Makefile.global

.PHONY: bootstrap global finalize
all: info/init_ok bootstrap global finalize

bootstrap:
dab bootstrap
dab task mysql --password random
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix/$(PKG) -o $(PKG)
install -m 0600 $(PKG) ${BASEDIR}/tmp
dpkg -i ${BASEDIR}/tmp/$(PKG)
rm -f /tmp/$(PKG)

finalize:
dab finalize

info/init_ok: dab.conf
dab init
touch $@

.PHONY: template
template:
cp ubuntu-16.04-ansible_16.04-1_amd64.tar.gz /var/lib/vz/template/cache

.PHONY: clean
clean:
dab clean
rm -f *~

.PHONY: dist-clean
dist-clean:
dab dist-clean
rm -f *~
14 changes: 14 additions & 0 deletions zabbix_server/dab.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Suite: xenial
CacheDir: ../cache
Source: http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
Source: http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main
Architecture: amd64
Name: zabbix_server
Version: 16.04-1
Section: system
Maintainer: Nathan Gardiner <[email protected]>
Infopage: http://www.zabbix.com
Description: Ansible Environment
Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery

0 comments on commit f6e8e7c

Please sign in to comment.