Sha256: 9ca2a1de1aa6a1326d6e55d662d082b5a120df4075df82e8b2694b4e11fa99f0

Contents?: true

Size: 938 Bytes

Versions: 16

Compression:

Stored size: 938 Bytes

Contents

##
# This test file simulates a policy Buildfile for a common type of build in an
# organization's CI environment
##
cookbook.depends 'shared-recipes' do |cookbook|
  cookbook.version '~> 2.0'
end

profile :default do |default|
  default.chef do |chef|
    chef.run_list 'shared-recipes::default'
    chef.environment = 'non-default'
  end

  ## Upload the generated code artifact to the image/VM
  default.artifact :code_bundle do |bundle|
    bundle.path 'target/bundle.tar.gz'
    bundle.destination ::File.join(Config.chef.staging_directory,
                                   'cache/code-bundle.tar.gz')
  end
end

profile :bake => Config.profile(:default) do |bake|
  bake.chef.run_list 'shared-recipes::ami-bake', :mode => :override

  bake.packer do |packer|
    packer.build :default do |build|

      # build.ami_regions 'eu-central-1' - Packer doesn't support eu-central-1
      build.ami_users '0123456789'
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
builderator-1.1.9 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.8 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.7 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.6 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.5 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.4 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.3 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.2 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.1 spec/resource/Buildfile-policy-buildtype1
builderator-1.1.0 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.4 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.3 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.2 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.1 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.0.pre.rc.12 spec/resource/Buildfile-policy-buildtype1
builderator-1.0.0.pre.rc.11 spec/resource/Buildfile-policy-buildtype1