Changeset a9bbee5 in rattail-fabric2


Ignore:
Timestamp:
11/27/2022 12:47:39 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
1fedc31
Parents:
ebf94fb
Message:

Let caller override config paths for luigi overnight scripts

Location:
rattail_fabric2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rattail_fabric2/deploy/luigi/cron-overnight.sh.mako

    rebf94fb ra9bbee5  
    33cd ${envroot}
    44
    5 RATTAIL="bin/rattail --config=app/cron.conf"
     5export RATTAIL_CONFIG_FILES=${overnight_conf}
    66
    7 $RATTAIL overnight -k ${automation.lower()} <%text>\</%text>
     7bin/rattail overnight -k ${automation.lower()} <%text>\</%text>
    88        --no-versioning <%text>\</%text>
    99        % if email_key is not Undefined and email_key:
  • rattail_fabric2/deploy/luigi/restart-overnight.sh.mako

    rebf94fb ra9bbee5  
    33cd ${envroot}
    44
    5 RATTAIL="bin/rattail --config=app/cron.conf"
     5export RATTAIL_CONFIG_FILES=${overnight_conf}
    66
    7 $RATTAIL overnight -k ${automation.lower()} <%text>\</%text>
     7bin/rattail overnight -k ${automation.lower()} <%text>\</%text>
    88        --no-versioning <%text>\</%text>
    99        % if email_key is not Undefined and email_key:
  • rattail_fabric2/luigi.py

    rebf94fb ra9bbee5  
    7575def install_overnight_script(c, envroot, user='rattail', automation='All',
    7676                             email_key=None,
    77                              luigi=False, cron=True, restart=True):
     77                             luigi=False,
     78                             cron=True, cron_conf='app/cron.conf',
     79                             restart=True, restart_conf='app/silent.conf'):
    7880    """
    7981    Install an overnight automation script
     
    98100                      use_sudo=True, owner=user, mode='0755',
    99101                      context={'envroot': envroot,
     102                               'overnight_conf': cron_conf,
    100103                               'automation': automation,
    101104                               'email_key': email_key})
     
    109112                      context={'envroot': envroot,
    110113                               'appdir': appdir,
     114                               'overnight_conf': restart_conf,
    111115                               'automation': automation,
    112116                               'email_key': email_key})
Note: See TracChangeset for help on using the changeset viewer.