Skip to content
Browse files

Add fabfile

  • Loading branch information...
1 parent 446ab28 commit 7a47b550e90622bcadcae11477fc46680c571830 @derf derf committed Apr 6, 2011
Showing with 17 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +16 −0 fabfile.py
View
1 .gitignore
@@ -2,3 +2,4 @@
/debian/chaosdorf-admin-toolkit
/debian/chaosdorf-admin-toolkit.substvars
/debian/chaosdorf-admin-toolkit.debhelper.log
+/fabfile.pyc
View
16 fabfile.py
@@ -0,0 +1,16 @@
+from fabric.api import *
+
+env.hosts = [
+ 'root@chaosdorf.dyndns.org',
+ 'root@backend.chaosdorf.de',
+ 'root@frontend.chaosdorf.de',
+ 'root@shells.chaosdorf.de',
+ 'root@vm.chaosdorf.de',
+]
+
+def deploy(file):
+ put("../%s" % file, '/tmp/')
+ run('etckeeper pre-install')
+ run("dpkg --install /tmp/%s" % file)
+ run('etckeeper post-install')
+ run("rm /tmp/%s" % file)

0 comments on commit 7a47b55

Please sign in to comment.
Something went wrong with that request. Please try again.