-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgresql: add support for v9.1 on ubuntu precise
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
/* | |||
==Class: postgresql::ubuntu::v9-1 | |||
Parameters: | |||
$postgresql_data_dir: | |||
set the data directory path, which is used to store all the databases | |||
*/ | |||
class postgresql::ubuntu::v9-1 { | |||
|
|||
$version = "9.1" | |||
|
|||
case $lsbdistcodename { | |||
'precise': { | |||
|
|||
include postgresql::debian::base | |||
|
|||
service {"postgresql": | |||
ensure => running, | |||
enable => true, | |||
hasstatus => true, | |||
start => "/etc/init.d/postgresql start ${version}", | |||
status => "/etc/init.d/postgresql status ${version}", | |||
stop => "/etc/init.d/postgresql stop ${version}", | |||
restart => "/etc/init.d/postgresql restart ${version}", | |||
require => Package["postgresql-common"], | |||
} | |||
|
|||
exec { "reload postgresql ${version}": | |||
refreshonly => true, | |||
command => "/etc/init.d/postgresql reload ${version}", | |||
} | |||
} | |||
|
|||
default: { | |||
fail "${name} not available for ${operatingsystem}/${lsbdistcodename}" | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters