rundeck-email notification setup
/etc/rundeck/profile change
-Drundeck.config.location=/etc/rundeck/rundeck-config.properties \
to
-Drundeck.config.location=/etc/rundeck/rundeck-config.groovy \
and my /etc/rundeck/rundeck-config.groovy
looks like:
grails.serverURL="https://172.20.22.76:4443"
loglevel.default = "DEBUG"
rdeck.base = "/var/lib/rundeck"
rss.enabled = false
dataSource {
dbCreate="update"
url="jdbc:h2:file:/var/lib/rundeck/data/rundeckdb;MVCC=true"
}
grails.mail.default.from="deployer@domain.com"
grails {
mail {
host = "smtp.gmail.com"
username = "my_gmail_logic@gmail.com"
port = 587
password = "mygmailpass"
props = ["mail.smtp.starttls.enable":"true", "mail.smtp.port":587, "mail.smtp.auth":"true"]
}
}
profit!!!
notes:
1) after first job run it is needed to grand access in gmail, you will receive email, just follow instructions
2)grails.mail.default.from - does not work, still receive mails from: my_gmail_logic@gmail.com, but not from deployer@domain.com
Regards!