Skip to content

Commit

Permalink
add parameter to configure storage converter plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aythami authored and bastelfreak committed May 11, 2020
1 parent f5851f4 commit cb0c983
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 104 deletions.
1 change: 1 addition & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
$user = $rundeck::user
$security_roles_array_enabled = $rundeck::security_roles_array_enabled
$security_roles_array = $rundeck::security_roles_array
$storage_converter = $rundeck::storage_converter

File {
owner => $user,
Expand Down
51 changes: 26 additions & 25 deletions manifests/config/global/rundeck_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,32 @@

assert_private()

$clustermode_enabled = $rundeck::config::clustermode_enabled
$execution_mode = $rundeck::config::execution_mode
$file_keystorage_dir = $rundeck::config::file_keystorage_dir
$vault_keystorage_prefix = $rundeck::config::vault_keystorage_prefix
$vault_keystorage_url = $rundeck::config::vault_keystorage_url
$vault_keystorage_approle_approleid = $rundeck::config::vault_keystorage_approle_approleid
$vault_keystorage_approle_secretid = $rundeck::config::vault_keystorage_approle_secretid
$vault_keystorage_approle_authmount = $rundeck::config::vault_keystorage_approle_authmount
$vault_keystorage_authbackend = $rundeck::config::vault_keystorage_authbackend
$grails_server_url = $rundeck::config::grails_server_url
$group = $rundeck::config::group
$gui_config = $rundeck::config::gui_config
$key_storage_type = $rundeck::config::key_storage_type
$mail_config = $rundeck::config::mail_config
$preauthenticated_config = $rundeck::config::preauthenticated_config
$projects_storage_type = $rundeck::config::projects_storage_type
$properties_dir = $rundeck::config::properties_dir
$quartz_job_threadcount = $rundeck::config::quartz_job_threadcount
$rd_loglevel = $rundeck::config::rd_loglevel
$rdeck_base = $rundeck::config::rdeck_base
$rdeck_config_template = $rundeck::config::rdeck_config_template
$rss_enabled = $rundeck::config::rss_enabled
$security_config = $rundeck::config::security_config
$storage_encrypt_config = $rundeck::config::storage_encrypt_config
$user = $rundeck::config::user
$clustermode_enabled = $rundeck::config::clustermode_enabled
$execution_mode = $rundeck::config::execution_mode
$file_keystorage_dir = $rundeck::config::file_keystorage_dir
$vault_keystorage_prefix = $rundeck::config::vault_keystorage_prefix
$vault_keystorage_url = $rundeck::config::vault_keystorage_url
$vault_keystorage_approle_approleid = $rundeck::config::vault_keystorage_approle_approleid
$vault_keystorage_approle_secretid = $rundeck::config::vault_keystorage_approle_secretid
$vault_keystorage_approle_authmount = $rundeck::config::vault_keystorage_approle_authmount
$vault_keystorage_authbackend = $rundeck::config::vault_keystorage_authbackend
$grails_server_url = $rundeck::config::grails_server_url
$group = $rundeck::config::group
$gui_config = $rundeck::config::gui_config
$key_storage_type = $rundeck::config::key_storage_type
$mail_config = $rundeck::config::mail_config
$preauthenticated_config = $rundeck::config::preauthenticated_config
$projects_storage_type = $rundeck::config::projects_storage_type
$properties_dir = $rundeck::config::properties_dir
$quartz_job_threadcount = $rundeck::config::quartz_job_threadcount
$rd_loglevel = $rundeck::config::rd_loglevel
$rdeck_base = $rundeck::config::rdeck_base
$rdeck_config_template = $rundeck::config::rdeck_config_template
$rss_enabled = $rundeck::config::rss_enabled
$security_config = $rundeck::config::security_config
$storage_encrypt_config = $rundeck::config::storage_encrypt_config
$user = $rundeck::config::user
$storage_converter = $rundeck::config::storage_converter

$properties_file = "${properties_dir}/rundeck-config.groovy"

Expand Down
162 changes: 83 additions & 79 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
# [*gui_config*]
# Hash of properties for customizing the [Rundeck GUI](http://rundeck.org/docs/administration/gui-customization.html)
#
# [*storage_converter*]
# Hash of properties to apply a [storage converter plugin](http://rundeck.org/2.5.0/plugins-user-guide/storage-plugins.html#storage-converter)
#
# [*java_home*]
# Set the home directory of java.
#
Expand Down Expand Up @@ -212,85 +215,86 @@
# config.password: 'verysecure'
#
class rundeck (
Array[Hash] $acl_policies = $rundeck::params::acl_policies,
String $acl_template = $rundeck::params::acl_template,
Array[Hash] $api_policies = $rundeck::params::api_policies,
String $api_template = $rundeck::params::api_template,
Hash $auth_config = $rundeck::params::auth_config,
String $auth_template = $rundeck::params::auth_template,
Array $auth_types = $rundeck::params::auth_types,
Boolean $clustermode_enabled = $rundeck::params::clustermode_enabled,
Hash $database_config = $rundeck::params::database_config,
Optional[Enum['active', 'passive']] $execution_mode = undef,
Stdlib::Absolutepath $file_keystorage_dir = $rundeck::params::file_keystorage_dir,
Hash $file_keystorage_keys = $rundeck::params::file_keystorage_keys,
Hash $framework_config = $rundeck::params::framework_config,
Stdlib::HTTPUrl $grails_server_url = $rundeck::params::grails_server_url,
Hash $gui_config = $rundeck::params::gui_config,
Optional[Stdlib::Absolutepath] $java_home = undef,
String $jvm_args = $rundeck::params::jvm_args,
Hash $kerberos_realms = $rundeck::params::kerberos_realms,
String $key_password = $rundeck::params::key_password,
Enum['db', 'file', 'vault'] $key_storage_type = $rundeck::params::key_storage_type,
Stdlib::Absolutepath $keystore = $rundeck::params::keystore,
Optional[Stdlib::HTTPSUrl] $vault_keystorage_url = undef,
Optional[String[1]] $vault_keystorage_prefix = undef,
Optional[String[1]] $vault_keystorage_approle_approleid = undef,
Optional[String[1]] $vault_keystorage_approle_secretid = undef,
Optional[String[1]] $vault_keystorage_approle_authmount = undef,
Optional[String[1]] $vault_keystorage_authbackend = undef,
String $keystore_password = $rundeck::params::keystore_password,
String $log_properties_template = $rundeck::params::log_properties_template,
Hash $mail_config = $rundeck::params::mail_config,
Boolean $sshkey_manage = $rundeck::params::sshkey_manage,
Stdlib::Absolutepath $ssl_keyfile = $rundeck::params::ssl_keyfile,
Stdlib::Absolutepath $ssl_certfile = $rundeck::params::ssl_certfile,
Boolean $manage_default_admin_policy = $rundeck::params::manage_default_admin_policy,
Boolean $manage_default_api_policy = $rundeck::params::manage_default_api_policy,
Boolean $manage_repo = $rundeck::params::manage_repo,
String $package_ensure = $rundeck::params::package_ensure,
Hash $preauthenticated_config = $rundeck::params::preauthenticated_config,
Hash $projects = $rundeck::params::projects,
String $projects_description = $rundeck::params::projects_default_desc,
String $projects_organization = $rundeck::params::projects_default_org,
Enum['db', 'filesystem'] $projects_storage_type = $rundeck::params::projects_storage_type,
Integer $quartz_job_threadcount = $rundeck::params::quartz_job_threadcount,
Rundeck::Loglevel $rd_loglevel = $rundeck::params::loglevel,
Rundeck::Loglevel $rd_auditlevel = $rundeck::params::loglevel,
String $rdeck_config_template = $rundeck::params::rdeck_config_template,
Stdlib::Absolutepath $rdeck_home = $rundeck::params::rdeck_home,
Boolean $manage_home = $rundeck::params::manage_home,
Optional[String] $rdeck_profile_template = undef,
String $realm_template = $rundeck::params::realm_template,
Stdlib::HTTPUrl $repo_yum_source = $rundeck::params::repo_yum_source,
String $repo_yum_gpgkey = $rundeck::params::repo_yum_gpgkey,
Stdlib::HTTPUrl $repo_apt_source = $rundeck::params::repo_apt_source,
String $repo_apt_key_id = $rundeck::params::repo_apt_key_id,
String $repo_apt_keyserver = $rundeck::params::repo_apt_keyserver,
Boolean $rss_enabled = $rundeck::params::rss_enabled,
Hash $security_config = $rundeck::params::security_config,
String $security_role = $rundeck::params::security_role,
Optional[String] $server_web_context = undef,
Optional[String] $service_config = undef,
Stdlib::Absolutepath $service_logs_dir = $rundeck::params::service_logs_dir,
String $service_name = $rundeck::params::service_name,
Optional[String] $service_script = undef,
Enum['stopped', 'running'] $service_ensure = $rundeck::params::service_ensure,
Integer $session_timeout = $rundeck::params::session_timeout,
Boolean $ssl_enabled = $rundeck::params::ssl_enabled,
Stdlib::Port $ssl_port = $rundeck::params::ssl_port,
Stdlib::Absolutepath $truststore = $rundeck::params::truststore,
String $truststore_password = $rundeck::params::truststore_password,
String $user = $rundeck::params::user,
String $group = $rundeck::params::group,
Boolean $manage_user = $rundeck::params::manage_user,
Boolean $manage_group = $rundeck::params::manage_group,
Optional[Integer] $user_id = undef,
Optional[Integer] $group_id = undef,
String $file_default_mode = $rundeck::params::file_default_mode,
Boolean $security_roles_array_enabled = $rundeck::params::security_roles_array_enabled,
Array $security_roles_array = $rundeck::params::security_roles_array,
Hash[String,String] $storage_encrypt_config = {},
Array[Hash] $acl_policies = $rundeck::params::acl_policies,
String $acl_template = $rundeck::params::acl_template,
Array[Hash] $api_policies = $rundeck::params::api_policies,
String $api_template = $rundeck::params::api_template,
Hash $auth_config = $rundeck::params::auth_config,
String $auth_template = $rundeck::params::auth_template,
Array $auth_types = $rundeck::params::auth_types,
Boolean $clustermode_enabled = $rundeck::params::clustermode_enabled,
Hash $database_config = $rundeck::params::database_config,
Optional[Enum['active', 'passive']] $execution_mode = undef,
Stdlib::Absolutepath $file_keystorage_dir = $rundeck::params::file_keystorage_dir,
Hash $file_keystorage_keys = $rundeck::params::file_keystorage_keys,
Hash $framework_config = $rundeck::params::framework_config,
Stdlib::HTTPUrl $grails_server_url = $rundeck::params::grails_server_url,
Hash $gui_config = $rundeck::params::gui_config,
Optional[Stdlib::Absolutepath] $java_home = undef,
String $jvm_args = $rundeck::params::jvm_args,
Hash $kerberos_realms = $rundeck::params::kerberos_realms,
String $key_password = $rundeck::params::key_password,
Enum['db', 'file', 'vault'] $key_storage_type = $rundeck::params::key_storage_type,
Stdlib::Absolutepath $keystore = $rundeck::params::keystore,
Optional[Stdlib::HTTPSUrl] $vault_keystorage_url = undef,
Optional[String[1]] $vault_keystorage_prefix = undef,
Optional[String[1]] $vault_keystorage_approle_approleid = undef,
Optional[String[1]] $vault_keystorage_approle_secretid = undef,
Optional[String[1]] $vault_keystorage_approle_authmount = undef,
Optional[String[1]] $vault_keystorage_authbackend = undef,
String $keystore_password = $rundeck::params::keystore_password,
String $log_properties_template = $rundeck::params::log_properties_template,
Hash $mail_config = $rundeck::params::mail_config,
Boolean $sshkey_manage = $rundeck::params::sshkey_manage,
Stdlib::Absolutepath $ssl_keyfile = $rundeck::params::ssl_keyfile,
Stdlib::Absolutepath $ssl_certfile = $rundeck::params::ssl_certfile,
Boolean $manage_default_admin_policy = $rundeck::params::manage_default_admin_policy,
Boolean $manage_default_api_policy = $rundeck::params::manage_default_api_policy,
Boolean $manage_repo = $rundeck::params::manage_repo,
String $package_ensure = $rundeck::params::package_ensure,
Hash $preauthenticated_config = $rundeck::params::preauthenticated_config,
Hash $projects = $rundeck::params::projects,
String $projects_description = $rundeck::params::projects_default_desc,
String $projects_organization = $rundeck::params::projects_default_org,
Enum['db', 'filesystem'] $projects_storage_type = $rundeck::params::projects_storage_type,
Integer $quartz_job_threadcount = $rundeck::params::quartz_job_threadcount,
Rundeck::Loglevel $rd_loglevel = $rundeck::params::loglevel,
Rundeck::Loglevel $rd_auditlevel = $rundeck::params::loglevel,
String $rdeck_config_template = $rundeck::params::rdeck_config_template,
Stdlib::Absolutepath $rdeck_home = $rundeck::params::rdeck_home,
Boolean $manage_home = $rundeck::params::manage_home,
Optional[String] $rdeck_profile_template = undef,
String $realm_template = $rundeck::params::realm_template,
Stdlib::HTTPUrl $repo_yum_source = $rundeck::params::repo_yum_source,
String $repo_yum_gpgkey = $rundeck::params::repo_yum_gpgkey,
Stdlib::HTTPUrl $repo_apt_source = $rundeck::params::repo_apt_source,
String $repo_apt_key_id = $rundeck::params::repo_apt_key_id,
String $repo_apt_keyserver = $rundeck::params::repo_apt_keyserver,
Boolean $rss_enabled = $rundeck::params::rss_enabled,
Hash $security_config = $rundeck::params::security_config,
String $security_role = $rundeck::params::security_role,
Optional[String] $server_web_context = undef,
Optional[String] $service_config = undef,
Stdlib::Absolutepath $service_logs_dir = $rundeck::params::service_logs_dir,
String $service_name = $rundeck::params::service_name,
Optional[String] $service_script = undef,
Enum['stopped', 'running'] $service_ensure = $rundeck::params::service_ensure,
Integer $session_timeout = $rundeck::params::session_timeout,
Boolean $ssl_enabled = $rundeck::params::ssl_enabled,
Stdlib::Port $ssl_port = $rundeck::params::ssl_port,
Stdlib::Absolutepath $truststore = $rundeck::params::truststore,
String $truststore_password = $rundeck::params::truststore_password,
String $user = $rundeck::params::user,
String $group = $rundeck::params::group,
Boolean $manage_user = $rundeck::params::manage_user,
Boolean $manage_group = $rundeck::params::manage_group,
Optional[Integer] $user_id = undef,
Optional[Integer] $group_id = undef,
String $file_default_mode = $rundeck::params::file_default_mode,
Boolean $security_roles_array_enabled = $rundeck::params::security_roles_array_enabled,
Array $security_roles_array = $rundeck::params::security_roles_array,
Hash[String,String] $storage_encrypt_config = {},
Hash $storage_converter = {},
) inherits rundeck::params {

validate_rd_policy($acl_policies)
Expand Down
Loading

0 comments on commit cb0c983

Please sign in to comment.