Skip to content
Snippets Groups Projects
Select Git revision
  • 246ad2afe2760f0a470471dc66106e32a90bb689
  • master default protected
2 results

setup.py

Blame
  • pillar.example 5.90 KiB
    # -*- coding: utf-8 -*-
    # vim: ft=yaml
    ---
    # Port to use for the cluster -- can be used to provide a non-standard port
    # NOTE: If already set in the minion config, that value takes priority
    postgres.port: '5432'
    
    postgres:
      # UPSTREAM REPO
      # Set true to configure upstream postgresql.org repository for YUM/APT/ZYPP
      use_upstream_repo: false
      # Version to install from upstream repository (if upstream_repo: true)
      version: '13'
      # Set true to add a file in /etc/profile.d adding the bin dir in $PATH
      # as packages from upstream put them somewhere like /usr/pgsql-10/bin
      add_profile: false
      # If automatic package installation fails, use `fromrepo` to specify the
      # upstream repo to install packages from [#133, #185] (if upstream_repo: true)
      fromrepo: 'jessie-pgdg'
    
      ### MACOS
      # Set to 'postgresapp' OR 'homebrew' for MacOS
      # use_upstream_repo: 'postgresapp'
      # use_upstream_repo: 'homebrew'
    
      # PACKAGE
      # These pillars are typically never required.
      # pkg: 'postgresql'
      # pkg_client: 'postgresql-client'
      # service:
      #   name: 'postgresql'
      #   flags: -w -s -m fast
      #   sysrc: true
      pkgs_extra:
           {%- if grains.os_family not in ('FreeBSD',) %}
        - postgresql-contrib
           {%- endif %}
        - postgresql-plpython
    
      # CLUSTER
      # The default `encoding` is derived from the `locale` so not recommended
      # to provide a value for it unless necessary
      cluster:
        locale: en_US.UTF-8
        # encoding: UTF8
    
      # 'Alternatives system' priority incremental. 0 disables feature.
      linux:
        altpriority: 30
    
      # macos limits
      limits:
        soft: 64000
        hard: 128000
    
      # POSTGRES
      # Append the lines under this item to your postgresql.conf file.
      # Pay attention to indent exactly with 4 spaces for all lines.
      postgresconf: |-
        listen_addresses = '*'  # listen on all interfaces
    
      # Path to the `pg_hba.conf` file Jinja template on Salt Fileserver
      pg_hba.conf: salt://postgres/templates/pg_hba.conf.j2
    
      # This section covers ACL management in the ``pg_hba.conf`` file.
      # acls list controls: which hosts are allowed to connect, how clients
      # are authenticated, which PostgreSQL user names they can use, which
      # databases they can access. Records take one of these forms:
      #
      # acls: