Skip to content

Instantly share code, notes, and snippets.

@greglarkin
Created May 21, 2015 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greglarkin/45aea0bd7cd3061e7e94 to your computer and use it in GitHub Desktop.
Save greglarkin/45aea0bd7cd3061e7e94 to your computer and use it in GitHub Desktop.
Example usage of the puppetlabs-puppetdb module on Centos 5.x
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