Skip to content

Instantly share code, notes, and snippets.

@nanliu
Created April 28, 2015 01:59
Show Gist options
  • Save nanliu/0d3f5bf4a53431f81ed2 to your computer and use it in GitHub Desktop.
Save nanliu/0d3f5bf4a53431f81ed2 to your computer and use it in GitHub Desktop.
# Download file
[vagrant@archive ~]$ time sudo puppet apply --modulepath "/etc/puppet/modules:/tmp/puppet/modules" --color=false --manifestdir /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef --detailed-exitcodes /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef/remote_checksum.pp
Notice: Compiled catalog for archive.localdomain in environment production in 0.63 seconds
Notice: /Stage[main]/Main/Archive[/tmp/hawtio-web-1.4.36.jar]/ensure: download archive from https://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war&r=releases to /tmp/hawtio-web-1.4.36.jar with cleanup
Notice: Finished catalog run in 5.09 seconds
real 0m7.370s
user 0m3.157s
sys 0m0.714s
# File Exists:
[vagrant@archive ~]$ time sudo puppet apply --modulepath "/etc/puppet/modules:/tmp/puppet/modules" --color=false --manifestdir /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef --detailed-exitcodes /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef/remote_checksum.pp
Notice: Compiled catalog for archive.localdomain in environment production in 0.62 seconds
Notice: Finished catalog run in 0.58 seconds
real 0m2.693s
user 0m1.773s
sys 0m0.476s
# Hardcoded checksum
[vagrant@archive ~]$ time sudo puppet apply --modulepath "/etc/puppet/modules:/tmp/puppet/modules" --color=false --manifestdir /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef --detailed-exitcodes /tmp/vagrant-puppet/manifests-b61a6d542f9036550ba9c401c80f00ef/remote_checksum.pp
Notice: Compiled catalog for archive.localdomain in environment production in 0.66 seconds
Notice: Finished catalog run in 0.17 seconds
real 0m2.358s
user 0m1.818s
sys 0m0.461s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment