Closed gau1991 closed 8 years ago
added idempotent resources by adding :+1:
execute 'extract_some_tar' do command 'tar xzvf latest.tar.gz' cwd '/tmp/kitchen/cache' not_if { File.exists?("/tmp/kitchen/cache/wordpress/index.php") } end
execute 'copy the wordpress content' do command 'cp -r /tmp/kitchen/cache/wordpress/* /var/www/html' not_if { File.exists?("/var/www/html/wordpress/index.php") } end
Following resources are not idempotent.
Always make sure that your resources are idempotent.