dev/modules/sysconfig/manifests/params.pp
author Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
Mon, 29 Dec 2014 18:01:09 +0100
changeset 14 fc63b1a3d2ef
parent 0 54f4e0f9d636
permissions -rw-r--r--
Added support for making multiple changes in a single commit, using the flask dict "session" (keys used are "modified_categories" and "deleted_categories") + Added a view for editing categories that allows the user to see what he has added, deleted or edited + Made it so an unauthenticated user should not generate any Github api request (you have to be logged to see the categories now).

class sysconfig::params {

  $db_name = hiera('sysconfig::params::db_name','catedit')
  $db_user = hiera('sysconfig::params::db_user','catedit_user')
  $db_pw   = hiera('sysconfig::params::db_pw','catedit')
  $db_host = hiera('sysconfig::params::db_host','127.0.0.1')
  $db_port = hiera('sysconfig::params::db_port','5432')

  $db_host_real = $db_host
  $db_is_local = ($db_host_real == undef or !$db_host_real or $db_host_real=='127.0.0.1' or $db_host_real=='localhost')

  $testserver_port = hiera('sysconfig::params::testserver_port','8001')

  $superuser_name   = hiera('sysconfig::params::superuser_name','admin')
  $superuser_pw     = hiera('sysconfig::params::superuser_pw','dev@catedit')
  
  $path_to_virtualenv = hiera('sysconfig::params::path_to_virtualenv', '/home/vagrant/mycateditenv')

}