Skip to content

Instantly share code, notes, and snippets.

John Bond b4ldr

Block or report user

Report or block b4ldr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c333de66dbf3d482a548e36bf8a2a95b
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Prometheus::Node_puppet_agent] is already declared in file /etc/puppet/modules/profile/manifests/base/puppet.pp:32; cannot redeclare at /etc/puppet/modules/profile/manifests/wmcs/instance.pp:93 at /etc/puppet/modules/profile/manifests/wmcs/instance.pp:93:5 on node apache01.sso.eqiad.wmflabs
View puppet.pp
file {'/var/cache/debconf/msodbcsql17.preseed':
ensure => file,
content => "msodbcsql17\tmsodbcsql/accept_eula\tboolean\ttrue\n",
}
package {'msodbcsql17':
ensure => installed,
responsefile => '/var/cache/debconf/msodbcsql17.preseed' # this is autorequired
}
View data.yaml
foo: &my_foo
- one
- two
- three
bar:
- *my_foo
- four
- five
'foo': ['one', 'two', 'three']
View ex.pp
package { ['foo', 'bar', 'baz']:
ensure => installed,
before => File['/etc/foo.conf']
}
file{'/etc/foo.conf':
ensure => file,
}
View common.yaml
hosts:
- database
- some_other_host
View gist:7afdf3f46feb424ce440acb0feca2aed
debian-9-x64 14:16:16$ puppet module install puppetlabs-concat -v 6.1.0
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└─┬ puppetlabs-concat (v6.1.0)
├── puppetlabs-stdlib (v6.0.0)
└── puppetlabs-translate (v2.0.0)
debian-9-x64 executed in 14.43 seconds
View common.yaml
profile::foo::bar::param foobar
View ssh_oom.pp
systemd::dropin_file { 'ssh.conf':
unit => 'ssh.service',
content => 'OOMScoreAdjust=0\n',
notify => Service['ssh'],
}
View gist:148b73167c5efa2df3e305f053831dce
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
You can’t perform that action at this time.