]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add ud-replicated to inittab
authorStephen Gran <steve@lobefin.net>
Sat, 18 Jan 2014 10:54:17 +0000 (10:54 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 18 Jan 2014 10:54:41 +0000 (10:54 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/debian-org/manifests/init.pp

index 1d8c8e78967775d666941f7f2fbc7324cf151565..8264a309dc4df1e087113716ea30ac7745c849bd 100644 (file)
@@ -137,6 +137,16 @@ class debian-org {
                key        => 'puppet:///modules/debian-org/db.debian.org.asc',
        }
 
+       augeas { 'inittab_replicate':
+               context => '/files/etc/inittab',
+               changes => [
+                       'set ud/runlevels 2345',
+                       'set ud/action respawn',
+                       "set mo/process /usr/bin/ud-replicated",
+               ],
+               notify => Exec['init q'],
+       }
+
        if getfromhash($site::nodeinfo, 'hoster', 'mirror-debian') {
                site::aptrepo { 'debian':
                        url        => getfromhash($site::nodeinfo, 'hoster', 'mirror-debian'),