Puppet Class: galaxy_roles_profiles::profile::pgsql

Defined in:
manifests/profile/pgsql.pp

Overview

Class: galaxy_roles_profiles::profile::pgsql

This class install postgresql. It creates a postgresql database And upgrade the galaxy’s database.

Parameters

galaxy_roles_profiles::profile::pgsql::db_user

Username to connect to database with. It is recommend you create a separate user for galaxy. We recommend use of the puppetlabs database modules to manage database users.

galaxy_roles_profiles::profile::pgsql::db_pass

Password to connect to database with.

galaxy_roles_profiles::profile::pgsql::db_name

Name of the database (schema in postgres).

Authors

  1. Bridel <sbridel@versailles.inra.fr>

  2. Inizan <oinizan@versailles.inra.fr>

Eric Rasche <rasche.eric@yandex.ru>

Copyright 2014, unless otherwise noted.

Parameters:

  • db_name (Any) (defaults to: undef)
  • db_user (Any) (defaults to: undef)
  • db_pass (Any) (defaults to: undef)


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'manifests/profile/pgsql.pp', line 27

class galaxy_roles_profiles::profile::pgsql(
  $db_name = undef,
  $db_user = undef,
  $db_pass = undef,
){
  if !($db_name or $db_user or $db_pass ){
    fail ('$db_user , $db_name or $db_pass is unset.If you want to use PostgreSQL, please ensure that these variables are correctly set.
    Be sure these are the same in the database URL for Galaxy.')
  }
  $app_directory = $galaxy::params::app_directory
  class { 'postgresql::server':
  }->
  postgresql::server::db { $db_name :
    user     => $db_user ,
    password => postgresql_password( $db_user, $db_pass ),
  }->
  class { 'galaxy::create_db':
  }
}