Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
some cleanup/corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Jeanneret committed Dec 17, 2014
1 parent a702d55 commit 00cdfc8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@
dir_port => $dir_port,
dir_protocol => $dir_protocol,
manage_jks => $manage_ssl,
mrc_ca => $mrc_ca,
object_dir => $object_dir,
properties => $properties,
ssl_source_dir => $ssl_source_dir,
Expand Down
5 changes: 2 additions & 3 deletions manifests/roles/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
include ::fogstore::params
include ::fogstore::user

if !$admin_password or $admin_password == '' {
fail 'Need admin_password for client role'
}
validate_string($admin_password)
validate_slength($admin_password, 24, 5)

if $manage_ssl {
Fogstore::Ssl::Credential <||> ->
Expand Down
9 changes: 7 additions & 2 deletions manifests/roles/osd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
$dir_port = $fogstore::params::dir_port,
$dir_protocol = $fogstore::params::dir_protocol,
$manage_jks = $fogstore::params::manage_ssl,
$mrc_ca = $fogstore::params::mrc_ca,
$object_dir = $fogstore::params::object_dir,
$properties = $fogstore::params::properties,
$ssl_source_dir = $fogstore::params::ssl_source_dir,
Expand All @@ -43,6 +42,13 @@

include ::fogstore::user

if $client_ca == '' {
fail 'Need client_ca for OSD role'
}
if $dir_ca == '' {
fail 'Need dir_ca for OSD role'
}

# Set SSL configuration by default
$local_properties = {
'ssl.enabled' =>
Expand All @@ -65,7 +71,6 @@
::fogstore::ssl::trusted {'osd':
client_ca => $client_ca,
dir_ca => $dir_ca,
mrc_ca => $mrc_ca,
osd_jks_password => $trusted_password,
ssl_source_dir => $ssl_source_dir,
}
Expand Down

0 comments on commit 00cdfc8

Please sign in to comment.