This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh.johnbond.org:~ [ ./nmap/bin/nmap -PN -p 53 --script dns-client-subnet-scan --script-args dns-client-subnet-scan.domain=www.wikimedia.org 208.80.154.238 | |
| Starting Nmap 7.70SVN ( https://nmap.org ) at 2019-05-16 19:19 UTC | |
| Nmap scan report for ns0.wikimedia.org (208.80.154.238) | |
| Host is up (0.026s latency). | |
| PORT STATE SERVICE | |
| 53/tcp open domain | |
| | dns-client-subnet-scan: | |
| | www.wikimedia.org | |
| | 103.102.166.224 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/bin/ld: libpcap/libpcap.a(pcap-rdmasniff.o): in function `rdmasniff_read': | |
| /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:125: undefined reference to `ibv_get_cq_event' | |
| /usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:134: undefined reference to `ibv_ack_cq_events' | |
| /usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:146: undefined reference to `ibv_wc_status_str' | |
| /usr/bin/ld: libpcap/libpcap.a(pcap-rdmasniff.o): in function `rdmasniff_activate': | |
| /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:198: undefined reference to `ibv_open_device' | |
| /usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:205: undefined reference to `ibv_alloc_pd' | |
| /usr/bin/ld: /home/jbond/git/nmap/libpcap/./pcap-rdmasniff.c:212: undefined reference to `ibv_create_comp_channel' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RollingRestart(): | |
| def depool(): | |
| def check depool() | |
| def restart() | |
| supprted_damons = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use vars qw($VERSION %IRSSI); | |
| use Irssi; | |
| $VERSION = '0.01'; | |
| %IRSSI = ( | |
| authors => 'John Bond', | |
| contact => 'irssi@johnbond.org', | |
| name => 'wikimedia-ops script', | |
| description => 'Script to clean ops channle' . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class profile::standard ( | |
| Boolean $has_default_mail_relay = lookup('profile::standard::has_default_mail_relay', {'default_value' => true}), | |
| Boolean $has_admin = lookup('profile::standard::has_admin', {'default_value' => true}), | |
| ) { | |
| class {'standard': | |
| has_default_mail_relay => $has_default_mail_relay | |
| has_admin => $has_admin | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class profile::standard ( | |
| Boolean $has_default_mail_relay = lookup('profile::standard::has_default_mail_relay', {'default_value' => true}), | |
| Boolean $has_admin = lookup('profile::standard::has_admin', {'default_value' => true}), | |
| ) { | |
| class {'standard': | |
| has_default_mail_relay => $has_default_mail_relay | |
| has_admin => $has_admin | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override_dh_installinit: | |
| dh_installinit -ppuppet -- defaults-disabled | |
| dh_installinit --remaining-packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class::something ( | |
| String $ensure = 'stopped' | |
| ) { | |
| service { 'tata': | |
| ensure => $ensure, | |
| } | |
| } | |
| node default { | |
| include class::something |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%- | |
| @allow_parameters = { | |
| 'ALLOWDEVFILE' => '/dev/.udev/rules.d/root.rules', | |
| 'ALLOWIPCPROC' => '/usr/sbin/zabbix_agentd', | |
| 'ALLOWHIDDENFILE' => ['/dev/.initramfs', '/dev/.blkid.tab', '/dev/.blkid.tab.old'] | |
| } | |
| -%> | |
| <%- @allow_parameters.each_pair do |key, value| -%> | |
| <%- if value.kind_of?(String) -%> | |
| <%= key %>=<%= value %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $permit_root_login = $facts['environment'] ? { | |
| 'development' => 'yes' | |
| default => 'prohibit-password' | |
| } | |
| augeas {'/etc/ssh/sshd_config': | |
| context => '/files/etc/ssh/sshd_config', | |
| changes => ["set PermitRootLogin ${permit_root_login}",], | |
| } | |