Permalink
Browse files

Added basic Solr classes

  • Loading branch information...
1 parent f7c5afd commit 7b517f9d0afab28e6694b2eb52e9c1502c904b3e @robknight robknight committed Oct 17, 2011
Showing with 31 additions and 0 deletions.
  1. +27 −0 solr/manifests/core.pp
  2. +4 −0 solr/manifests/init.pp
  3. 0 solr/manifests/params.pp
View
27 solr/manifests/core.pp
@@ -0,0 +1,27 @@
+
+define solr::core(
+ $schema = 'puppet:///modules/solr/files/schema.xml',
+ $solrconfig = 'puppet:///modules/solr/files/solrconfig.xml'
+) {
+
+ $core_path = "${solr::params::solr_root}/cores/core_{$name}"
+
+ File {
+ owner => $tomcat::params::user,
+ group => $tomcat::params::group
+ }
+
+ file { $core_path:
+ ensure => directory
+ }
+
+ file { "$core_path/data":
+ ensure => directory
+ }
+
+ file { "$core_path/data/index":
+ ensure => directory
+ }
+
+ # @todo ensure index files exist?
+}
View
4 solr/manifests/init.pp
@@ -0,0 +1,4 @@
+
+class solr {
+
+}
View
0 solr/manifests/params.pp
No changes.

0 comments on commit 7b517f9

Please sign in to comment.