Skip to content

Commit

Permalink
Merge pull request #54 from nosolutions/tsm8
Browse files Browse the repository at this point in the history
added support for GSKit keystore password database
  • Loading branch information
tosmi committed Jun 11, 2019
2 parents e1b9560 + 79c5d4b commit 7ee8f7f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions manifests/init.pp
Expand Up @@ -94,6 +94,11 @@
# config - optional
# Default: /etc/adsm/TSM.PWD
#
# [*tsm_pwd_kdb*]
# Path to the TSM GSKit password file used since 7.1.8
# config - optional
# Default: /etc/adsm/TSM.KDB
#
# [*initial_password*]
# First time password for connecting to the tsm server
# config - optional
Expand Down Expand Up @@ -250,6 +255,7 @@
$service_script = $::tsm::params::service_script,
$service_script_source = $::tsm::params::service_script_source,
$tsm_pwd = $::tsm::params::tsm_pwd,
$tsm_pwd_kdb = $::tsm::params::tsm_pwd_kdb,
$initial_password = $::tsm::params::initial_password,
$set_initial_password = $::tsm::params::set_initial_password,
$config_dir = $::tsm::params::config_dir,
Expand Down Expand Up @@ -281,6 +287,7 @@
validate_bool($service_enable)
validate_string($service_name)
validate_absolute_path($tsm_pwd)
validate_absolute_path($tsm_pwd_kdb)
validate_string($initial_password)
validate_bool($set_initial_password)
validate_absolute_path($config)
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Expand Up @@ -21,6 +21,7 @@

# default password file
$tsm_pwd = '/etc/adsm/TSM.PWD'
$tsm_pwd_kdb = '/etc/adsm/TSM.KDB'
$initial_password = 'start'
$set_initial_password = true

Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Expand Up @@ -52,7 +52,7 @@

exec {'generate-tsm.pwd':
command => "dsmc set password ${::tsm::initial_password} ${password}",
creates => $::tsm::tsm_pwd,
unless => ["test -f ${::tsm::tsm_pwd}", "test -f ${::tsm::tsm_pwd_kdb}"],
path => ['/bin', '/usr/bin']
}
Exec['generate-tsm.pwd'] -> Service[$::tsm::service_name]
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/tsm_spec.rb
Expand Up @@ -472,7 +472,7 @@

it do
should contain_exec('generate-tsm.pwd').with({
'creates' => '/etc/adsm/TSM.PWD',
'unless' => ['test -f /etc/adsm/TSM.PWD', 'test -f /etc/adsm/TSM.KDB'],
'path' => ['/bin', '/usr/bin'],
})
end
Expand Down Expand Up @@ -549,7 +549,7 @@

it do
should contain_exec('generate-tsm.pwd').with({
'creates' => '/etc/adsm/TSM.PWD',
'unless' => ['test -f /etc/adsm/TSM.PWD', 'test -f /etc/adsm/TSM.KDB'],
'path' => ['/bin', '/usr/bin'],
})
end
Expand Down Expand Up @@ -937,7 +937,7 @@

it do
should contain_exec('generate-tsm.pwd').with({
'creates' => '/etc/adsm/TSM.PWD',
'unless' => ['test -f /etc/adsm/TSM.PWD', 'test -f /etc/adsm/TSM.KDB'],
'path' => ['/bin', '/usr/bin'],
})
end
Expand Down Expand Up @@ -1023,7 +1023,7 @@

it do
should contain_exec('generate-tsm.pwd').with({
'creates' => '/etc/adsm/TSM.PWD',
'unless' => ['test -f /etc/adsm/TSM.PWD', 'test -f /etc/adsm/TSM.KDB'],
'path' => ['/bin', '/usr/bin'],
})
end
Expand Down

0 comments on commit 7ee8f7f

Please sign in to comment.