File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 8686 httpd boost-devel redhat-lsb mlocate lvm2 mpich-devel openmpi-devel R atlas-devel
8787 blas-devel fftw-devel libffi-devel openssl-devel dkms mariadb-devel libedit-devel
8888 libical-devel postgresql-devel postgresql-server sendmail libxml2-devel libglvnd-devel mdadm ]
89-
90- # Lustre Drivers for Centos 7.6
91- default [ 'cfncluster' ] [ 'lustre' ] [ 'version' ] = '2.10.6'
92- default [ 'cfncluster' ] [ 'lustre' ] [ 'kmod_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/kmod-lustre-client-2.10.6-1.el7.x86_64.rpm'
93- default [ 'cfncluster' ] [ 'lustre' ] [ 'client_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/lustre-client-2.10.6-1.el7.x86_64.rpm'
89+ if node [ 'platform_version' ] . split ( '.' ) [ 1 ] == '6'
90+ # Lustre Drivers for Centos 7.6
91+ default [ 'cfncluster' ] [ 'lustre' ] [ 'version' ] = '2.10.6'
92+ default [ 'cfncluster' ] [ 'lustre' ] [ 'kmod_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/kmod-lustre-client-2.10.6-1.el7.x86_64.rpm'
93+ default [ 'cfncluster' ] [ 'lustre' ] [ 'client_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.6/el7/client/RPMS/x86_64/lustre-client-2.10.6-1.el7.x86_64.rpm'
94+ elsif node [ 'platform_version' ] . split ( '.' ) [ 1 ] == '5'
95+ # Lustre Drivers for Centos 7.5
96+ default [ 'cfncluster' ] [ 'lustre' ] [ 'version' ] = '2.10.5'
97+ default [ 'cfncluster' ] [ 'lustre' ] [ 'kmod_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.5/el7.5.1804/client/RPMS/x86_64/kmod-lustre-client-2.10.5-1.el7.x86_64.rpm'
98+ default [ 'cfncluster' ] [ 'lustre' ] [ 'client_url' ] = 'https://downloads.whamcloud.com/public/lustre/lustre-2.10.5/el7.5.1804/client/RPMS/x86_64/lustre-client-2.10.5-1.el7.x86_64.rpm'
99+ end
94100 end
95101 default [ 'cfncluster' ] [ 'kernel_devel_pkg' ] [ 'name' ] = "kernel-lt-devel" if node [ 'platform' ] == 'centos' && node [ 'platform_version' ] . to_i >= 6 && node [ 'platform_version' ] . to_i < 7
96102 default [ 'cfncluster' ] [ 'rhel' ] [ 'extra_repo' ] = 'rhui-REGION-rhel-server-releases-optional' if node [ 'platform' ] == 'redhat' && node [ 'platform_version' ] . to_i >= 6 && node [ 'platform_version' ] . to_i < 7
Original file line number Diff line number Diff line change 1313# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16- if node [ 'platform' ] == 'centos'
16+ # Install only on Centos 7.6 and 7.5
17+ if node [ 'platform' ] == 'centos' && ( 5 ..6 ) . cover? ( node [ 'platform_version' ] . split ( '.' ) [ 1 ] . to_i )
1718 lustre_kmod_rpm = "#{ node [ 'cfncluster' ] [ 'sources_dir' ] } /kmod-lustre-client-#{ node [ 'cfncluster' ] [ 'lustre' ] [ 'version' ] } .x86_64.rpm"
1819 lustre_client_rpm = "#{ node [ 'cfncluster' ] [ 'sources_dir' ] } /lustre-client-#{ node [ 'cfncluster' ] [ 'lustre' ] [ 'version' ] } .x86_64.rpm"
1920
4445 yum_package 'lustre_client' do
4546 source lustre_client_rpm
4647 end
48+ elsif node [ 'platform' ] == 'centos'
49+ Chef ::Log . warn ( "Unsupported version of Centos, #{ node [ 'platform_version' ] } , supported versions are 7.6 and 7.5" )
4750end
You can’t perform that action at this time.
0 commit comments