summaryrefslogtreecommitdiff
path: root/puppet/modules/leap_mx/manifests/init.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2013-07-26 14:21:22 -0400
committerMicah Anderson <micah@leap.se>2013-07-26 14:21:22 -0400
commit701c66c8de081f8148ab63c09f52fe97b122f54a (patch)
tree6cd2aef6d2041d200e071d184e46996945c07f35 /puppet/modules/leap_mx/manifests/init.pp
parent4766d719b1181b636dc57374b478d2c21e369dc1 (diff)
parent8d28379aca4d8a79caa00afbf79ad4e5a204493f (diff)
Merge branch 'feature/mx' into develop
Diffstat (limited to 'puppet/modules/leap_mx/manifests/init.pp')
-rw-r--r--puppet/modules/leap_mx/manifests/init.pp56
1 files changed, 56 insertions, 0 deletions
diff --git a/puppet/modules/leap_mx/manifests/init.pp b/puppet/modules/leap_mx/manifests/init.pp
new file mode 100644
index 00000000..652eb85b
--- /dev/null
+++ b/puppet/modules/leap_mx/manifests/init.pp
@@ -0,0 +1,56 @@
+class leap_mx {
+
+ $couchdb_host = 'localhost'
+ $couchdb_port = '4096'
+ $couchdb_user = $soledad::couchdb::user
+ $couchdb_password = $soledad::couchdb::password
+
+ #
+ # USER AND GROUP
+ #
+
+ group { 'leap-mx':
+ ensure => present,
+ allowdupe => false;
+ }
+
+ user { 'leap-mx':
+ ensure => present,
+ allowdupe => false,
+ gid => 'leap-mx',
+ home => '/etc/leap',
+ require => Group['leap-mx'];
+ }
+
+ #
+ # LEAP-MX CONFIG
+ #
+
+ file { '/etc/leap/mx.conf':
+ content => template('leap_mx/mx.conf.erb'),
+ owner => 'leap-mx',
+ group => 'leap-mx',
+ mode => '0600',
+ notify => Service['leap-mx'];
+ }
+
+ #
+ # LEAP-MX CODE
+ #
+
+ package { 'leap-mx':
+ ensure => installed;
+ }
+
+ #
+ # LEAP-MX DAEMON
+ #
+
+ service { 'leap_mx':
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ require => [ Package['leap-mx'] ];
+ }
+}