X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fstaging%2Ftests%2Fextract.pp;fp=3rdparty%2Fmodules%2Fstaging%2Ftests%2Fextract.pp;h=257f478cfd416f9c0e42aef2c3c5e60aa9277bc4;hb=269aa0e4ab1d106f521995e9e4beb8335acdbed6;hp=0000000000000000000000000000000000000000;hpb=d44d714d51cff79f225cae6a6d8f98f97d3000a5;p=dsa-puppet.git diff --git a/3rdparty/modules/staging/tests/extract.pp b/3rdparty/modules/staging/tests/extract.pp new file mode 100644 index 00000000..257f478c --- /dev/null +++ b/3rdparty/modules/staging/tests/extract.pp @@ -0,0 +1,25 @@ +$caller_module_name = 'demo' + +class { 'staging': + path => '/tmp/staging', +} + +staging::file { 'sample.tar.gz': + source => 'puppet:///modules/staging/sample.tar.gz' +} + +staging::extract { 'sample.tar.gz': + target => '/tmp/staging', + creates => '/tmp/staging/sample', + require => Staging::File['sample.tar.gz'], +} + +staging::file { 'sample.tar.bz2': + source => 'puppet:///modules/staging/sample.tar.bz2' +} + +staging::extract { 'sample.tar.bz2': + target => '/tmp/staging', + creates => '/tmp/staging/sample-tar-bz2', + require => Staging::File['sample.tar.bz2'], +}