-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09e6c41
commit f99171f
Showing
6 changed files
with
50 additions
and
2 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
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 |
---|---|---|
|
@@ -22,4 +22,6 @@ | |
package { $packages: | ||
ensure => 'installed' | ||
} | ||
|
||
include rjil::jiocloud::jenkins::cloudenvs | ||
} |
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,10 @@ | ||
define rjil::jiocloud::jenkins::cloudenv( | ||
$vars = {} | ||
) { | ||
file { "/var/lib/jenkins/cloud.${name}.env": | ||
content => template("rjil/cloudenv.erb"), | ||
owner => jenkins, | ||
group => jenkins, | ||
mode => '0600' | ||
} | ||
} |
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,5 @@ | ||
class rjil::jiocloud::jenkins::cloudenvs( | ||
$envs = {} | ||
) { | ||
create_resources(rjil::jiocloud::jenkins::cloudenv, $envs) | ||
} |
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,24 @@ | ||
class rjil::jiocloud::undercloud::aptrepo( | ||
$basepath = '/var/lib/reprepro' | ||
) { | ||
class { '::reprepro': | ||
basepath => $basepath | ||
} | ||
|
||
reprepro::repository { 'internal': | ||
basepath => $basepath | ||
} | ||
|
||
reprepro::distribution { 'precise': | ||
basedir => $basedir, | ||
repository => 'internal', | ||
origin => 'JioCloud', | ||
label => 'JioCloud', | ||
suite => 'trusty', | ||
architectures => 'amd64 i386', | ||
components => 'main', | ||
description => 'Package repository for local customisations', | ||
sign_with => 'F4D5DAA8', | ||
not_automatic => 'No', | ||
} | ||
} |
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,3 @@ | ||
<% @vars.each do |key, val| -%> | ||
export <%= key %>=<%= val %> | ||
<% end -%> |