- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 131
 
fix snmptrapd on ubuntu and debian #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           I think I have just fixed all test problems.  | 
    
| 
           Hi @amateo thank you for this PR. Is it duplicate with old #114 ? If yes can you close the old #114. Currently the module does not have acceptance about  We can gives some guidance about acceptance tests with beaker.  | 
    
        
          
                manifests/init.pp
              
                Outdated
          
        
      | require => Package['snmpd'], | ||
| notify => Service['snmptrapd'], | ||
| } | ||
| } elsif $facts['os']['family'] == 'Debian' and versioncmp($facts['os']['release']['major'], '16.04') >= 0 { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/ structred facts . I am happy.
| ).that_requires('Package[snmpd]').that_notifies('Service[snmpd]') | ||
| } | ||
| it { is_expected.not_to contain_file('snmptrapd.sysconfig') } | ||
| case facts[:os]['release']['major'] | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeeess structured facts \o/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set this previous question as a review comment :
Currently the module does not have acceptance about
snmptrapd. Can you add beaker acceptance tests about this ?We can gives some guidance about acceptance tests with beaker.
The current acceptance tests are here :
https://github.com/voxpupuli/puppet-snmp/blob/master/spec/acceptance/snmp_spec.rb
| 
           @Dan33l , sorry, I missed it with the other comments. Can you guide to me? What is the purpose of this acceptance test? I can add: (with the provided manifests it shouldn't be running). But I'm not really sure it this is enough. Or should I provide another configuration where snmptrapd should be running?  | 
    
| 
           It looks that parameter  First step should be to play around this parameter.  | 
    
| 
           Most of this is also in #156  | 
    
          
 I have configured the  Then I have another context to check that when  If you think there should be done different/more tests, tell me.  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When odd alignments are fixed, the PR looks to be ready for merge.
        
          
                spec/acceptance/snmp_spec.rb
              
                Outdated
          
        
      | authpass => '456authpass', | ||
| privpass => '789privpass', | ||
| } | ||
| privpass => '789privpass', | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pp part does not have to be modified.
Odd alignments have to be fixed.
Since Ubuntu 16.04 snmptrad is provided by another package (snmptrapd).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test "snmp class with snmptrapd running Process snmptrapd should be running" is now failing. Can you have a look ?
          
 Sorry, I deleted a commit fixing indentation. It should be fixed now  | 
    
| 
           I has failed in puppet6 on debian 8 test, but the fail is not directly related with puppet code, but connecting to the docker container (I think).  | 
    
They both use a snmptrapd package too
| 
           All fixed.  | 
    
| 
           LGTM. Thank you for this PR.  | 
    
Since Ubuntu 16.04 snmptrad is provided by another package (snmptrapd).