Skip to content

Commit

Permalink
adding environments for the VOs
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Oct 3, 2013
1 parent e28b5cb commit 6b48a78
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ dependency 'puppetlabs-stdlib', '>=4.1.0'
dependency 'kreczko-grid_pool_accounts', '>=0.0.1'
dependency 'cernops-glexecwn', '>=0.0.1'
dependency 'cernops-vosupport', '>=0.0.1'
dependency 'puppetlabs-concat', '>=1.0.0'
14 changes: 14 additions & 0 deletions manifests/glexec_worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
$site_name = 'EXAMPLE',
$srm_path = '',
$supported_vos = [],
$vo_environments = {
'cms' => {
'vo_sw_dir' => '/cvmfs/cms.cern.ch',
'voname' => 'cms',
}
}
,
$default_se = unset,
$user_white_list = ' ',) {
yumhelper::modify { 'enable-epel-for-glexecwn':
repository => 'epel',
Expand Down Expand Up @@ -57,4 +65,10 @@
Yumhelper::Modify['enable-epel-for-glexecwn'] -> Class['glexecwn'] ->
Yumhelper::Modify['disable-epel-for-glexecwn']

# needs voname,vo_sw_dir and vo_default_se
$defaults = {
'vo_default_se' => $default_se,
}

create_resources('vosupport::voenv', $vo_environments, $defaults)
}
4 changes: 4 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
{
"name": "cernops/vosupport",
"version_requirement": "\u003e\u003d0.0.1"
},
{
"name": "puppetlabs/concat",
"version_requirement": "\u003e\u003d1.0.0"
}
],
"types": [],
Expand Down

0 comments on commit 6b48a78

Please sign in to comment.