Skip to content

Commit

Permalink
(SUP-2412) changed privatekey permissions for psql client (#51)
Browse files Browse the repository at this point in the history
* changed privatekey permissions for psql client

* changed privatekey permissions for psql client

* codeowners updated
  • Loading branch information
MartyEwings authored May 4, 2021
1 parent 0084bf8 commit 2ab5d97
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
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

0 comments on commit 2ab5d97

Please sign in to comment.