File tree Expand file tree Collapse file tree 5 files changed +28
-1
lines changed Expand file tree Collapse file tree 5 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 11cookbook-rb-proxy CHANGELOG
22=============== 
33
4+ ## 4.1.3  
5+ 
6+   -  Juan Soto
7+     -  [ 133047f]  Get flow sensors
8+     -  [ 70a85d7]  Send flow sensors to firewall cookbook
9+     -  [ 6372c75]  Define flow sensors in the proxies
10+ 
411## 4.1.2  
512
613  -  Pablo Pérez
Original file line number Diff line number Diff line change 1+ module  RbProxy 
2+   module  Helpers 
3+     def  get_flow_sensors_info ( sensor_type ) 
4+       sensors_info  =  [ ] 
5+       begin 
6+         sensors  =  search ( :role ,  'run_list:role\[proxy-sensor\]' ) 
7+                   . map  {  |role | role . override_attributes [ 'redborder' ] [ 'sensors_mapping' ] [ sensor_type . to_s ]  } 
8+                   . reject  {  |s_type | s_type . nil?  || s_type . empty?  } 
9+         sensors_info . concat ( sensors )  unless  sensors . empty? 
10+       rescue  NoMethodError 
11+         sensors_info  =  [ ] 
12+       end 
13+       sensors_info 
14+     end 
15+   end 
16+ end 
Original file line number Diff line number Diff line change 33maintainer_email  '[email protected] ' 44license           'AGPL-3.0' 
55description       'Installs/Configures redborder proxy' 
6- version           '4.1.2 ' 
6+ version           '4.1.3 ' 
77
88depends  'rb-common' 
99depends  'rb-selinux' 
Original file line number Diff line number Diff line change 2828end 
2929
3030rb_firewall_config  'Configure Firewall'  do 
31+   flow_sensor_in_proxy_nodes  node . run_state [ 'sensors_info_all' ] [ 'flow-sensor' ] 
3132  vault_sensor_in_proxy_nodes  node . run_state [ 'sensors_info_all' ] [ 'vault-sensor' ] 
3233  if  proxy_services [ 'firewall' ] 
3334    action  :add 
Original file line number Diff line number Diff line change 5959# get sensors info full info 
6060node . run_state [ 'sensors_info_all' ]  =  get_sensors_all_info ( ) 
6161
62+ # get flow sensors in proxy info 
63+ node . run_state [ 'sensors_info_all' ] [ 'flow-sensor' ]  =  get_flow_sensors_info ( 'flow' ) 
64+ 
6265# get namespaces 
6366node . run_state [ 'namespaces' ]  =  get_namespaces 
6467
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments