Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for setting the git repository source. #20

Merged
merged 1 commit into from
Mar 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# (string) Base directory where to build puppetboard vcsrepo and python virtualenv.
# Defaults to '/srv/puppetboard' ($::puppetboard::params::basedir)
#
# [*git_source*]
# (string) Location of upstream Puppetboard GIT repository
# Defaults to 'https://github.com/nedap/puppetboard' ($::puppetboard::params::git_source)
#
# [*puppetdb_host*]
# (string) PuppetDB Host
# Defaults to 'localhost' ($::puppetboard::params::puppetdb_host)
Expand Down Expand Up @@ -94,6 +98,7 @@
$user = $::puppetboard::params::user,
$group = $::puppetboard::params::group,
$basedir = $::puppetboard::params::basedir,
$git_source = $::puppetboard::params::git_source,

$puppetdb_host = $::puppetboard::params::puppetdb_host,
$puppetdb_port = $::puppetboard::params::puppetdb_port,
Expand Down Expand Up @@ -134,7 +139,7 @@
ensure => present,
provider => git,
owner => $user,
source => "https://github.com/nedap/puppetboard",
source => $git_source,
revision => $revision,
require => User[$user],
}
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$user = 'puppetboard'
$group = 'puppetboard'
$basedir = '/srv/puppetboard'
$git_source = 'https://github.com/nedap/puppetboard'

$puppetdb_host = 'localhost'
$puppetdb_port = 8080
Expand Down