From 2bf54c20cff127eb7afa2850306a8929b10cab7d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 4 Nov 2010 20:34:59 +0000 Subject: - add the config file in svn --- modules/mga-mirrors/manifests/init.pp | 13 ++++++++++++- modules/mga-mirrors/templates/mga-mirrors.ini | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 modules/mga-mirrors/templates/mga-mirrors.ini diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp index 97bdc994..0da8832d 100644 --- a/modules/mga-mirrors/manifests/init.pp +++ b/modules/mga-mirrors/manifests/init.pp @@ -15,5 +15,16 @@ class mga-mirrors { mode => 644, notify => Service['apache'], content => template("mga-mirrors/mirrors_vhost.conf") - } + } + + $password = extlookup("mga_mirror_password") + + file { "mga-mirrors.ini": + path => "/etc/mga-mirrors.ini", + ensure => "present", + owner => apache, + group => apache, + mode => 600, + content => template("mga-mirrors/mga-mirrors.ini") + } } diff --git a/modules/mga-mirrors/templates/mga-mirrors.ini b/modules/mga-mirrors/templates/mga-mirrors.ini new file mode 100644 index 00000000..2c83ce92 --- /dev/null +++ b/modules/mga-mirrors/templates/mga-mirrors.ini @@ -0,0 +1,4 @@ +[db] +pgconn=host=pgsql;dbname=mirrors +user=mirrors +password=<%= password %> -- cgit v1.2.1