File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
hieradata/cluster/antu/role Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11---
22classes :
3+ - " profile::core::sysctl::lhn"
34 - " profile::core::sysctl::rp_filter"
45profile::core::sysctl::rp_filter::enable : false
6+ rke2::config :
7+ node-label :
8+ - " role=storage-node"
Original file line number Diff line number Diff line change 1919 end
2020 let ( :node_params ) do
2121 {
22- role : 'rke ' ,
22+ role : 'rke2server ' ,
2323 site : 'ls' ,
2424 cluster : 'antu' ,
2525 }
3030 include_examples 'baremetal'
3131 include_context 'with nm interface'
3232 include_examples 'ceph cluster'
33- include_examples 'docker' , docker_version : '25.0.3'
33+
34+ it do
35+ expect ( catalogue . resource ( 'class' , 'rke2' ) [ :config ] ) . to include (
36+ 'node-label' => [ 'role=storage-node' ]
37+ )
38+ end
3439
3540 it do
3641 is_expected . to contain_class ( 'profile::core::sysctl::rp_filter' ) . with_enable ( false )
4853 end
4954
5055 it do
51- is_expected . to contain_class ( 'rke' ) . with (
52- version : '1.8.0'
56+ is_expected . to contain_class ( 'rke2' ) . with (
57+ node_type : 'server' ,
58+ release_series : '1.32' ,
59+ version : '1.32.2~rke2r1'
5360 )
5461 end
5562
You can’t perform that action at this time.
0 commit comments