This file contains hidden or 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
def pg_setting(setting) | |
Facter.add("pg_" + setting) do | |
setcode do | |
if File.exists? "/usr/bin/psql" | |
setting = Facter::Util::Resolution.exec("sudo -u postgres psql -U postgres -d postgres -qtAXc \"select current_setting('#{setting}')\"") | |
end | |
end | |
end | |
end |
This file contains hidden or 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 kernel(version='latest') { | |
package { 'rhel-kernel': | |
ensure => $version, | |
alias => kernel, | |
notify => Exec['rebuild gahrbaj'], | |
} |
This file contains hidden or 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
databases => { | |
'default' => | |
{ | |
'ENGINE' => 'postgresql_psycopg2', | |
'NAME' => 'defaultdb', | |
'HOST' => '2.2.2.2.2', | |
'USER' => 'username', | |
'PASSWORD' => 'secretinfo', | |
'OPTIONS' => | |
{ |