Skip to content

Commit

Permalink
Added gestion tools
Browse files Browse the repository at this point in the history
  • Loading branch information
the-glu committed Oct 31, 2013
1 parent d42e457 commit 1139d90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ For all details, check documentation of azimut-gestion !
### owncloud

Can be used to quickly setup an owncloud server. Use `fab owncloud.setup_owncloud` to setup a new server. Sub tasks of the setup can be executed, use `fab --list` to get the full list.

### gestion

Can be used to quickly deploy the azimut-gestion tool. Use `fab gestion.setup` to setup a new server on a fresh proxmox installation. Use `fab gestion.update` to update code from azimut public repositories. Please read the documentation before using this tool :).
5 changes: 4 additions & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
import server

# Import owncloud deployement tools
import owncloud
import owncloud

# Import gestion deployement tools
import gestion
5 changes: 3 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from fabric.api import *
from fabric.contrib.files import upload_template
from fabric.contrib.files import upload_template, append

import time
import config
Expand Down Expand Up @@ -71,7 +71,8 @@ def cron_key_manager():
sudo('touch /tmp/crondump')
with settings(warn_only=True):
sudo('crontab -l > /tmp/crondump')
sudo('echo " 42 * * * * /root/updateKeys.sh" >> /tmp/crondump')

append('/tmp/crondump', '42 * * * * /root/updateKeys.sh', use_sudo=True)
sudo('crontab /tmp/crondump')


Expand Down

0 comments on commit 1139d90

Please sign in to comment.