<commit_before>
from kokki import *

env.include_recipe("apache2")

Package("nagios3")
Service("nagios3",
    supports_status = True,
    supports_restart = True,
    supports_reload = True,
    action = "start")

##

File("/etc/nagios3/cgi.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/cgi.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])

if env.system.ec2:
    File("/etc/nagios3/conf.d/host-gateway_nagios3.cfg",
        action = "delete",
        notifies = [("restart", env.resources["Service"]["nagios3"])])

# nagios3 hostgroups

File("/etc/nagios3/conf.d/hostgroups_nagios2.cfg",
    action = "delete",
    notifies = [("restart", env.resources["Service"]["nagios3"])])

File("nagio3-hostgroups",
    path = "/etc/nagios3/conf.d/hostgroups.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/hostgroups.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])


# nagios3 contacts

File("/etc/nagios3/conf.d/contacts_nagios2.cfg",
    action = "delete",
    notifies = [("restart", env.resources["Service"]["nagios3"])])

File("nagio3-contacts",
    path = "/etc/nagios3/conf.d/contacts.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/contacts.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])<commit_msg>Remove default extinfo config for nagios3<commit_after>
from kokki import *

env.include_recipe("apache2")

Package("nagios3")
Service("nagios3",
    supports_status = True,
    supports_restart = True,
    supports_reload = True,
    action = "start")

##

File("/etc/nagios3/cgi.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/cgi.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])

if env.system.ec2:
    File("/etc/nagios3/conf.d/host-gateway_nagios3.cfg",
        action = "delete",
        notifies = [("restart", env.resources["Service"]["nagios3"])])

File("/etc/nagios3/conf.d/extinfo_nagios2.cfg",
    action = "delete",
    notifies = [("restart", env.resources["Service"]["nagios3"])])

# nagios3 hostgroups

File("/etc/nagios3/conf.d/hostgroups_nagios2.cfg",
    action = "delete",
    notifies = [("restart", env.resources["Service"]["nagios3"])])

File("nagio3-hostgroups",
    path = "/etc/nagios3/conf.d/hostgroups.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/hostgroups.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])


# nagios3 contacts

File("/etc/nagios3/conf.d/contacts_nagios2.cfg",
    action = "delete",
    notifies = [("restart", env.resources["Service"]["nagios3"])])

File("nagio3-contacts",
    path = "/etc/nagios3/conf.d/contacts.cfg",
    owner = "root",
    group = "root",
    mode = 0644,
    content = Template("nagios3/contacts.cfg.j2"),
    notifies = [("restart", env.resources["Service"]["nagios3"])])
{'fraction_non_alphanumeric': 0.1958319550115779, 'fraction_numerical': 0.02844856103208733, 'mean_word_length': 3.8617363344051445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1072566', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1167, 'n_words': 168}