forked from treydock/puppet-module-globus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to support Globus Connect Server 5.4.61+ (treydock#41)
* Remove client_id and client_secret parameters * Add project_id and project_admin parameters Fixes treydock#37
- Loading branch information
Showing
8 changed files
with
25 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ This module manages Globus Connect Server. | |
|
||
### Supported Versions of Globus | ||
|
||
Currently this module supports Globus 5.4. | ||
Currently this module supports Globus 5.4, at least 5.4.61 | ||
|
||
| Globus Version | Globus Puppet module versions | | ||
| -------------- | ----------------------------- | | ||
|
@@ -29,8 +29,6 @@ The following is the minimum parameters that must be passed to setup Globus v5.4 | |
```puppet | ||
class { 'globus': | ||
display_name => 'REPLACE My Site Globus', | ||
client_id => 'REPLACE-client-id-from-globus', | ||
client_secret => 'REPLACE-client-id-from-globus', | ||
owner => '[email protected]', | ||
organization => 'REPLACE-My Site', | ||
} | ||
|
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
# @example Install and setup a Globus v5.4 endpoint | ||
# class { 'globus': | ||
# display_name => 'REPLACE My Site Globus', | ||
# client_id => 'REPLACE-client-id-from-globus', | ||
# client_secret => 'REPLACE-client-id-from-globus', | ||
# owner => '[email protected]', | ||
# } | ||
# | ||
|
@@ -36,10 +34,10 @@ | |
# Globus package name | ||
# @param display_name | ||
# Display name to use when running 'globus-connect-server endpoint setup' | ||
# @param client_id | ||
# --client-id use when running 'globus-connect-server endpoint setup' | ||
# @param client_secret | ||
# --client-secret use when running 'globus-connect-server endpoint setup' | ||
# @param project_id | ||
# --project-id use when running 'globus-connect-server endpoint setup' | ||
# @param project_admin | ||
# --project-admin use when running 'globus-connect-server endpoint setup' | ||
# @param owner | ||
# --owner use when running 'globus-connect-server endpoint setup' | ||
# @param organization | ||
|
@@ -75,8 +73,6 @@ | |
class globus ( | ||
# Required | ||
String[1] $display_name, | ||
String[1] $client_id, | ||
String[1] $client_secret, | ||
String[1] $owner, | ||
String[1] $organization, | ||
|
||
|
@@ -97,6 +93,8 @@ | |
Stdlib::Absolutepath $deployment_key = '/var/lib/globus-connect-server/gcs-manager/deployment-key.json', | ||
|
||
# endpoint setup | ||
Optional[String[1]] $project_id = undef, | ||
Optional[String[1]] $project_admin = undef, | ||
Optional[Array] $keywords = undef, | ||
Optional[String] $department = undef, | ||
Optional[String] $contact_email = undef, | ||
|
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
pp = " | ||
class { 'globus': | ||
display_name => 'REPLACE My Site Globus', | ||
client_id => 'REPLACE-client-id-from-globus', | ||
client_secret => 'REPLACE-client-id-from-globus', | ||
owner => '[email protected]', | ||
organization => 'REPLACE-My Site', | ||
run_setup_commands => false, | ||
|
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 |
---|---|---|
|
@@ -11,8 +11,6 @@ | |
|
||
let(:default_params) do | ||
{ | ||
client_id: 'foo', | ||
client_secret: 'bar', | ||
owner: '[email protected]', | ||
display_name: 'Example', | ||
organization: 'Example' | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
let(:endpoint_setup) do | ||
[ | ||
'globus-connect-server endpoint setup', | ||
"'Example' --client-id foo --secret 'bar'", | ||
"'Example'", | ||
"--owner '[email protected]'", | ||
"--organization 'Example'", | ||
'--deployment-key /var/lib/globus-connect-server/gcs-manager/deployment-key.json', | ||
|
@@ -14,7 +14,6 @@ | |
let(:node_setup) do | ||
[ | ||
'globus-connect-server node setup', | ||
'--client-id foo', | ||
'--deployment-key /var/lib/globus-connect-server/gcs-manager/deployment-key.json', | ||
'--incoming-port-range 50000 51000', | ||
'--ip-address 172.16.254.254' | ||
|
@@ -28,9 +27,7 @@ | |
group: 'root', | ||
mode: '0700', | ||
show_diff: 'false', | ||
content: "export GLOBUS_CLIENT_SECRET=bar | ||
#{endpoint_setup.join(' ')} | ||
", | ||
content: "#{endpoint_setup.join(' ')}\n", | ||
) | ||
end | ||
|
||
|
@@ -41,17 +38,14 @@ | |
group: 'root', | ||
mode: '0700', | ||
show_diff: 'false', | ||
content: "export GLOBUS_CLIENT_SECRET=bar | ||
#{node_setup.join(' ')} | ||
", | ||
content: "#{node_setup.join(' ')}\n", | ||
) | ||
end | ||
|
||
it 'has endpoint setup command' do | ||
is_expected.to contain_exec('globus-endpoint-setup').with( | ||
path: '/usr/bin:/bin:/usr/sbin:/sbin', | ||
command: endpoint_setup.join(' '), | ||
environment: ['GLOBUS_CLIENT_SECRET=bar'], | ||
creates: '/var/lib/globus-connect-server/gcs-manager/deployment-key.json', | ||
logoutput: 'true', | ||
) | ||
|
@@ -61,7 +55,6 @@ | |
is_expected.to contain_exec('globus-node-setup').with( | ||
path: '/usr/bin:/bin:/usr/sbin:/sbin', | ||
command: node_setup.join(' '), | ||
environment: ['GLOBUS_CLIENT_SECRET=bar'], | ||
unless: 'test -s /var/lib/globus-connect-server/info.json', | ||
logoutput: 'true', | ||
require: 'Exec[globus-endpoint-setup]', | ||
|