client.pp 719 B

12345678910111213141516171819202122232425
  1. # Install client cli tool. See README.md for more details.
  2. class postgresql::client (
  3. $file_ensure = 'file',
  4. $validcon_script_path = $postgresql::params::validcon_script_path,
  5. $package_name = $postgresql::params::client_package_name,
  6. $package_ensure = 'present'
  7. ) inherits postgresql::params {
  8. validate_absolute_path($validcon_script_path)
  9. validate_string($package_name)
  10. package { 'postgresql-client':
  11. ensure => $package_ensure,
  12. name => $package_name,
  13. tag => 'postgresql',
  14. }
  15. file { $validcon_script_path:
  16. ensure => $file_ensure,
  17. source => 'puppet:///modules/postgresql/validate_postgresql_connection.sh',
  18. owner => 0,
  19. group => 0,
  20. mode => '0755',
  21. }
  22. }