Class: Ansible::Ruby::Modules::Mattermost

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/notification/mattermost.rb

Overview

Sends notifications to U(your.mattermost.url) via the Incoming WebHook integration.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#api_keyString

Returns Mattermost webhook api key. Log into your mattermost site, go to Menu -> Integration -> Incoming Webhook -> Add Incoming Webhook. This will give you full URL. api_key is the last part. mattermost.example.com/hooks/C(API_KEY).

Returns:

  • (String)

    Mattermost webhook api key. Log into your mattermost site, go to Menu -> Integration -> Incoming Webhook -> Add Incoming Webhook. This will give you full URL. api_key is the last part. mattermost.example.com/hooks/C(API_KEY)



16
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 16

attribute :api_key

#channelString?

Returns Channel to send the message to. If absent, the message goes to the channel selected for the I(api_key).

Returns:

  • (String, nil)

    Channel to send the message to. If absent, the message goes to the channel selected for the I(api_key).



24
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 24

attribute :channel

#icon_urlString?

Returns Url for the message sender’s icon.

Returns:

  • (String, nil)

    Url for the message sender’s icon.



32
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 32

attribute :icon_url

#textString

Returns Text to send. Note that the module does not handle escaping characters.

Returns:

  • (String)

    Text to send. Note that the module does not handle escaping characters.



20
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 20

attribute :text

#urlString

Returns Mattermost url (i.e. mattermost.yourcompany.com).

Returns:



12
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 12

attribute :url

#usernameString?

Returns This is the sender of the message (Username Override need to be enabled by mattermost admin, see mattermost doc.

Returns:

  • (String, nil)

    This is the sender of the message (Username Override need to be enabled by mattermost admin, see mattermost doc.



28
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 28

attribute :username

#validate_certsBoolean?

Returns If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Returns:

  • (Boolean, nil)

    If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.



36
# File 'lib/ansible/ruby/modules/generated/notification/mattermost.rb', line 36

attribute :validate_certs