<commit_before>pg_hba.conf:
    file.managed:
        - name: /etc/postgresql/9.1/main/pg_hba.conf
        - source: salt://postgresql/pg_hba.conf
        - user: postgres
        - group: postgres
        - mode: 644
        - require:
            - pkg: postgresql-9.1

postgresql:
    pkg:
        - name: postgresql-9.1
        - installed
    service.running:
        - enabled: True
        - watch: 
            - file: /etc/postgresql/9.1/main/pg_hba.conf

postgresql-9.1-dbg:
    pkg:
        - name: postgresql-9.1-dbg
        - installed

postgresql-server-dev-9.1:
    pkg:
        - name: postgresql-server-dev-9.1
        - installed


<commit_msg>Manages original package installer config files with all variables provisioned from grain and pillar data.<commit_after>postgresql:
    pkg:
        - name: postgresql-9.1
        - installed
    service.running:
        - enable: True
        - watch: 
            - file: /etc/postgresql/9.1/main/pg_hba.conf

pg_hba.conf:
    file.blockreplace:
        - name: /etc/postgresql/9.1/main/pg_hba.conf
        - marker_start: "# START SaltStack managed zone -DO-NOT-EDIT-"
        - marker_end: "# END SaltStack managed zone --"
        - prepend_if_not_found: True
        - backup: '.bak'
        - show_changes: True

pg_hba.conf-accumulated1:
    file.accumulated:
        - filename: /etc/postgresql/9.1/main/pg_hba.conf
        - name: pg_hba-accum
        - text: "host    {{ pillar['dbname'] }}         {{ pillar['dbuser'] }}         {{ grains['ip_interfaces']['eth0'][0] }}/24\tmd5"
        - require_in:
            - file: pg_hba.conf

postgresql.conf:
    file.blockreplace:
        - name: /etc/postgresql/9.1/main/postgresql.conf
        - marker_start: "# START SaltStack managed zone -DO-NOT-EDIT- -------------------------------"
        - marker_end: "# END SaltStack managed zone -----------------------------------------------"
        - prepend_if_not_found: True
        - backup: '.bak'
        - show_changes: True

postgresql.conf-accumulated1:
    file.accumulated:
        - filename: /etc/postgresql/9.1/main/postgresql.conf
        - name: postgresql-accum
        - text: "listen_addresses='{{ grains['ip_interfaces']['eth0'][0]}}'"
        - require_in:
            - file: postgresql.conf

postgresql-9.1-dbg:
    pkg:
        - name: postgresql-9.1-dbg
        - installed

postgresql-server-dev-9.1:
    pkg:
        - name: postgresql-server-dev-9.1
        - installed


{'fraction_non_alphanumeric': 0.15565464126469397, 'fraction_numerical': 0.019456830158086746, 'mean_word_length': 1.6652267818574513, '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': '2551927', 'n_tokens_mistral': 845, 'n_tokens_neox': 828, 'n_words': 140}