Files are required before modification.
authorAndreas Schiermeier <andreas@schiermeier.name>
Sun, 10 Jul 2016 23:48:25 +0000 (01:48 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Sun, 10 Jul 2016 23:48:25 +0000 (01:48 +0200)
modules/desktop/manifests/init.pp

index 87aed15..79260c2 100644 (file)
@@ -84,6 +84,7 @@ class desktop {
        exec { 'fix-desktop-leafpad':
                command => '/bin/sed -i "/^Name/ s/=.*/=Notes/;" /etc/skel/Desktop/leafpad.desktop',
                unless => '/bin/grep -q "^Name=Notes" /etc/skel/Desktop/leafpad.desktop',
+               require => File['/etc/skel/Desktop/leafpad.desktop'],
        }
 
        file { '/etc/skel/Desktop/galculator.desktop':
@@ -98,6 +99,7 @@ class desktop {
        exec { 'fix-desktop-galculator':
                command => '/bin/sed -i "/^Name/ s/=.*/=Calculator/;" /etc/skel/Desktop/galculator.desktop',
                unless => '/bin/grep -q "^Name.*=Calculator" /etc/skel/Desktop/galculator.desktop',
+               require => File['/etc/skel/Desktop/galculator.desktop'],
        }
 
        file { '/etc/skel/Desktop/chromium-l10n.desktop':
@@ -120,6 +122,7 @@ class desktop {
        exec { 'fix-desktop-florence':
                command => '/bin/sed -i "/^Name/ s/=.*/=Keyboard/;" /etc/skel/Desktop/florence.desktop',
                unless => '/bin/grep -q "^Name.*=Keyboard" /etc/skel/Desktop/florence.desktop',
+               require => File['/etc/skel/Desktop/florence.desktop'],
        }
 
        file { '/etc/skel/Desktop/pcmanfm.desktop':
@@ -134,6 +137,7 @@ class desktop {
        exec { 'fix-desktop-pcmanfm':
                command => '/bin/sed -i "/^Name/ s/=.*/=Filemanager/;" /etc/skel/Desktop/pcmanfm.desktop',
                unless => '/bin/grep -q "^Name.*=Filemanager" /etc/skel/Desktop/pcmanfm.desktop',
+               pequire => File['/etc/skel/Desktop/pcmanfm.desktop'],
        }
 
        file { '/etc/skel/Desktop/iceweasel.desktop':
@@ -148,6 +152,7 @@ class desktop {
        exec { 'fix-desktop-iceweasel':
                command => '/bin/sed -i "/^Name/ s/=.*/=Webbrowser/;" /etc/skel/Desktop/iceweasel.desktop',
                unless => '/bin/grep -q "^Name.*=Webbrowser" /etc/skel/Desktop/iceweasel.desktop',
+               require => File['/etc/skel/Desktop/iceweasel.desktop'],
        }