Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(SUP-2412) changed privatekey permissions for psql client #51

Merged
merged 8 commits into from
May 4, 2021
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# take ownership of parts of the code base that should be reviewed by another
# team.

* @MartyEwings @dylanratcliffe @jarretlavallee
* @dylanratcliffe @puppetlabs/support
9 changes: 9 additions & 0 deletions manifests/importer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
include postgresql::client
include puppet_enterprise::profile::controller

pe_ini_setting { 'Key Permisions for Psql client':
ensure => present,
path => "${::puppet_enterprise::params::confdir}/puppet.conf",
section => 'main',
setting => 'hostprivkey',
value => '$privatekeydir/$certname.pem{mode = 0600}',
}



################### 3. Telemetry dashboard ########################################
# If using puppet_metrics_dashboard:
Expand Down
15 changes: 14 additions & 1 deletion spec/classes/importer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
let(:pre_condition) { 'class puppet_enterprise::profile::controller {}' }
let(:pre_condition) do
<<-PRE_COND
class puppet_enterprise::profile::controller {}
class puppet_enterprise::params {$confdir = "/etc/puppetlabs/puppet"}
include puppet_enterprise::params
define pe_ini_setting (
$ensure,
$path,
$section,
$setting,
$value,
){}
PRE_COND
end

it { is_expected.to compile }
end
Expand Down