Skip to content

Instantly share code, notes, and snippets.

@peterbraden
Created October 1, 2013 23:25
Show Gist options
  • Save peterbraden/6786794 to your computer and use it in GitHub Desktop.
Save peterbraden/6786794 to your computer and use it in GitHub Desktop.
Hipache Puppet Manifest
class hipache {
include nodejs
include redis
package { 'hipache':
ensure => present,
provider => 'npm',
}
service { "hipache":
ensure => "running",
enable => "true",
require => Package["hipache"],
status => "ps aux | grep hipache | awk '{ print $2 }'",
}
file { "/etc/hipache.conf":
notify => Service["hipache"],
mode => 644,
owner => "root",
group => "root",
require => Package["hipache"],
content => template("hipache/hipache-conf.json"),
}
file { "/etc/init.d/hipache":
notify => Service["hipache"],
mode => 644,
owner => "root",
group => "root",
require => Package["hipache"],
content => template("hipache/hipache.upstart"),
}
file { "/etc/ssl/private/myserver.key":
notify => Service["hipache"],
mode => 644,
owner => "root",
group => "root",
require => Package["hipache"],
content => template("hipache/myserver.key"),
}
file { "/etc/ssl/certs/ssl-bundle.crt":
notify => Service["hipache"],
mode => 644,
owner => "root",
group => "root",
require => Package["hipache"],
content => template("hipache/ssl-bundle.crt"),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment