You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-07-03 00:58:12 +02:00
File structure cosmetics.
This commit is contained in:
@ -20,22 +20,6 @@ Exec['createuser']->
|
|||||||
Exec['run_daemon']
|
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 {
|
Exec {
|
||||||
path => [
|
path => [
|
||||||
'/usr/local/bin',
|
'/usr/local/bin',
|
||||||
@ -44,6 +28,7 @@ Exec {
|
|||||||
logoutput => true,
|
logoutput => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# FIXME: only debian-based systems are supported.
|
# FIXME: only debian-based systems are supported.
|
||||||
exec { 'update_pkgs_index': command => 'apt-get update' }
|
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 &' }
|
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':
|
package { 'nginx':
|
||||||
ensure => installed
|
ensure => installed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
file { '/etc/nginx/conf.d/explaind.conf':
|
file { '/etc/nginx/conf.d/explaind.conf':
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
@ -95,6 +96,7 @@ server {
|
|||||||
require => Package['nginx'],
|
require => Package['nginx'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
service { 'nginx':
|
service { 'nginx':
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
Reference in New Issue
Block a user