aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-03 14:23:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-03 14:23:01 -0300
commit7bd2f91c12c2f270aa12d5a39da6eaec65375dfb (patch)
treee8ca51e82f8d891a13ef0a39479dc6ad6a7fc720 /manifests
parentc6ab319d3d04ee695163badf6c3ae931056a249d (diff)
downloadpuppet-bootstrap-7bd2f91c12c2f270aa12d5a39da6eaec65375dfb.tar.gz
puppet-bootstrap-7bd2f91c12c2f270aa12d5a39da6eaec65375dfb.tar.bz2
Adding classes needed by puppetmaster
Diffstat (limited to 'manifests')
-rw-r--r--manifests/classes/websites.pp42
-rw-r--r--manifests/modules.pp6
-rw-r--r--manifests/nodes.pp5
-rw-r--r--manifests/site.pp8
4 files changed, 61 insertions, 0 deletions
diff --git a/manifests/classes/websites.pp b/manifests/classes/websites.pp
new file mode 100644
index 0000000..35f27c6
--- /dev/null
+++ b/manifests/classes/websites.pp
@@ -0,0 +1,42 @@
+class websites::admin inherits websites::hosting::admin {
+ # An administrative Trac instance
+ #apache::site { "admin":
+ # docroot => "${apache::sites_folder}/admin/trac/htdocs",
+ # use => [ "Trac admin" ],
+ # redirect_match => "trac",
+ # mpm => false,
+ # tag => 'all',
+ #}
+
+ apache::site { "munin":
+ docroot => '/var/www/munin',
+ owner => "munin",
+ group => "munin",
+ mpm => false,
+ tag => 'all',
+ }
+
+ apache::site { "nagios":
+ source => true,
+ docroot => '/usr/share/nagios3/htdocs',
+ mpm => false,
+ tag => 'all',
+ }
+}
+
+class websites inherits websites::hosting {
+ # Website definitions: always use tagged resources
+
+ #apache::site { "site":
+ # source => true,
+ # ticket => '001',
+ # docroot => '/var/www/site',
+ # tag => 'all',
+ #}
+
+ #database::instance { "site":
+ # password => 'xxx',
+ # tag => 'all',
+ #}
+
+}
diff --git a/manifests/modules.pp b/manifests/modules.pp
new file mode 100644
index 0000000..3df3fe3
--- /dev/null
+++ b/manifests/modules.pp
@@ -0,0 +1,6 @@
+#
+# Module definitions.
+#
+
+# Nodo automatically import all modules we need.
+import "nodo"
diff --git a/manifests/nodes.pp b/manifests/nodes.pp
new file mode 100644
index 0000000..b90f04e
--- /dev/null
+++ b/manifests/nodes.pp
@@ -0,0 +1,5 @@
+#
+# Node definitions.
+#
+
+#import "nodes/example.pp"
diff --git a/manifests/site.pp b/manifests/site.pp
new file mode 100644
index 0000000..6f3e5aa
--- /dev/null
+++ b/manifests/site.pp
@@ -0,0 +1,8 @@
+#
+# Puppet site configuration.
+#
+
+import "classes/users.pp"
+import "classes/websites.pp"
+import "modules.pp"
+import "nodes.pp"