File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 52
52
}
53
53
$libdir = " ${prefixdir} /lib"
54
54
$httpd_daemon = ' /usr/sbin/apache2'
55
+ $rawx_go_daemon = ' /bin/oio-rawx'
55
56
$httpd_moduledir = " ${libdir} /apache2/modules"
56
57
$httpd_package_name = [' openio-sds' ]
57
58
$package_names = [' openio-sds' ]
79
80
}
80
81
}
81
82
$httpd_daemon = ' /usr/sbin/httpd'
83
+ $rawx_go_daemon = ' /bin/oio-rawx'
82
84
$httpd_moduledir = " ${libdir} /httpd/modules"
83
85
$httpd_package_name = [' openio-sds-mod-httpd' ]
84
86
$package_names = [' openio-sds-server' ]
Original file line number Diff line number Diff line change 23
23
24
24
$location = $hostname,
25
25
$slots = undef ,
26
+ $golang_version = false ,
26
27
$no_exec = false ,
27
28
) {
28
29
53
54
validate_integer($grid_hash_width )
54
55
validate_string($location )
55
56
if $slots { validate_array($slots ) }
57
+ validate_bool($golang_version )
56
58
57
59
# Namespace
58
60
if $action == ' create' {
86
88
# Init
87
89
gridinit::program { "${ns}-${type}-${num}" :
88
90
action => $action ,
89
- command => " ${openiosds::httpd_daemon} -D FOREGROUND -f ${openiosds::sysconfdir} /${ns} /${type} -${num} /${type} -${num} -httpd.conf" ,
91
+ command => $golang_version ? {
92
+ true => " ${openiosds::rawx_go_daemon} -D FOREGROUND -f ${openiosds::sysconfdir} /${ns} /${type} -${num} /${type} -${num} -httpd.conf" ,
93
+ false => " ${openiosds::httpd_daemon} -D FOREGROUND -f ${openiosds::sysconfdir} /${ns} /${type} -${num} /${type} -${num} -httpd.conf" ,
94
+ },
90
95
group => " ${ns} ,${type} ,${type} -${num} " ,
91
96
uid => $openiosds::user ,
92
97
gid => $openiosds::group ,
You can’t perform that action at this time.
0 commit comments