Skip to content

Commit

Permalink
Merge pull request #70 from icann-dns/sensetive_password
Browse files Browse the repository at this point in the history
ipmi::user: Mask passwords
  • Loading branch information
jhoblitt authored Jan 16, 2024
2 parents ac909d2 + db1774f commit 8f73daf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@
}

exec { "ipmi_user_setpw_${title}":
command => "/usr/bin/ipmitool user set password ${user_id} \'${real_password}\'",
unless => "/usr/bin/ipmitool user test ${user_id} 16 \'${real_password}\'",
notify => [Exec["ipmi_user_enable_${title}"], Exec["ipmi_user_enable_sol_${title}"], Exec["ipmi_user_channel_setaccess_${title}"]],
environment => ["PASSWORD=${real_password}"],
command => "/usr/bin/ipmitool user set password ${user_id} \'\$PASSWORD\'",
unless => "/usr/bin/ipmitool user test ${user_id} 16 \'\$PASSWORD\'",
notify => [Exec["ipmi_user_enable_${title}"], Exec["ipmi_user_enable_sol_${title}"], Exec["ipmi_user_channel_setaccess_${title}"]],
}

exec { "ipmi_user_enable_sol_${title}":
Expand Down

0 comments on commit 8f73daf

Please sign in to comment.