This state is useful for sending messages to Hipchat during state runs.
2015.5.0 新版功能.
hipchat-message:
hipchat.send_message:
- room_id: 123456
- from_name: SuperAdmin
- message: 'This state was executed successfully.'
- api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
- api_version: v1
The api key can be specified in the master or minion configuration like below:
hipchat:
api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
api_version: v1
salt.states.hipchat.
send_message
(name, room_id, from_name, message, api_key=None, api_version=None, message_color='yellow', notify=False)¶Send a message to a Hipchat room.
hipchat-message:
hipchat.send_message:
- room_id: 123456
- from_name: SuperAdmin
- message: 'This state was executed successfully.'
- api_key: peWcBiMOS9HrZG15peWcBiMOS9HrZG15
- api_version: v1
- color: green
- notify: True
The following parameters are required:
The following parameters are optional: