justicel / puppet-couchbase

Puppet couchbase module for auto-scaling of couchbase with puppet
9 stars 30 forks source link

Make `curl` method idempotent to leverage fileserver #46

Closed rdev5 closed 7 years ago

rdev5 commented 7 years ago

Test for /opt/${pkgname} to skip downloading from source. Useful in supporting pre-download from fileserver.

Example:

class profile::couchbase::enterprise {
  ...

  # Pre-download from fileserver to skip large file download
  file { "/opt/${file_basename}":
    ensure => present,
    owner => 'root',
    mode => '0400',
    source => $file_source,
    checksum => $checksum,
    checksum_value => $file_checksum,
  } ->

  class { 'couchbase':
      edition  => $edition,
      version  => $version,
      download_url_base => $download_url_base,

      size     => $size,

      user     => $user,
      password => $password,
  }
}