Chef: Load Attributes from encrypted databag in json role
- by jcvj
I'm want to use the postfix cookbook for chef. The sasl password is expected to be in an attribute. So usually you would do this:
"default_attributes": {
"postfix": {
"sasl": {
"smtp_sasl_passwd": "somepassword"
}
}
}
The thing is: I don't want to have the password in the repository in plain text. So I put it in an encrypted…