Add missing requires to chromedriver module
authorTulio Casagrande <tcasagra@thoughtworks.com>
Tue, 6 Jun 2017 17:21:49 +0000 (14:21 -0300)
committerTulio Casagrande <tcasagra@thoughtworks.com>
Tue, 6 Jun 2017 17:21:49 +0000 (14:21 -0300)
provisioning/modules/chromedriver/manifests/init.pp

index d3f0a41..709d8aa 100644 (file)
@@ -25,13 +25,14 @@ class chromedriver (
     command => "/usr/bin/unzip ${chromedriver} -d /usr/local/bin/",
     cwd     => '/var/tmp/',
     creates => '/usr/local/bin/chromedriver',
     command => "/usr/bin/unzip ${chromedriver} -d /usr/local/bin/",
     cwd     => '/var/tmp/',
     creates => '/usr/local/bin/chromedriver',
+    require => [ Exec['fetch_chromedriver'] ],
   }
 
   exec { 'install_google_chrome':
     command => "/usr/bin/dpkg -i ${google_chrome} || /usr/bin/apt-get -y -f install",
     cwd     => '/var/tmp/',
     unless  => '/usr/bin/dpkg -l google-chrome-stable > /dev/null 2>&1',
   }
 
   exec { 'install_google_chrome':
     command => "/usr/bin/dpkg -i ${google_chrome} || /usr/bin/apt-get -y -f install",
     cwd     => '/var/tmp/',
     unless  => '/usr/bin/dpkg -l google-chrome-stable > /dev/null 2>&1',
-    require => [ Exec['apt_get_update'] ],
+    require => [ Exec['fetch_google_chrome'], Exec['apt_get_update'] ],
   }
 
 }
   }
 
 }