~cjwatson/charms/trusty/logstash-forwarder/fix-logrotate-perms

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: laurent.sesques at canonical
  • Date: 2018-04-26 13:57:27 UTC
  • mfrom: (22.1.3 tunable-spool-size)
  • Revision ID: laurent.sesques@canonical.com-20180426135727-stnbxuvd1gqfuf72
Make spool-size a tunable parameter

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
def writeEtcDefault():
59
59
    tmplData = {}
60
60
    tmplData["config_file"] = conf.configFile()
 
61
    tmplData["spool_size"] = conf.spoolSize()
61
62
    templateFile = os.path.join(charm_dir(), "templates", "etcdefault.tmpl")
62
63
    t = Template(file=templateFile, searchList=tmplData)
63
64
    with open("/etc/default/logstash-forwarder", "w") as f: