chef / omnibus

Easily create full-stack installers for your project across a variety of platforms.
Apache License 2.0
1.29k stars 296 forks source link

BS-94/use internal sources #1087

Closed gscho closed 1 year ago

gscho commented 1 year ago

Description

This is a new omnibus feature that allows users to build from only internal sources.

It works by adding a configuration value to the omnibus.rb file:

omnibus.rb

use_internal_sources true

And then in the software definitions, you can define an internal_source like this:

my-software/cacerts.rb

internal_source url: "https://my.internal.source/cacert-#{version}.pem"

When both source and internal_source are set, it will use the internal_source when use_internal_sources is set to true.

source url: "https://curl.se/ca/cacert-#{version}.pem"
internal_source url: "https://my.internal.source/cacert-#{version}.pem" # uses this one

Maintainers

Please ensure that you check for:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication