Created
May 21, 2015 00:25
-
-
Save greglarkin/45aea0bd7cd3061e7e94 to your computer and use it in GitHub Desktop.
Example usage of the puppetlabs-puppetdb module on Centos 5.x
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
class { 'puppetdb': | |
disable_ssl => true, | |
manage_package_repo => true, | |
postgres_version => '8.4', | |
} | |
class { 'puppetdb::master::config': } | |
$bindir1 = '/usr/pgsql-8.4' | |
$bindir2 = "${bindir1}/bin" | |
$bindirs = [ $bindir1, $bindir2 ] | |
file { $bindirs: | |
ensure => directory, | |
before => [ Class['puppetdb'], Class['puppetdb::master::config'] ], | |
} | |
file { "${bindir2}/createdb": | |
ensure => link, | |
target => '/usr/bin/createdb', | |
} | |
file { "${bindir2}/initdb": | |
ensure => link, | |
target => '/usr/bin/initdb', | |
} | |
file { "${bindir2}/psql": | |
ensure => link, | |
target => '/usr/bin/psql', | |
} | |
file { '/etc/rc.d/init.d/postgresql-8.4': | |
ensure => link, | |
target => '/etc/rc.d/init.d/postgresql', | |
before => [ Class['puppetdb'], Class['puppetdb::master::config'] ], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment