Page MenuHomeDevCentral

Use IPv6 explicitly to bind eggdrop connection
Needs ReviewPublic

Authored by dereckson on Fri, Apr 3, 18:17.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Maniphest Tasks
T2296: Bind correctly to proper IPv6
Summary

Doesn't depend of any DNS resolution.

Ref T2296

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
ipv6-vhost6
Build Status
Buildable 6565
Build 6849: arc lint + arc unit

Event Timeline

dereckson created this revision.

Test procedure :: Step 1 :: Validate settings at eggdrop level

See https://devcentral.nasqueron.org/T2296#36404

Test procedure :: Step 2 :: Validate YAML syntax

Python interpreter
$ python3
>>> import yaml
>>> pillar = yaml.safe_load(open("pillar/viperserv/bots.sls"))
>>> pillar["viperserv_bots"]["Wearg"]
{'realname': 'RabbitMQ broker client', 'ip': '2001:bc8:2e84:700:0:dead:c0de:b07', 'listen': {'users': 18010, 'bots': 19010}, 'scripts': ['Wearg/Broker.tcl', 'Wearg/Notifications.tcl', 'Wearg/ServersLog.tcl', 'Wearg/Time.tcl'], 'nickserv': True, 'ensure_is_live': True}

Test procedure :: Step 3 :: Apply change

WindRiver
$ cp roles/viperserv/eggdrop/config.sls tmp.sls
$ $EDITOR tmp.sls # remove Vault dependent /srv/viperserv/.credentials section
$ salt-call --local state.apply tmp
----------                                                 
          ID: /srv/viperserv/Wearg/eggdrop.conf                                                                        
    Function: file.managed                                 
      Result: True                                                                                                     
     Comment: File /srv/viperserv/Wearg/eggdrop.conf updated                                                           
     Started: 18:35:33.915318                              
    Duration: 13.604 ms                                                                                                
     Changes:                                                                                                          
              ----------                                                                                               
              diff:                                                                                                    
                  ---                                      
                  +++                                                                                                  
                  @@ -37,7 +37,7 @@                        
                   set altnick Wearg`                                                                                  
                   set realname "RabbitMQ broker client"                                                               
                                                           
                  -#set vhost6 viperserv.nasqueron.org                                                                 
                  +set vhost6 2001:bc8:2e84:700:0:dead:c0de:b07       
                   set listen-addr 2001:bc8:2e84:700:0:dead:c0de:b07                                                   
                   set prefer-ipv6 1