Skip to content

Instantly share code, notes, and snippets.

# puppet agent --parser=future -t --environment=future_parser
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_reboot_required.rb
Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Only subclasses can override parameters at 13:/etc/puppet/environments/production/modules/myclass/manifests/init.pp on node host1.some.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
from kafka import KafkaConsumer
from kafka.structs import TopicPartition
import argparse
import os
KAFKA_SERVER='kafka.server.com'
KAFKA_PORT=9092
SVN_TOPIC='svnevent'
# hiera --hash networking.network environment=net_config clientcert='my.host.com'
nil
# hiera --hash networking environment=net_config clientcert='my.host.com'
{"mac_interfaces"=>
{"20:60:90:00:C0:40"=>
{"ipaddress"=>"10.3.1.2",
"enable"=>true,
"ensure"=>"present",
"bootproto"=>"static",
"netmask"=>"255.255.255.0"}},
@droopy4096
droopy4096 / docker-compose.yaml
Created October 6, 2017 00:34
Mailman-core configs
# docker-compose -f compose-file config:
mailman-core:
container_name: mailman-core
depends_on:
- database
environment:
DATABASE_CLASS: mailman.database.postgresql.PostgreSQLDatabase
DATABASE_TYPE: postgres
DATABASE_URL: postgres://mailman:mailmanpass@database/mailmandb
DB_NAME: mailmandb
Jan 10 16:25:39 2018 (92) Connection to HyperKitty failed: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))
Jan 10 16:25:39 2018 (92) Exception in the HyperKitty archiver: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))
Jan 10 16:25:39 2018 (92) Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 302, in _error_catcher
yield
File "/usr/local/lib/python3.6/site-packages/urllib3/response.py", line 384, in read
data = self._fp.read(amt)
File "/usr/local/lib/python3.6/http/client.py", line 449, in read
n = self.readinto(b)
File "/usr/local/lib/python3.6/http/client.py", line 493, in readinto
@droopy4096
droopy4096 / compose_setup.pp
Created February 9, 2018 23:05
docker compose wrapper with vcsrepo
define compose_setup(
$compose_source_repo,
$compose_source_revision,
$compose_deploy_dir,
$compose_ensure='present',
$compose_file='docker-compose.yml',
$compose_identity=undef,
$compose_stage_dir=undef,
$compose_source_repo_force=false,
$compose_ensure='latest',
- hosts: puppetmaster
tasks:
- name: stop master puppet
service: name=httpd state=stopped
tags:
- master
- service
- stop
- name: kill remaining httpd process
--langdef=Puppet
--langmap=Puppet:.pp
--regex-Puppet=/^class[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/c,class/
--regex-Puppet=/^node[ \t]*([a-zA-Z0-9_"'\.\-]+)[ \t]*/\1/n,node/
--regex-Puppet=/^site[ \t]*([a-zA-Z0-9_"'\.\-]+)[ \t]*/\1/s,site/
--regex-Puppet=/^define[ \t]*([:a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/
--regex-Puppet=/^ *([a-zA-Z:_]+) *\{ *(.*) *:/\1[\2]/r,resource/
--regex-Puppet=/^ *(@[a-zA-Z:_]+) *\{ *(.*) *:/\1[\2]/v,virtual_resource/
--regex-Puppet=/^ *([A-Z][a-zA-Z0-9_:]+) *\{/\1/f,default/
# Generated by Powerlevel10k configuration wizard on 2020-09-25 at 12:05 MDT.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 49789.
# Wizard options: powerline, classic, unicode, dark, 24h time, angled separators,
# blurred heads, flat tails, 2 lines, disconnected, left frame, compact, concise,
# transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#