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 rundeck::projects to specify projects in your rundeck instance #127

Merged
merged 1 commit into from
Sep 27, 2015
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Web context path to use, such as "/rundeck". http://host.domain:port/server_web_
#####`ssl_enabled`
Enable ssl for the Rundeck web application.

#####`projects`
The hash of projects in your instance.

#####`projects_organization`
The organization value that will be set by default for any projects.

Expand Down
3 changes: 3 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
$jvm_args = $rundeck::jvm_args,
$java_home = $rundeck::java_home,
$ssl_enabled = $rundeck::ssl_enabled,
$projects = $rundeck::projects,
$projects_organization = $rundeck::projects_default_org,
$projects_description = $rundeck::projects_default_desc,
$rd_loglevel = $rundeck::rd_loglevel,
Expand Down Expand Up @@ -136,4 +137,6 @@
class { 'rundeck::config::global::project': } ->
class { 'rundeck::config::global::rundeck_config': } ->
class { 'rundeck::config::global::ssl': }

create_resources(rundeck::config::project, $projects)
}
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
# [*ssl_enabled*]
# Enable ssl for the rundeck web application.
#
# [*projects*]
# The hash of projects in your instance.
#
# [*projects_organization*]
# The organization value that will be set by default for any projects.
#
Expand Down Expand Up @@ -118,6 +121,7 @@
$service_logs_dir = $rundeck::params::service_logs_dir,
$ssl_enabled = $rundeck::params::ssl_enabled,
$framework_config = $rundeck::params::framework_config,
$projects = $rundeck::params::projects,
$projects_organization = $rundeck::params::projects_default_org,
$projects_description = $rundeck::params::projects_default_desc,
$rd_loglevel = $rundeck::params::loglevel,
Expand Down Expand Up @@ -150,6 +154,7 @@
validate_array($auth_types)
validate_hash($auth_config)
validate_bool($ssl_enabled)
validate_hash($projects)
validate_string($projects_organization)
validate_string($projects_description)
validate_re($rd_loglevel, ['^ALL$', '^DEBUG$', '^ERROR$', '^FATAL$', '^INFO$', '^OFF$', '^TRACE$', '^WARN$'])
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
'apiCookieAccess' => true
}

$projects = {}
$projects_default_org = ''
$projects_default_desc = ''

Expand Down