5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'manifests/service.pp', line 5
class ckan::service {
exec { 'restart solr':
command => '/usr/sbin/service solr restart',
refreshonly => true,
subscribe => Class['ckan::conf::production'],
#notify => Service['nginx','httpd'],
}
service { $ckan::apache_service:
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Exec['restart solr'],
}
service { 'nginx':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
#require => Exec['restart solr'],
require => Service[$ckan::apache_service],
}
}
|