Version information
released Feb 7th 2013
Start using this module
Add this module to your Puppetfile:
mod 'jhaals-osx_notify', '0.0.4'
Learn more about managing modules with a PuppetfileDocumentation
jhaals/osx_notify — version 0.0.4 Feb 7th 2013
OS X Notify
This module brings one resource type that let you send notifications to the Notification Center in Mac OS X Mountain Lion.
osx_notify uses the cli created by Eloy Durán https://github.com/alloy/terminal-notifier
Usage example
include osx_notify
osx_notify { 'sublime_notify':
subject => 'New Application',
message => 'Sublime2 has been installed to your machine!',
refreshonly => true
}
package { 'Sublime2':
ensure => installed,
provider => appdmg,
source => 'http://apps.example.com/sublime.dmg',
notify => Osx_notify['sublime_notify']
}
Send notifications on schedule
include osx_notify
schedule { 'cake_schedule':
range => '12:00 - 13:00',
weekday => 'Friday',
}
osx_notify { 'cake_notice':
subject => 'Cake',
message => "There's cake in the cafeteria, grab some!",
refreshonly => false,
url => 'http://en.wikipedia.org/wiki/Cake',
schedule => 'cake_schedule',
}
This is how it looks:
0.0.4 ( 2013-02-07 )
* Reformatted osx_notify()
* Notify first user only
Still no good way of sending notifications to multiple users.
* Added example image of notification
0.0.3 ( 2013-02-06 )
* Added rspec tests to verify basic functionality.
Will possibliy convert functionality into type/provider
Copyright (C) 2012 by Johan Haals <johan.haals@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.