1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-28 08:58:52 +02:00

File structure cosmetics.

This commit is contained in:
Petr A. Korobeinikov 2015-01-06 10:38:14 +03:00
parent 1fe4ee0f29
commit 9316c3fac2

View File

@ -20,22 +20,6 @@ Exec['createuser']->
Exec['run_daemon']
package { 'curl': # required by cpanminus installation
ensure => installed
}
package { 'postgresql-9.3':
ensure => installed
}
package { 'libexpat1-dev': # required by XML::Parser
ensure => installed
}
package { 'libpq-dev': # required by DBD::Pg
ensure => installed
}
Exec {
path => [
'/usr/local/bin',
@ -44,6 +28,7 @@ Exec {
logoutput => true,
}
# FIXME: only debian-based systems are supported.
exec { 'update_pkgs_index': command => 'apt-get update' }
@ -73,11 +58,27 @@ exec { 'psql_grant':
exec { 'run_daemon': command => 'hypnotoad /vagrant/explain.pl > /dev/null 2> /dev/null &' }
package { 'curl': # required by cpanminus installation
ensure => installed
}
package { 'postgresql-9.3':
ensure => installed
}
package { 'libexpat1-dev': # required by XML::Parser
ensure => installed
}
package { 'libpq-dev': # required by DBD::Pg
ensure => installed
}
package { 'nginx':
ensure => installed
}
file { '/etc/nginx/conf.d/explaind.conf':
owner => 'root',
group => 'root',
@ -95,6 +96,7 @@ server {
require => Package['nginx'],
}
service { 'nginx':
ensure => running,
enable => true,