Sha256: ade2035fc906acbf6ee2f84e8068ff06c9665acdb9d40c1e2c93d9c79a6d9e48

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

class profile::eyeunify::database {
  class { '::postgresql::globals':
    manage_package_repo => true,
    version             => '9.4',
  }

  class { '::postgresql::server':
    listen_addresses => $facts['networking']['ip'],
  }

  postgresql::server::db { 'eyeunify':
    user     => 'eyeunify',
    password => postgresql_password('eyeunify', 'hunter2'),
    require  => Class['::postgresql::server'],
  }

  postgresql::server::pg_hba_rule { 'allow application network to access app database':
    description => 'Open up PostgreSQL for access from app server/s',
    type        => 'host',
    database    => 'eyeunify',
    user        => 'eyeunify',
    address     => "${facts['networking']['network']}/24",
    auth_method => 'md5',
  }

  # Allow through the firewall
  firewall { "100 allow postgres 5432":
    proto  => 'tcp',
    dport  => 5432,
    action => 'accept',
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onceover-4.0.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/database.pp
onceover-3.22.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/eyeunify/database.pp