Created
February 1, 2013 23:00
-
-
Save chribben/4694772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class mosquitto { | |
exec { 'apt-get update': | |
command => '/usr/bin/apt-get update' | |
} | |
package { 'python-software-properties': | |
ensure => installed, | |
require => Exec['apt-get update'], | |
} | |
exec { 'sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa': | |
command => 'add-apt-repository ppa:mosquitto-dev/mosquitto-ppa', | |
path => '/usr/bin/', | |
require => Package['python-software-properties'] | |
} | |
exec { 'apt-get update II': | |
command => '/usr/bin/apt-get update', | |
require => Exec['sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa'] | |
} | |
package { 'mosquitto': | |
ensure => installed, | |
require => Exec['apt-get update II'], | |
} | |
package { 'mosquitto-clients': | |
ensure => installed, | |
require => Exec['apt-get update II'], | |
} | |
exec { 'start mosquitto': | |
command => '/usr/sbin/mosquitto', | |
timeout => 0, | |
require => Package['mosquitto'] | |
} | |
} | |
include mosquitto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment