aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSaz <me@saz.sh>2011-11-07 18:36:31 +0100
committerSaz <me@saz.sh>2011-11-07 18:36:31 +0100
commit7c77a722a783adfb80e640392018e0fe5dd987d8 (patch)
treec10dde4f0c6468a87dd1174edf9aa7dd8624aad0 /templates
downloadpuppet-pureftpd-7c77a722a783adfb80e640392018e0fe5dd987d8.tar.gz
puppet-pureftpd-7c77a722a783adfb80e640392018e0fe5dd987d8.tar.bz2
initial release
Diffstat (limited to 'templates')
-rw-r--r--templates/README.markdown23
-rw-r--r--templates/default_config.erb26
2 files changed, 49 insertions, 0 deletions
diff --git a/templates/README.markdown b/templates/README.markdown
new file mode 100644
index 0000000..575bbea
--- /dev/null
+++ b/templates/README.markdown
@@ -0,0 +1,23 @@
+Templates
+=========
+
+Puppet supports templates and templating via ERB, which is part of the Ruby
+standard library and is used for many other projects including Ruby on Rails.
+Templates allow you to manage the content of template files, for example
+configuration files that cannot yet be managed as a Puppet type. Learn more at
+http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating
+
+You can use templates like this:
+
+ class myclass {
+ package { mypackage: ensure => latest }
+ service { myservice: ensure => running }
+ file { "/etc/myfile":
+ content => template("mymodule/myfile.erb")
+ }
+ }
+
+The templates are searched for in:
+
+ $templatedir/mymodule/myfile.erb
+ $modulepath/mymodule/templates/myfile.erb
diff --git a/templates/default_config.erb b/templates/default_config.erb
new file mode 100644
index 0000000..49b53eb
--- /dev/null
+++ b/templates/default_config.erb
@@ -0,0 +1,26 @@
+# Configuration for pure-ftpd
+# (this file is sourced by /bin/sh, edit accordingly)
+
+# STANDALONE_OR_INETD
+# valid values are "standalone" and "inetd".
+# Any change here overrides the setting in debconf.
+STANDALONE_OR_INETD=standalone
+
+# VIRTUALCHROOT:
+# whether to use binary with virtualchroot support
+# valid values are "true" or "false"
+# Any change here overrides the setting in debconf.
+VIRTUALCHROOT=<%= scope.lookupvar('pureftpd::params::real_virtualchroot') %>
+
+# UPLOADSCRIPT: if this is set and the daemon is run in standalone mode,
+# pure-uploadscript will also be run to spawn the program given below
+# for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or
+# pure-uploadscript(8)
+
+# example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl
+UPLOADSCRIPT=
+
+# if set, pure-uploadscript will spawn $UPLOADSCRIPT running as the
+# given uid and gid
+UPLOADUID=
+UPLOADGID=