Skip to content

Commit

Permalink
Merge pull request #27 from kreczko/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
kreczko committed Oct 15, 2014
2 parents 49db3d6 + bf404c8 commit 81d247c
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 55 deletions.
11 changes: 6 additions & 5 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
file { $cache_dir: ensure => directory, }

concat { '/etc/arc.conf': require => Package['nordugrid-arc-compute-element'],
notify => Service['a-rex'],
}

concat::fragment { 'arc.conf_common':
Expand Down Expand Up @@ -138,24 +139,24 @@
'/etc/arc/',
'/etc/arc/runtime/',
'/etc/arc/runtime/ENV']: ensure => directory, }

# Create empty ATLAS-SITE-LCG for ATLAS prd jobs

file { [ '/etc/arc/runtime/APPS',
'/etc/arc/runtime/APPS/HEP',] :
ensure => directory,
require => File['/etc/arc/runtime'],
}
}

file { '/etc/arc/runtime/APPS/HEP/ATLAS-SITE-LCG':
ensure => present,
source => "puppet:///modules/${module_name}/RTEs/ATLAS-SITE-LCG",
require => File['/etc/arc/runtime/APPS/HEP'],
mode => 755,
}



# plugin to set a default runtime environment
file { '/usr/local/bin/default_rte_plugin.py':
ensure => present,
Expand Down
8 changes: 4 additions & 4 deletions templates/common.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[common]
hostname="<%= fqdn %>"
globus_tcp_port_range="<%= globus_port_range.join(',') %>"
globus_udp_port_range="<%= globus_port_range.join(',') %>"
hostname="<%= @fqdn %>"
globus_tcp_port_range="<%= @globus_port_range.join(',') %>"
globus_udp_port_range="<%= @globus_port_range.join(',') %>"

x509_user_key="/etc/grid-security/hostkey.pem"
x509_user_cert="/etc/grid-security/hostcert.pem"
x509_cert_dir="/etc/grid-security/certificates"
gridmap="/etc/grid-security/local-grid-mapfile"
lrms="<%= lrms %>"
lrms="<%= @lrms %>"

43 changes: 23 additions & 20 deletions templates/grid-manager.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,40 @@ debug="5"
<% else -%>
debug="3"
<%end -%>
logfile="<%= log_directory %>/grid-manager.log"
pidfile="<%= run_directory %>/grid-manager.pid"
logfile="<%= @log_directory %>/grid-manager.log"
pidfile="<%= @run_directory %>/grid-manager.pid"
mail="<%= mail %>"
joblog="<%= log_directory %>/gm-jobs.log"
joblog="<%= @log_directory %>/gm-jobs.log"
shared_filesystem="no"
max_job_control_requests=-1
max_infosys_requests=-1
wakeupperiod="180"
defaultttl="345600 432000"
runtimedir="/etc/arc/runtime"

<%if @benchmark_type == 'HEPSPEC' -%>
<% if @apel_testing == true -%>
jobreport="APEL:http://test-msg02.afroditi.hellasgrid.gr:6163"
jobreport_options="urbatch:50,archiving:/var/run/arc/urs,topic:/queue/global.accounting.cputest.CENTRAL,gocdb_name:<%= domain_name %>,use_ssl:false,Network:TEST-NWOB,benchmark_type:HEPSPEC,benchmark_value:<%= hepspec_per_core %>,benchmark_description:HS06"
<% else -%>
jobreport="APEL:https://mq.cro-ngi.hr:6162"
jobreport_options="urbatch:<%= @apel_urbatch %>,archiving:/var/run/arc/urs,topic:/queue/global.accounting.cpu.central,gocdb_name:<%= domain_name %>,use_ssl:true,Network:PROD,benchmark_type:HEPSPEC,benchmark_value:<%= hepspec_per_core %>,benchmark_description:HS06"
<%end -%>
<%elsif @benchmark_type == 'Si2k' -%>
<% if @apel_testing == true -%>
jobreport="APEL:http://test-msg02.afroditi.hellasgrid.gr:6163"
jobreport_options="urbatch:50,archiving:/var/run/arc/urs,topic:/queue/global.accounting.cputest.CENTRAL,gocdb_name:<%= domain_name %>,use_ssl:false,Network:TEST-NWOB,benchmark_type:Si2k,benchmark_value:<%= @cpu_scaling_reference_si00 %>,benchmark_description:Si2k"
<% else -%>
jobreport="APEL:https://mq.cro-ngi.hr:6162"
jobreport_options="urbatch:<%= @apel_urbatch %>,archiving:/var/run/arc/urs,topic:/queue/global.accounting.cpu.central,gocdb_name:<%= domain_name %>,use_ssl:true,Network:PROD,benchmark_type:Si2k,benchmark_value:<%= @cpu_scaling_reference_si00 %>,benchmark_description:Si2k"
<%end -%>
<%end -%>
<%- bench='HEPSPEC' -%>
<%- bench_val=@hepspec_per_core -%>
<%- bench_desc='HS06'-%>
<%- else -%>
<%- bench='Si2k' -%>
<%- bench_val=@cpu_scaling_reference_si00 -%>
<%- bench_desc='Si2k'-%>
<%- end -%>
<%- if @apel_testing == true -%>
<%- stomp_conf='topic:/queue/global.accounting.cputest.CENTRAL,use_ssl:false,Network:TEST-NWOB' -%>
<%- broker='APEL:http://test-msg02.afroditi.hellasgrid.gr:6163'-%>
<%- else -%>
<%- stomp_conf='topic:/queue/global.accounting.cpu.central,use_ssl:true,Network:PROD' -%>
<%- broker='APEL:https://mq.cro-ngi.hr:6162'-%>
<%- end -%>
jobreport="<%= broker %>"
jobreport_options="urbatch:<%= @apel_urbatch %>,archiving:<%= @accounting_archives %>,gocdb_name:<%= @domain_name %>,<%= stomp_conf %>,benchmark_type:<%= bench %>,benchmark_value:<%= bench_val %>,benchmark_description:<%= bench_desc %>"
jobreport_credentials="/etc/grid-security/hostkey.pem /etc/grid-security/hostcert.pem /etc/grid-security/certificates"
jobreport_publisher="jura"
# web service
#arex_mount_point="https://<%= fqdn %>:<%= arex_port %>/arex"
#arex_mount_point="https://<%= @fqdn %>:<%= @arex_port %>/arex"
#enable_emies_interface=yes

# sets a default run time environment (RTE)
Expand Down
4 changes: 2 additions & 2 deletions templates/gridftpd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ debug="5"
<% else -%>
debug="3"
<%end -%>
logfile="<%= log_directory %>/gridftpd.log"
pidfile="<%= run_directory %>/gridftpd.pid"
logfile="<%= @log_directory %>/gridftpd.log"
pidfile="<%= @run_directory %>/gridftpd.pid"
port="2811"
allowunknown="yes"

Expand Down
22 changes: 11 additions & 11 deletions templates/infosys.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ slapd_loglevel="0"
threads="32"
timelimit="1800"
infoproviders_timeout="1200"
registrationlog="<%= log_directory %>/inforegistration.log"
providerlog="<%= log_directory %>/infoprovider.log"
registrationlog="<%= @log_directory %>/inforegistration.log"
providerlog="<%= @log_directory %>/infoprovider.log"
provider_loglevel="3"
bdii_delete_delay=0
<%if @enable_glue2 == true then -%>
Expand All @@ -32,22 +32,22 @@ bdii_run_dir="/var/run/arc/bdii"
<%if @enable_glue1 == true then -%>
##TODO: add them to config parameters
[infosys/glue12]
resource_location="<%= resource_location %>"
resource_latitude=<%= resource_latitude %>
resource_longitude=<%= resource_longitude %>
cpu_scaling_reference_si00=<%= cpu_scaling_reference_si00 %>
processor_other_description="Cores=<%= @cores_per_worker %>,Benchmark=<%= hepspec_per_core %>-HEP-SPEC06"
glue_site_web="<%= glue_site_web %>"
glue_site_unique_id="<%= domain_name %>"
resource_location="<%= @resource_location %>"
resource_latitude=<%= @resource_latitude %>
resource_longitude=<%= @resource_longitude %>
cpu_scaling_reference_si00=<%= @cpu_scaling_reference_si00 %>
processor_other_description="Cores=<%= @cores_per_worker %>,Benchmark=<%= @hepspec_per_core %>-HEP-SPEC06"
glue_site_web="<%= @glue_site_web %>"
glue_site_unique_id="<%= @domain_name %>"
provide_glue_site_info="false"

[infosys/site/sitename]
unique_id="<%= fqdn %>"
unique_id="<%= @fqdn %>"
url="ldap://localhost:2135/mds-vo-name=resource,o=grid"
<% end -%>

[infosys/admindomain]
name="<%= domain_name %>"
name="<%= @domain_name %>"

#cluster registration block
<% @infosys_registration.keys.sort.each do |key| -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/lcmaps.db.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ verify_proxy = "lcmaps_verify_proxy.mod"
"--allow-limited-proxy"

pepc = "lcmaps_c_pep.mod"
"--pep-daemon-endpoint-url https://<%= argus_server %>:8154/authz"
"--pep-daemon-endpoint-url https://<%= @argus_server %>:8154/authz"
"--resourceid http://authz-interop.org/xacml/resource/resource-type/arc"
"--actionid http://glite.org/xacml/action/execute"
"--capath /etc/grid-security/certificates/"
Expand Down
24 changes: 12 additions & 12 deletions templates/queue.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ condor_requirements="<%= @condor_requirements -%>"
architecture="adotf"

#For inhomogenious clusters
nodecpu="<%= cluster_description['CPUModel'] %> @ <%= cluster_description['CPUClockSpeed'] %> MHz"
nodecpu="<%= @cluster_description['CPUModel'] %> @ <%= @cluster_description['CPUClockSpeed'] %> MHz"
nodememory="<%= @cluster_description['NodeMemory'] -%>"

opsys="<%= cluster_description['OSName'] %>"
opsys="<%= cluster_description['OSVersion'] %>"
opsys="<%= cluster_description['OSVersionName'] %>"
opsys="<%= @cluster_description['OSName'] %>"
opsys="<%= @cluster_description['OSVersion'] %>"
opsys="<%= @cluster_description['OSVersionName'] %>"

#cluster description for infosys
OSFamily="<%= cluster_description['OSFamily'] %>"
#OSName="<%= cluster_description['OSName'] %>"
#OSVersion="<%= cluster_description['OSVersion'] %>"
OSFamily="<%= @cluster_description['OSFamily'] %>"
#OSName="<%= @cluster_description['OSName'] %>"
#OSVersion="<%= @cluster_description['OSVersion'] %>"

CPUVendor="<%= cluster_description['CPUVendor'] %>"
CPUClockSpeed="<%= cluster_description['CPUClockSpeed'] %>"
CPUModel="<%= cluster_description['CPUModel'] %>"
CPUVendor="<%= @cluster_description['CPUVendor'] %>"
CPUClockSpeed="<%= @cluster_description['CPUClockSpeed'] %>"
CPUModel="<%= @cluster_description['CPUModel'] %>"
#benchmark results
<% @benchmark_results.each do |val| -%>
benchmark="<%= val %>"
<% end -%>

cpudistribution=<%= cluster_cpudistribution.join(',') %>
totalcpus="<%= cluster_description['totalcpus'] %>"
cpudistribution=<%= @cluster_cpudistribution.join(',') %>
totalcpus="<%= @cluster_description['totalcpus'] %>"

0 comments on commit 81d247c

Please sign in to comment.