forked from puppetlabs-toy-chest/puppetlabs-rpmbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is an almost complete refactor of the previous module. It removes some of the levers and switches with the repos and instead of using the name of a mock config to figure out how it is laid out, this uses the parameters of a mock config to determine its name. The entry point of init.pp now collects some common params and hands them down to the other manifests if provided.
- Loading branch information
Showing
28 changed files
with
577 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rspec/core/rake_task' | ||
require 'puppetlabs_spec_helper/rake_tasks' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,28 @@ | ||
class rpmbuilder { | ||
class rpmbuilder( | ||
$fedora_releases = undef, | ||
$el_releases = undef, | ||
$vendor = undef, | ||
$mock_root = undef, | ||
$proxy = undef, | ||
$pe = false, | ||
$pe_vers = undef, | ||
) { | ||
include rpmbuilder::repos | ||
include rpmbuilder::packages::essential | ||
include rpmbuilder::packages::extra | ||
include rpmbuilder::mock::puppetlabs_mocks | ||
|
||
class { rpmbuilder::mock::puppetlabs_mocks: | ||
fedora_releases => $fedora_releases, | ||
el_releases => $el_releases, | ||
vendor => $vendor, | ||
proxy => $proxy, | ||
mock_root => $mock_root, | ||
} | ||
|
||
if $pe { | ||
include rpmbuilder::packages::extra | ||
class { rpmbuilder::mock::pe_mocks: | ||
pe_vers => $pe_vers, | ||
mock_root => $mock_root, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
define rpmbuilder::mock::create_mock ( | ||
$dist = undef, | ||
$release = undef, | ||
$proxy = false, | ||
$vendor = "Puppet User", | ||
$arch = undef, | ||
$dev = false, | ||
$mock_root = "/etc/mock", | ||
) { | ||
|
||
file { $name: | ||
path => "${mock_root}/${name}.cfg", | ||
owner => "root", | ||
group => "mock", | ||
ensure => present, | ||
content => template("rpmbuilder/mock-config.erb"), | ||
mode => "0644", | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
define rpmbuilder::mock::pe_mock( | ||
$pe_ver, | ||
$dist = "el", | ||
$release, | ||
$arch, | ||
$mock_root = "/etc/mock" | ||
) { | ||
file { $name: | ||
path => "${mock_root}/${name}.cfg", | ||
owner => "root", | ||
group => "mock", | ||
ensure => present, | ||
content => template("rpmbuilder/pe-mock-config.erb"), | ||
mode => "0644", | ||
} | ||
} |
Oops, something went wrong.