solr: Remove redundant dependencies
This commit is contained in:
parent
32c29abdd7
commit
14949bd1f7
1 changed files with 40 additions and 50 deletions
|
@ -51,7 +51,6 @@ class solr(
|
|||
file { "/srv/solr":
|
||||
ensure => link,
|
||||
target => $datadir,
|
||||
require => File[$datadir],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +59,6 @@ class solr(
|
|||
mode => "0770",
|
||||
owner => "solr",
|
||||
group => "solr",
|
||||
require => User["solr"],
|
||||
}
|
||||
|
||||
file { [ "/srv/solr/cores",
|
||||
|
@ -74,7 +72,6 @@ class solr(
|
|||
mode => "2770",
|
||||
owner => "solr",
|
||||
group => "solr",
|
||||
require => File["/srv/solr"],
|
||||
}
|
||||
|
||||
file { "/srv/solr/cores/solr.xml":
|
||||
|
@ -83,26 +80,22 @@ class solr(
|
|||
owner => "solr",
|
||||
group => "solr",
|
||||
content => template("solr/solr.xml.erb"),
|
||||
require => File["/srv/solr/cores"],
|
||||
notify => Service["solr"],
|
||||
}
|
||||
|
||||
file { "/srv/solr/run/start.jar":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/start.jar",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/contexts":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/contexts",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/etc":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/etc",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/etc/jetty.xml":
|
||||
|
@ -116,19 +109,16 @@ class solr(
|
|||
file { "/srv/solr/run/lib":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/lib",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/resources":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/resources",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
file { "/srv/solr/run/webapps":
|
||||
ensure => link,
|
||||
target => "/usr/local/share/solr/example/webapps",
|
||||
require => File["/srv/solr/run"],
|
||||
before => Service["solr"],
|
||||
}
|
||||
|
||||
|
@ -169,7 +159,6 @@ class solr(
|
|||
mode => "0640",
|
||||
owner => "root",
|
||||
group => $::apache::sslserver::group,
|
||||
require => File["/etc/solr"],
|
||||
}
|
||||
|
||||
$htdocs = "/usr/local/share/solr/htdocs"
|
||||
|
@ -186,9 +175,10 @@ class solr(
|
|||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
source => [ "puppet:///files/solr/htaccess",
|
||||
"puppet:///modules/solr/htaccess", ],
|
||||
require => File[$htdocs],
|
||||
source => [
|
||||
"puppet:///files/solr/htaccess",
|
||||
"puppet:///modules/solr/htaccess",
|
||||
],
|
||||
}
|
||||
|
||||
if $webhosts {
|
||||
|
|
Loading…
Add table
Reference in a new issue