…ER_KEY env var (dlysnichenko)

## What changes were proposed in this pull request?

*STR*
Installed ambari-server and configured password encryption, but chosed not to 
persist a master key
```
[root@h002 ~]# ambari-server setup-security
Using python  /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options:
[1] Enable HTTPS for Ambari server.
[2] Encrypt passwords stored in ambari.properties file.
[3] Setup Ambari kerberos JAAS configuration.
[4] Setup truststore.
[5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5): 2
Password encryption is enabled.
Do you want to reset Master Key? [y/n] (n): y
Master Key not persisted.
Enter current Master Key:
Enter new Master Key:
Re-enter master key:
Do you want to persist master key. If you choose not to persist, you need to 
provide the Master Key while starting the ambari server as an env variable 
named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. 
Persist [y/n] (y)? n
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup-security' completed successfully.
```

Then export an environment variable
`export AMBARI_SECURITY_MASTER_KEY=hadoop`

ambari-server setup prompts to enter current master key

## How was this patch tested?
Live check

[ Full content available at: https://github.com/apache/ambari/pull/2346 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to