File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 137
137
}
138
138
}
139
139
}
140
+
141
+ if !$foreman_proxy::manage_puppet_group and $foreman_proxy::ssl {
142
+ file { $foreman_proxy::ssl_key :
143
+ group => $foreman_proxy::user ,
144
+ mode => ' 0640' ,
145
+ before => Service[' foreman-proxy' ],
146
+ }
147
+ }
140
148
}
Original file line number Diff line number Diff line change 17
17
$etc = ' /etc'
18
18
$shell = ' /bin/false'
19
19
$user = pick($foreman_proxy::globals::user , ' foreman-proxy' )
20
+ $group = pick($foreman_proxy::globals::group , ' foreman-proxy' )
20
21
21
22
$dhcp_config = ' /etc/dhcp/dhcpd.conf'
22
23
$dhcp_leases = ' /var/lib/dhcpd/dhcpd.leases'
Original file line number Diff line number Diff line change 385
385
end
386
386
end
387
387
388
+ context 'when not managing puppet group' do
389
+ it "should manage ssl_key" do
390
+ should contain_file ( "/etc/puppetlabs/puppet/ssl/private_keys/#{ facts [ 'networking' ] [ 'fqdn' ] } " )
391
+ . with_mode ( '0640' )
392
+ . with_group ( 'foreman-proxy' )
393
+ . with_before ( 'Service["foreman-proxy"]' )
394
+ end
395
+ end
396
+
388
397
context 'with custom foreman_ssl params' do
389
398
let :params do
390
399
super ( ) . merge (
You can’t perform that action at this time.
0 commit comments