Fixed Exec conditions (2nd).
authorAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 01:21:26 +0000 (03:21 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 01:21:26 +0000 (03:21 +0200)
modules/desktop/manifests/init.pp

index ca57c09..1ad2002 100644 (file)
@@ -75,9 +75,11 @@ class desktop {
                        Package['lxde'],
                        File['/etc/skel/Desktop'],
                ],
+               notify => Exec['fix-desktop-leafpad'],
        }
 
        exec { 'fix-desktop-leafpad':
+               refreshonly => true,
                command => '/bin/sed -i "/^Name/ s/=.*/=Notes/;" /etc/skel/Desktop/leafpad.desktop',
                unless => '/bin/grep -q "^Name=Notes" /etc/skel/Desktop/leafpad.desktop',
        }
@@ -89,9 +91,11 @@ class desktop {
                        Package['lxde'],
                        File['/etc/skel/Desktop'],
                ],
+               notify => Exec['fix-desktop-galculator'],
        }
 
        exec { 'fix-desktop-galculator':
+               refreshonly => true,
                command => '/bin/sed -i "/^Name/ s/=.*/=Calculator/;" /etc/skel/Desktop/galculator.desktop',
                unless => '/bin/grep -q "^Name.*=Calculator" /etc/skel/Desktop/galculator.desktop',
        }
@@ -111,9 +115,11 @@ class desktop {
                        Package['florence'],
                        File['/etc/skel/Desktop'],
                ],
+               notify => Exec['fix-desktop-florence'],
        }
 
        exec { 'fix-desktop-florence':
+               refreshonly => true,
                command => '/bin/sed -i "/^Name/ s/=.*/=Keyboard/;" /etc/skel/Desktop/florence.desktop',
                unless => '/bin/grep -q "^Name.*=Keyboard" /etc/skel/Desktop/florence.desktop',
        }
@@ -125,9 +131,11 @@ class desktop {
                        Package['pcmanfm'],
                        File['/etc/skel/Desktop'],
                ],
+               notify => Exec['fix-desktop-pcmanfm'],
        }
 
        exec { 'fix-desktop-pcmanfm':
+               refreshonly => true,
                command => '/bin/sed -i "/^Name/ s/=.*/=Filemanager/;" /etc/skel/Desktop/pcmanfm.desktop',
                unless => '/bin/grep -q "^Name.*=Filemanager" /etc/skel/Desktop/pcmanfm.desktop',
        }
@@ -139,9 +147,11 @@ class desktop {
                        Package['iceweasel'],
                        File['/etc/skel/Desktop'],
                ],
+               notify => Exec['fix-desktop-iceweasel'],
        }
 
        exec { 'fix-desktop-iceweasel':
+               refreshonly => true,
                command => '/bin/sed -i "/^Name/ s/=.*/=Webbrowser/;" /etc/skel/Desktop/iceweasel.desktop',
                unless => '/bin/grep -q "^Name.*=Webbrowser" /etc/skel/Desktop/iceweasel.desktop',
        }