Class: Bosh::Agent::Platform::Linux::Password
- Defined in:
- lib/bosh_agent/platform/linux/password.rb
Constant Summary collapse
- USERS =
['root', Bosh::Agent::BOSH_APP_USER]
Instance Method Summary collapse
-
#update(settings) ⇒ Object
Update passwords.
Instance Method Details
#update(settings) ⇒ Object
Update passwords
8 9 10 11 12 13 14 |
# File 'lib/bosh_agent/platform/linux/password.rb', line 8 def update(settings) password = settings.fetch('env', {}).fetch('bosh', {})['password'] if password USERS.each { |user| update_password(user, password) } end end |