From 3d020660283e01b7549a210c871ffc2652828774 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Mar 2013 21:38:17 +0100 Subject: [PATCH] new: adding some charms --- precise/base-0k/hooks/install | 71 ++++++++++++++++++++++++++++- precise/ca/hooks/install | 31 +++++++++++++ precise/ca/hooks/start | 3 ++ precise/ca/hooks/stop | 3 ++ precise/ca/metadata.yaml | 7 +++ precise/ca/revision | 1 + precise/dns/hooks/install | 77 ++++++++++++++++++++++++++++++++ precise/dns/hooks/start | 7 +++ precise/dns/hooks/stop | 3 ++ precise/dns/metadata.yaml | 6 +++ precise/dns/revision | 1 + precise/ldap/hooks/install | 76 +++++++++++++++++++++++++++++++ precise/ldap/hooks/start | 3 ++ precise/ldap/hooks/stop | 3 ++ precise/ldap/metadata.yaml | 7 +++ precise/ldap/revision | 1 + precise/mail/hooks/install | 48 ++++++++++++++++++++ precise/mail/hooks/start | 3 ++ precise/mail/hooks/stop | 3 ++ precise/mail/metadata.yaml | 10 +++++ precise/mail/revision | 1 + precise/minecraft/hooks/install | 2 + precise/mirror/hooks/install | 37 +++++++++++++++ precise/mirror/hooks/start | 3 ++ precise/mirror/hooks/stop | 3 ++ precise/mirror/metadata.yaml | 7 +++ precise/mirror/revision | 1 + precise/mirror/shorewall | 2 + precise/squid/hooks/install | 15 +++++++ precise/squid/hooks/start | 7 +++ precise/squid/hooks/stop | 3 ++ precise/squid/metadata.yaml | 6 +++ precise/squid/revision | 1 + precise/vpn/hooks/install | 14 ++++++ precise/vpn/hooks/start | 7 +++ precise/vpn/hooks/stop | 3 ++ precise/vpn/metadata.yaml | 6 +++ precise/vpn/revision | 1 + precise/www/hooks/.install.swp | Bin 0 -> 12288 bytes precise/www/hooks/install | 36 +++++++++++++++ precise/www/hooks/start | 7 +++ precise/www/hooks/stop | 3 ++ precise/www/metadata.yaml | 6 +++ precise/www/revision | 1 + 44 files changed, 534 insertions(+), 2 deletions(-) create mode 100755 precise/ca/hooks/install create mode 100755 precise/ca/hooks/start create mode 100755 precise/ca/hooks/stop create mode 100644 precise/ca/metadata.yaml create mode 100644 precise/ca/revision create mode 100755 precise/dns/hooks/install create mode 100755 precise/dns/hooks/start create mode 100755 precise/dns/hooks/stop create mode 100644 precise/dns/metadata.yaml create mode 100644 precise/dns/revision create mode 100755 precise/ldap/hooks/install create mode 100755 precise/ldap/hooks/start create mode 100755 precise/ldap/hooks/stop create mode 100644 precise/ldap/metadata.yaml create mode 100644 precise/ldap/revision create mode 100755 precise/mail/hooks/install create mode 100755 precise/mail/hooks/start create mode 100755 precise/mail/hooks/stop create mode 100644 precise/mail/metadata.yaml create mode 100644 precise/mail/revision create mode 100755 precise/mirror/hooks/install create mode 100755 precise/mirror/hooks/start create mode 100755 precise/mirror/hooks/stop create mode 100644 precise/mirror/metadata.yaml create mode 100644 precise/mirror/revision create mode 100644 precise/mirror/shorewall create mode 100755 precise/squid/hooks/install create mode 100755 precise/squid/hooks/start create mode 100755 precise/squid/hooks/stop create mode 100644 precise/squid/metadata.yaml create mode 100644 precise/squid/revision create mode 100755 precise/vpn/hooks/install create mode 100755 precise/vpn/hooks/start create mode 100755 precise/vpn/hooks/stop create mode 100644 precise/vpn/metadata.yaml create mode 100644 precise/vpn/revision create mode 100644 precise/www/hooks/.install.swp create mode 100755 precise/www/hooks/install create mode 100755 precise/www/hooks/start create mode 100755 precise/www/hooks/stop create mode 100644 precise/www/metadata.yaml create mode 100644 precise/www/revision diff --git a/precise/base-0k/hooks/install b/precise/base-0k/hooks/install index f98524a..235d262 100755 --- a/precise/base-0k/hooks/install +++ b/precise/base-0k/hooks/install @@ -2,9 +2,76 @@ set -eux # -x for verbose logging to juju debug-log +apt-get update +apt-get -y install bash-completion wget bzip2 git-core less language-pack-en python-software-properties tmux sudo git +apt-get -y install mountall ## nasty nfs bug corrected -apt-get -y install syslog-ng bash-completion wget bzip2 git-core less language-pack-en python-software-properties tmux sudo +## +## Allows to mount nfs shares +## -juju-log "Finished Successfully installed base !" +apt-get -y install nfs-common + +## +## etckeeper +## + +apt-get install etckeeper + +sed -i 's/#VCS="git"/VCS="git"/g' /etc/etckeeper/etckeeper.conf +sed -i 's/VCS="bzr"/#VCS="bzr"/g' /etc/etckeeper/etckeeper.conf + +etckeeper init + + +## +## Git utilities +## + +echo "[alias] + co = checkout + com = commit + st = status + ci = commit +" >> /etc/gitconfig + + +## +## Git utilities +## + +echo "[alias] + co = checkout + com = commit + st = status + ci = commit + +[color] + branch = auto + diff = auto + interactive = auto + status = auto + +" >> /etc/gitconfig + + + +## +## ldap client +## + + + + +## +## kal-scripts +## + +cat <> /etc/apt/sources.list + +## vlab's shell libraries +deb http://deb.kalysto.org no-dist kal-alpha kal-beta kal-main + +EOF diff --git a/precise/ca/hooks/install b/precise/ca/hooks/install new file mode 100755 index 0000000..3936ef2 --- /dev/null +++ b/precise/ca/hooks/install @@ -0,0 +1,31 @@ +#!/bin/bash + +set -eux # -x for verbose logging to juju debug-log + + +apt-get install -y kal-manage expect ## this is for ``mkcrt`` + + +mkdir -p /etc/ssl/ca +chmod 700 /etc/ssl/ca + + +## edit SSL: +#edition des champs par défaut : dont la date de validité par défaut +#de 5 ans. +#-> $dir = /etc/ssl/ca (2 chgt !!) + + +## And edit: /usr/lib/ssl/misc/CA.pl (CATOP variable) + +## Then, automatise with expect: + +# /usr/lib/ssl/misc/CA.pl -newca + +mkdir -p /etc/ssl/keys +chmod 700 /etc/ssl/keys -R + + +cd /etc/ssl/ +openssl dhparam -out dh1024.pem 1024 + diff --git a/precise/ca/hooks/start b/precise/ca/hooks/start new file mode 100755 index 0000000..9eb7853 --- /dev/null +++ b/precise/ca/hooks/start @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to Start for base." diff --git a/precise/ca/hooks/stop b/precise/ca/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/ca/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/ca/metadata.yaml b/precise/ca/metadata.yaml new file mode 100644 index 0000000..cd8fc9a --- /dev/null +++ b/precise/ca/metadata.yaml @@ -0,0 +1,7 @@ +name: ca +summary: "Certification Authority" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + Certification Autority +data-dir: /etc/ssl diff --git a/precise/ca/revision b/precise/ca/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/ca/revision @@ -0,0 +1 @@ +0 diff --git a/precise/dns/hooks/install b/precise/dns/hooks/install new file mode 100755 index 0000000..d2e529d --- /dev/null +++ b/precise/dns/hooks/install @@ -0,0 +1,77 @@ +#!/bin/bash + +set -eux + + +apt-get -y install bind9 logrotate + + +## copy configuration + + +## +## Logs +## + +## set log in /etc/bind/named.conf.options + +cat <> /etc/bind/named.conf.options + +logging { + channel warning + { + file "/var/log/named/dns.warnings.log"; + severity warning; + print-category yes; + print-severity yes; + print-time yes; + }; + + channel general_dns + { + file "/var/log/named/dns.log"; + severity info; + print-category yes; + print-severity yes; + print-time yes; + }; + + category default { warning; } ; + category queries { general_dns; } ; +}; + +EOF + +## set up logrotate + +cat <> /etc/logrotate.d/named + +# logrotate.d example configuration for dns in user log config, +# contributed by Lab Valentin based on Dag Wieers distcc logrotate.d example. + +# The "copytruncate" option means fetchmail can keep appending to the +# same filehandle. You would otherwise need to make sure fetchmail is not +# running. + +/var/log/named/*.log { + missingok + copytruncate + notifempty + compress +} + +EOF + +mkdir -p /var/log/named +chown bind:bind /var/log/named + +## +## BEWARE of recursion (recursion allow your server to answer queries in which he is NOT SOA +## + + + +# allow-recursion yes; +# allow-recursion { 127.0.0.1; 172.128/16; 37.59.9.161;}; +# allow-recursion-on { any;}; + diff --git a/precise/dns/hooks/start b/precise/dns/hooks/start new file mode 100755 index 0000000..88e357a --- /dev/null +++ b/precise/dns/hooks/start @@ -0,0 +1,7 @@ +#!/bin/bash + +## XXX: will need to add route: + +route add -net VPN_NET gw LXC_NAME + +juju-log "Nothing to Start for base." diff --git a/precise/dns/hooks/stop b/precise/dns/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/dns/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/dns/metadata.yaml b/precise/dns/metadata.yaml new file mode 100644 index 0000000..53c62be --- /dev/null +++ b/precise/dns/metadata.yaml @@ -0,0 +1,6 @@ +name: dns +summary: "BIND v9 Domain Name Server" +maintainer: "Valentin Lab " +inherit: base +description: | + Installs a Domain Name Server. diff --git a/precise/dns/revision b/precise/dns/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/dns/revision @@ -0,0 +1 @@ +0 diff --git a/precise/ldap/hooks/install b/precise/ldap/hooks/install new file mode 100755 index 0000000..3b85651 --- /dev/null +++ b/precise/ldap/hooks/install @@ -0,0 +1,76 @@ +#!/bin/bash + +set -eux # -x for verbose logging to juju debug-log + + +## XXXvlab: this is interactive : requires a password ! +apt-get install -y slapd + +## XXXvlab: this is a client package, and could maybe be removed from here. +apt-get install -y ldap-utils + + +## Install a database + +rootsuffix="dc=example,dc=com" +rootdn="cn=admin,$rootsuffix" +rootpw="secret" + +cat < /tmp/database.ldif + +## XXXvlab: already loaded +## Load dynamic backend modules +#dn: cn=module,cn=config +#objectClass: olcModuleList +#cn: module +#olcModulepath: /usr/lib/ldap +#olcModuleload: back_hdb + +## Database settings +dn: olcDatabase=hdb,cn=config +objectClass: olcDatabaseConfig +objectClass: olcHdbConfig +olcDatabase: {1}hdb +olcSuffix: $rootsuffix +olcDbDirectory: /var/lib/ldap +olcRootDN: $rootdn +olcRootPW: $rootpw +olcDbConfig: set_cachesize 0 2097152 0 +olcDbConfig: set_lk_max_objects 1500 +olcDbConfig: set_lk_max_locks 1500 +olcDbConfig: set_lk_max_lockers 1500 +olcDbIndex: objectClass eq +olcLastMod: TRUE +olcDbCheckpoint: 512 30 +olcAccess: to attrs=userPassword by dn="$rootdn" write by anonymous auth by self write by * none +olcAccess: to attrs=shadowLastChange by self write by * read +olcAccess: to dn.base="" by * read +olcAccess: to * by dn="$rootdn" write by * read + + +EOF + +ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/database.ldif + +rm /tmp/database.ldif + + +## MMC schema + +echo " +## Mandriva Directory Server +deb http://mds.mandriva.org/pub/mds/debian squeeze main +" >> /etc/apt/sources.list +apt-get update +apt-get install -y mmc-agent + +mmc-add-schema /usr/share/doc/python-mmc-base/contrib/ldap/mmc.schema /etc/ldap/schema/ +mmc-add-schema /usr/share/doc/python-mmc-base/contrib/ldap/mail.schema /etc/ldap/schema/ + +## Change password +## + +#python -c 'print($LDAP_PASSWORD).encode("base64")' + +# to put in /etc/mmc/plugins/base.ini + diff --git a/precise/ldap/hooks/start b/precise/ldap/hooks/start new file mode 100755 index 0000000..9eb7853 --- /dev/null +++ b/precise/ldap/hooks/start @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to Start for base." diff --git a/precise/ldap/hooks/stop b/precise/ldap/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/ldap/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/ldap/metadata.yaml b/precise/ldap/metadata.yaml new file mode 100644 index 0000000..234b2a1 --- /dev/null +++ b/precise/ldap/metadata.yaml @@ -0,0 +1,7 @@ +name: ca +summary: "OpenLDAP" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + OpenLDAP +data-dir: /etc/ssl diff --git a/precise/ldap/revision b/precise/ldap/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/ldap/revision @@ -0,0 +1 @@ +0 diff --git a/precise/mail/hooks/install b/precise/mail/hooks/install new file mode 100755 index 0000000..1703a3a --- /dev/null +++ b/precise/mail/hooks/install @@ -0,0 +1,48 @@ +#!/bin/bash + +set -eux # -x for verbose logging to juju debug-log + + +## XXXvlab: warning: had some dialog box poping out for postfix configuration despite the "-y" when testing this by hand +apt-get install -y postfix dovecot-sieve dovecot-postfix dovecot-imapd amavisd spamassassin fetchmail +apt-get install -y postfix-ldap dovecot-ldap + + +## SASL + +apt-get install sasl2-bin +# edit /etc/saslauth + +## SASL auth (if SASL authentication failure: cannot connect to saslauthd server: Permission denied) + +adduser postfix sasl + + + + +## clamav +apt-get install -y clamav-daemon +adduser clamav amavis + + + +## Add NFS server + +#cat <> /etc/fstab +# +### https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1041377 +## bootwait : forces the rest of the boot to wait this filesystem +## timeo : retest after this timeout +#172.128.0.1:/home /home nfs timeo=14,intr,bootwait,auto 0 0 +# +#EOF + + +## fail2ban (DONT INSTALL ON LXC UNTIL IT SUPPORT IPTABLES) + +#apt-get install -y fail2ban +# change ignoreip in /etc/fail2ban/jail.conf +# change mail +# disable ssh + + diff --git a/precise/mail/hooks/start b/precise/mail/hooks/start new file mode 100755 index 0000000..9eb7853 --- /dev/null +++ b/precise/mail/hooks/start @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to Start for base." diff --git a/precise/mail/hooks/stop b/precise/mail/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/mail/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/mail/metadata.yaml b/precise/mail/metadata.yaml new file mode 100644 index 0000000..0875054 --- /dev/null +++ b/precise/mail/metadata.yaml @@ -0,0 +1,10 @@ +name: mail +summary: "Mail Services (STMP, IMAP, fetchmail)" +maintainer: "Valentin Lab " +description: | + Provide SMTP thanks to Postfix, IMAP through dovecot, and fetchmail functionality. + Also includes sieve +inherit: base-0k +requires: + fs: + home diff --git a/precise/mail/revision b/precise/mail/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/mail/revision @@ -0,0 +1 @@ +0 diff --git a/precise/minecraft/hooks/install b/precise/minecraft/hooks/install index 766a3cf..4e95d8a 100755 --- a/precise/minecraft/hooks/install +++ b/precise/minecraft/hooks/install @@ -5,6 +5,8 @@ set -eux # -x for verbose logging to juju debug-log ## Using headless to avoid installing X server ;) apt-get -y install openjdk-7-jre-headless +## For tectonicus +apt-get -y install subversion INSTALL_DIR=/opt/apps/minecraft diff --git a/precise/mirror/hooks/install b/precise/mirror/hooks/install new file mode 100755 index 0000000..eb8f2c5 --- /dev/null +++ b/precise/mirror/hooks/install @@ -0,0 +1,37 @@ +#!/bin/bash + +set -eux # -x for verbose logging to juju debug-log + + +## ``--force-yes`` is required as kal-manage is not signed correctly. +## kal-manage provides the script /usr/lib/kal/dusk/sbin/ssh-cmd-validate +## used to validate any entrant connection to SSH. + +apt-get install -y --force-yes rsync kal-manage + + +mkdir -p /var/mirror +mkdir -p /var/lib/rsync + +groupadd -r rsync +useradd -r rsync -d /var/lib/rsync -g rsync + +chown rsync:rsync /var/lib/rsync + +su -c 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q' - rsync + +## /etc/sudoers +cat <> /etc/sudoers + +## allow rsync to access /var/mirror + +rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRz --delete . /var/mirror/* +rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRze.iLs --delete . /var/mirror/* +rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRze.iLsf --delete . /var/mirror/* +rsync ALL=(root) NOPASSWD: /usr/bin/rsync --server -vlogDtprRze.iLsf --bwlimit=200 --delete . /var/mirror/* + +EOF + + + + diff --git a/precise/mirror/hooks/start b/precise/mirror/hooks/start new file mode 100755 index 0000000..9eb7853 --- /dev/null +++ b/precise/mirror/hooks/start @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to Start for base." diff --git a/precise/mirror/hooks/stop b/precise/mirror/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/mirror/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/mirror/metadata.yaml b/precise/mirror/metadata.yaml new file mode 100644 index 0000000..b4e8100 --- /dev/null +++ b/precise/mirror/metadata.yaml @@ -0,0 +1,7 @@ +name: mirror +summary: "Backup by rsync mirroring" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + Backup by rsync mirroring +data-dir: /var/mirror diff --git a/precise/mirror/revision b/precise/mirror/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/mirror/revision @@ -0,0 +1 @@ +0 diff --git a/precise/mirror/shorewall b/precise/mirror/shorewall new file mode 100644 index 0000000..b241ae5 --- /dev/null +++ b/precise/mirror/shorewall @@ -0,0 +1,2 @@ +DNAT net lan:%%NAME%%:22 udp 10022 + diff --git a/precise/squid/hooks/install b/precise/squid/hooks/install new file mode 100755 index 0000000..8b0230e --- /dev/null +++ b/precise/squid/hooks/install @@ -0,0 +1,15 @@ +#!/bin/bash + +set -eux + + +## This is needed to enable https_port +#apt-get install devscripts build-essential +#apt-get install libssl-dev ## not in build-dep ... because we'll add it. +#apt-get source squid3 +#apt-get build-dep squid3 +#cd squid3-3.1.19 +#vim debian/rules # or whatever editor you use +# add --enable-ssl +#debuild -us -uc + diff --git a/precise/squid/hooks/start b/precise/squid/hooks/start new file mode 100755 index 0000000..88e357a --- /dev/null +++ b/precise/squid/hooks/start @@ -0,0 +1,7 @@ +#!/bin/bash + +## XXX: will need to add route: + +route add -net VPN_NET gw LXC_NAME + +juju-log "Nothing to Start for base." diff --git a/precise/squid/hooks/stop b/precise/squid/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/squid/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/squid/metadata.yaml b/precise/squid/metadata.yaml new file mode 100644 index 0000000..69232bb --- /dev/null +++ b/precise/squid/metadata.yaml @@ -0,0 +1,6 @@ +name: squid +summary: "HTTP/HTTPS proxy" +maintainer: "Valentin Lab " +inherit: base +description: | + Installs a HTTP/HTTPS proxy. diff --git a/precise/squid/revision b/precise/squid/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/squid/revision @@ -0,0 +1 @@ +0 diff --git a/precise/vpn/hooks/install b/precise/vpn/hooks/install new file mode 100755 index 0000000..3ebb8f4 --- /dev/null +++ b/precise/vpn/hooks/install @@ -0,0 +1,14 @@ +#!/bin/bash + +set -eux + + +apt-get -y install openvpn + +mkdir -p /etc/openvpn/clients.d /var/lib/openvpn /var/log/openvpn + + +mkdir /dev/net +mknod -m a+rw /dev/net/tun c 10 200 + + diff --git a/precise/vpn/hooks/start b/precise/vpn/hooks/start new file mode 100755 index 0000000..88e357a --- /dev/null +++ b/precise/vpn/hooks/start @@ -0,0 +1,7 @@ +#!/bin/bash + +## XXX: will need to add route: + +route add -net VPN_NET gw LXC_NAME + +juju-log "Nothing to Start for base." diff --git a/precise/vpn/hooks/stop b/precise/vpn/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/vpn/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/vpn/metadata.yaml b/precise/vpn/metadata.yaml new file mode 100644 index 0000000..579ffa6 --- /dev/null +++ b/precise/vpn/metadata.yaml @@ -0,0 +1,6 @@ +name: vpn +summary: "OpenVPN" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + Installs a VPN master server. diff --git a/precise/vpn/revision b/precise/vpn/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/vpn/revision @@ -0,0 +1 @@ +0 diff --git a/precise/www/hooks/.install.swp b/precise/www/hooks/.install.swp new file mode 100644 index 0000000000000000000000000000000000000000..d755afd994b3e01a36b6c454e79cc5588e9a5395 GIT binary patch literal 12288 zcmeI2v2N5b7=T^oJ3zn#xIH%H_<9wB4wQk30T4r3kuULGtU9r4JG~1av6KaP09N2R zkO1)l@DhMPVkk54JI%FFN>Rs?{z%`&v48*m^Ce4k9`^5Czd#%L z10o}2yF*C73&q3# z|FiG^@23da0X_qtfRDg4U>)cJ-%b+p7I*`^23`U$faky?U>mpw5a1`|{sDXeJ^=55 zSHM%?3Gf(r0Ne-e0X1+7xCtx+O>J}N7E4A0XaEhM0W^RH&;S}h1887w4R9G!PMTj; zs*q%`mszB_98f1=%d!iU5HXNtVKSPDt-B*nz1Otz(q+m)(8Q@AsjuWzrqM#rWg}q~ zv$>^L;aaA-p-XZaWa*VDuS_#Jtj38qOLT3GHVZ@O#o4l)Sea_t?w6*!(SK(NDyw6T zKcizW)Jt?pnIBPJdB;6$$(9_JC~A=vs-%2NxMpXzXSzt^7Vp{zlNdMtEowK#UU}`@ zw#XzkC1j80T3I~yfV=%=z?uzgEW_Td?2p9~503iHN;xNWAynKYJ{xBB-u%p@RZ!Yf z+UwDg0rx%(@=)l*f}>Ja)PD2OQLTn;;S8QDvvtT#Nhx$UQ&O#D8CWK_=> /etc/php5/apache2/ + + +#rdfapi-php ? + + + +a2enmod dav_fs ssl userdir rewrite suexec + +/etc/init.d/apache2 restart + diff --git a/precise/www/hooks/start b/precise/www/hooks/start new file mode 100755 index 0000000..88e357a --- /dev/null +++ b/precise/www/hooks/start @@ -0,0 +1,7 @@ +#!/bin/bash + +## XXX: will need to add route: + +route add -net VPN_NET gw LXC_NAME + +juju-log "Nothing to Start for base." diff --git a/precise/www/hooks/stop b/precise/www/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/www/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/www/metadata.yaml b/precise/www/metadata.yaml new file mode 100644 index 0000000..412af85 --- /dev/null +++ b/precise/www/metadata.yaml @@ -0,0 +1,6 @@ +name: www +summary: "Apache" +maintainer: "Valentin Lab " +inherit: base-0k +description: | + Installs a HTTP Apache server. diff --git a/precise/www/revision b/precise/www/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/www/revision @@ -0,0 +1 @@ +0