github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/notifications/services/mattermost.md (about) 1 # Mattermost 2 3 ## Parameters 4 5 * `apiURL` - the server url, e.g. https://mattermost.example.com 6 * `token` - the bot token 7 * `insecureSkipVerify` - optional bool, true or false 8 9 ## Configuration 10 11 1. Create a bot account and copy token after creating it 12  13 2. Invite team 14  15 3. Store token in `argocd-notifications-secret` Secret and configure Mattermost integration 16 in `argocd-notifications-cm` ConfigMap 17 18 ```yaml 19 apiVersion: v1 20 kind: ConfigMap 21 metadata: 22 name: <config-map-name> 23 data: 24 service.mattermost: | 25 apiURL: <api-url> 26 token: $mattermost-token 27 ``` 28 29 ```yaml 30 apiVersion: v1 31 kind: Secret 32 metadata: 33 name: <secret-name> 34 stringData: 35 mattermost-token: token 36 ``` 37 38 4. Copy channel id 39  40 41 5. Create subscription for your Mattermost integration 42 43 ```yaml 44 apiVersion: argoproj.io/v1alpha1 45 kind: Application 46 metadata: 47 annotations: 48 notifications.argoproj.io/subscribe.<trigger-name>.mattermost: <channel-id> 49 ``` 50 51 ## Templates 52 53  54 55 You can reuse the template of slack. 56 Mattermost is compatible with attachments of Slack. See [Mattermost Integration Guide](https://docs.mattermost.com/developer/message-attachments.html). 57 58 ```yaml 59 template.app-deployed: | 60 message: | 61 Application {{.app.metadata.name}} is now running new version of deployments manifests. 62 mattermost: 63 attachments: | 64 [{ 65 "title": "{{.app.metadata.name}}", 66 "title_link": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", 67 "color": "#18be52", 68 "fields": [{ 69 "title": "Sync Status", 70 "value": "{{.app.status.sync.status}}", 71 "short": true 72 }, { 73 "title": "Repository", 74 "value": "{{.app.spec.source.repoURL}}", 75 "short": true 76 }] 77 }] 78 ```