Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Created August 14, 2016 02:38
Show Gist options
  • Save bugcy013/d9aa920c5f1329eaf4b2ac44e78d1184 to your computer and use it in GitHub Desktop.
Save bugcy013/d9aa920c5f1329eaf4b2ac44e78d1184 to your computer and use it in GitHub Desktop.
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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment