-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jpuskar/0_1_1
0.1.1
- Loading branch information
Showing
19 changed files
with
2,495 additions
and
80 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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
.vagrant/ | ||
vagrant/ | ||
custom | ||
cognos_11_installer.properties | ||
cognos_11_installer.properties | ||
spec/fixtures | ||
pkg/ |
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,12 @@ | ||
# puppet-cognos changelog | ||
|
||
## v.0.1.1 | ||
+ Added support for IPA auth provider. | ||
+ Updates to systemd unit file: | ||
+ Added java_home. | ||
+ Added systemd_service_accounting. | ||
+ Added ld_library_path | ||
+ Added db2 service options. | ||
|
||
## v.0.1.0 | ||
+ Initial release. |
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
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
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,26 @@ | ||
# | ||
# example hiera: | ||
# cognos::auth_provider_config: | ||
# 'cognos1': | ||
# provider: 'cognos' | ||
# provider_config: | ||
# allow_anon: true | ||
# 'ipa1': | ||
# provider: 'ipa' | ||
# | ||
define cognos::config::auth_provider ( | ||
$provider, | ||
$provider_config, | ||
$instance_name = $title, | ||
) { | ||
|
||
if $provider == 'ipa' { | ||
cognos::config::auth_provider::ipa { | ||
$instance_name: | ||
* => $provider_config, | ||
} | ||
} else { | ||
fail("The following auth_provider is not supported: ${provider}.") | ||
} | ||
|
||
} |
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,14 @@ | ||
# | ||
define cognos::config::auth_provider::cognos( | ||
$allow_anon = false, | ||
$disable_cm = false, | ||
$instance_name = $title, | ||
) { | ||
|
||
concat::fragment {"auth_provider_${instance_name}": | ||
content => template('cognos/config/auth_provider/cogconfig_fragment_auth_provider_cognos.xml.erb'), | ||
target => "${cognos::installer_target_dir}/configuration/cogstartup.puppet.xml", | ||
order => '10', | ||
} | ||
|
||
} |
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,73 @@ | ||
# | ||
define cognos::config::auth_provider::ipa( | ||
$base_dn, | ||
$bind_username, | ||
$bind_password, | ||
$host_port, | ||
$account_business_phone = 'telephonenumber', | ||
$account_content_locale = 'preferredlanguage', | ||
$account_description = 'description', | ||
$account_email = 'mail', | ||
$account_fax_phone = 'facsimiletelephonenumber', | ||
$account_given_name = 'givenName', | ||
$account_home_phone = 'homephone', | ||
$account_mobile_phone = 'mobile', | ||
$account_name = 'displayName', | ||
$account_object_class = 'inetorgperson', | ||
$account_pager_phone = 'pager', | ||
$account_password = 'userPassword', | ||
$account_postal_address = 'postaladdress', | ||
$account_product_locale = 'preferredlanguage', | ||
$account_surname = 'sn', | ||
$account_user_name = 'uid', | ||
$allow_empty_password = false, | ||
$cam_id_attribute = 'dn', | ||
$data_encoding = 'UTF-8', | ||
$external_identity_mapping = '${environment("REMOTE_USER")}', | ||
$folder_description = 'description', | ||
$folder_name = 'ou', | ||
$folder_object_class = 'organizationalunit,nsContainer,ou', | ||
$group_description = 'description', | ||
$group_members = 'uniquemember', | ||
$group_name = 'cn', | ||
$group_object_class = 'groupofuniquenames', | ||
$instance_id = undef, | ||
$instance_name = $name, | ||
$size_limit = -1, | ||
$time_out = -1, | ||
$tenancy_info = '', | ||
$tenant_bounding_set_mapping = '', | ||
$ssl_certificate_database = undef, | ||
$use_external_identity = false, | ||
$use_bind_credentials_for_search = true, | ||
$user_lookup = '(uid=${userID})', | ||
) { | ||
|
||
# TODO: Array param for 'advancedProperties' | ||
# TODO: Array param for 'customProperties' | ||
|
||
# if $use_external_identity { | ||
# $str_use_external_identity = 'true' | ||
# } else { | ||
# $str_use_external_identity = 'false' | ||
# } | ||
|
||
if $ssl_certificate_database { | ||
$final_ssl_certificate_database = $ssl_certificate_database | ||
} else { | ||
$final_ssl_certificate_database = "${cognos::installer_target_dir}/configuration" | ||
} | ||
|
||
if $instance_id { | ||
$final_instance_id = $instance_id | ||
} else { | ||
$final_instance_id = "${instance_name}_1" | ||
} | ||
|
||
concat::fragment {"auth_provider_${instance_name}": | ||
content => template('cognos/config/auth_provider/cogconfig_fragment_auth_provider_ipa.xml.erb'), | ||
target => "${cognos::installer_target_dir}/configuration/cogstartup.puppet.xml", | ||
order => '10', | ||
} | ||
|
||
} |
Oops, something went wrong.