Browse Source

new: [svn] new charm.

postgres
Valentin Lab 10 years ago
parent
commit
d387957cb9
  1. 26
      precise/svn/hooks/install
  2. 3
      precise/svn/hooks/start
  3. 3
      precise/svn/hooks/stop
  4. 10
      precise/svn/metadata.yaml
  5. 1
      precise/svn/revision
  6. 6
      precise/svn/shorewall
  7. 5
      precise/svn/src/etc/cron.daily/git-bzr-syncs
  8. 1
      precise/svn/src/etc/ssh/lxc_git_access_id_rsa.pub
  9. 13
      precise/svn/src/patch/bzr-fastimport/btree-except.patch

26
precise/svn/hooks/install

@ -0,0 +1,26 @@
#!/bin/bash
set -eux # -x for verbose logging to juju debug-log
apt-get install -y --force-yes kal-shlib-pretty kal-scripts subversion
mkdir -p /var/svn
mkdir -p /opt/apps
cat <<EOF > /etc/cron.d/svnbackup
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
30 3 * * * root ansi_colors=no dayold=3 nbold=5 svndump_to_dir /var/backups
EOF
## to create a subvsersion server:
# svnadmin create /var/svn/xxx
## to load a dump (after creation)
# cat dump.gz | gunzip | svnadmin load /var/svn/xxx

3
precise/svn/hooks/start

@ -0,0 +1,3 @@
#!/bin/bash
juju-log "Nothing to Start for base."

3
precise/svn/hooks/stop

@ -0,0 +1,3 @@
#!/bin/bash
juju-log "Nothing to stop for base."

10
precise/svn/metadata.yaml

@ -0,0 +1,10 @@
name: svn
summary: "SVN server and services"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
inherit: base-0k
description: |
SVN repositories
config-resources:
- /etc/subversion
data-resources:
- /var/backups/svn

1
precise/svn/revision

@ -0,0 +1 @@
1

6
precise/svn/shorewall

@ -0,0 +1,6 @@
DNAT net lan:%%NAME%%:22 tcp 10023
DNAT lan lan:%%NAME%%:22 tcp 10023 - %%HOST_INTERNET_IP%%
DNAT fw lan:%%NAME%%:22 tcp 10023 - %%HOST_INTERNET_IP%%

5
precise/svn/src/etc/cron.daily/git-bzr-syncs

@ -0,0 +1,5 @@
#!/bin/bash
ansi_color=no git-bzr-syncs | logger -t oe-sync

1
precise/svn/src/etc/ssh/lxc_git_access_id_rsa.pub

@ -0,0 +1 @@
../../../../base-0k/src/etc/ssh/lxc_git_access_id_rsa.pub

13
precise/svn/src/patch/bzr-fastimport/btree-except.patch

@ -0,0 +1,13 @@
=== modified file 'revision_store.py'
--- revision_store.py 2012-01-10 08:48:02 +0000
+++ revision_store.py 2013-06-13 13:42:59 +0000
@@ -170,7 +170,7 @@
"""
self.repo = repo
self._graph = None
- self._use_known_graph = True
+ self._use_known_graph = False
self._supports_chks = getattr(repo._format, 'supports_chks', False)
def expects_rich_root(self):
Loading…
Cancel
Save