546136ce52
Make files notify services to restart when changed Improve planet's cron, spit out a date/time and append instead of overwrite log Change-Id: I0c2ee96c4aff5512a891c49b8b2df5c20c9cab44
29 lines
360 B
Puppet
29 lines
360 B
Puppet
class planet {
|
|
|
|
package { 'planet-venus':
|
|
ensure => present
|
|
}
|
|
|
|
package { 'nginx':
|
|
ensure => present
|
|
}
|
|
|
|
file { '/srv/planet':
|
|
ensure => directory
|
|
}
|
|
|
|
file { '/var/lib/planet':
|
|
ensure => directory
|
|
}
|
|
|
|
file { '/var/log/planet':
|
|
ensure => directory
|
|
}
|
|
|
|
service { "nginx":
|
|
ensure => running,
|
|
hasrestart => true
|
|
}
|
|
|
|
}
|