Add rattail.deploy_machine_conf()
for basic machine-wide rattail.conf
This commit is contained in:
parent
faefb60cd6
commit
c0eed0e969
2 changed files with 109 additions and 0 deletions
|
@ -56,6 +56,15 @@ def bootstrap_rattail(c, home='/var/lib/rattail', uid=None, shell='/bin/bash'):
|
|||
deploy(c, 'filemon', '/srv/rattail/init/filemon', use_sudo=True)
|
||||
|
||||
|
||||
def deploy_machine_conf(c, timezone='America/Chicago'):
|
||||
"""
|
||||
Deploy the standard machine-wide ``rattail.conf`` file.
|
||||
"""
|
||||
mkdir(c, '/etc/rattail', use_sudo=True)
|
||||
deploy(c, 'rattail/rattail.conf.mako', '/etc/rattail/rattail.conf', use_sudo=True,
|
||||
context={'timezone': timezone})
|
||||
|
||||
|
||||
def delete_email_recipients(c, dbname):
|
||||
"""
|
||||
Purge all email recipient settings for the given database.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue