Skip to content

Instantly share code, notes, and snippets.

@riton
riton / keybase.md
Last active November 13, 2022 19:28
keybase.md

Keybase proof

I hereby claim:

  • I am riton on github.
  • I am riton (https://keybase.io/riton) on keybase.
  • I have a public key ASBS4CJUVal4UQ1xVTD7ZiC8WzGZYkJIE2RteO_pUAlyxwo

To claim this, I am signing this object:

@riton
riton / puppet-modules-update-dephell-05.txt
Last active November 30, 2019 16:25
puppet-modules-update-dephell-05
$ metadata-json-dependencies-checker \
--module puppetlabs-stdlib \
--version 6.1.0
Module `postgresql' will be incompatible with version `6.1.0' of `puppetlabs-stdlib'. Requires version `4.x'
Module `nginx' will be incompatible with version `6.1.0' of `puppetlabs-stdlib'. Requires version `>=4.2.0 <5.0.0'
Module `apache' will be incompatible with version `6.1.0' of `puppetlabs-stdlib'. Requires version `>=2.4.0 <5.0.0'
[...]
@riton
riton / puppet-modules-update-dephell-04.json
Last active November 22, 2019 19:04
puppet-modules-update-dephell-04
{
"name": "puppetlabs-apache",
"version": "5.2.0",
[... EDITED ...],
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.1 < 7.0.0"
},
{
@riton
riton / puppet-modules-update-dephell-03.pp
Last active November 22, 2019 18:47
puppet-modules-update-dephell-03
# Original code
# from https://github.com/puppetlabs/puppetlabs-apache/blob/master/manifests/listen.pp
define apache::listen {
# [... EDITED ...]
concat::fragment { "Listen ${listen_addr_port}":
# [... EDITED ...]
}
}
@riton
riton / puppet-modules-update-dephell-02.pp
Last active November 22, 2019 18:20
puppet-modules-update-dephell-02
include apache
# Configure a virtual host to use SSL and specific SSL certificates
apache::vhost { 'cert.example.com':
port => '443',
docroot => '/var/www/cert',
ssl => true,
ssl_cert => '/etc/ssl/fourth.example.com.cert',
ssl_key => '/etc/ssl/fourth.example.com.key',
}
@riton
riton / puppet-modules-update-dephell-01.pp
Last active November 22, 2019 18:16
puppet-modules-update-dephell-01
# Install and configure Apache HTTP server with default values
include apache
@riton
riton / naemon_servicedependency.conf
Last active April 8, 2019 09:11
Naemon servicedependency using comas - Full configuration at https://github.com/riton/naemon_servicedependencies_irc
define servicedependency {
hostgroup_name httpd_worker,httpd_proxy
service_description check httpd proc
dependent_host_name http-client
dependent_service_description check get http app health,check get http app statistics
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
}
@riton
riton / test.rb
Created July 5, 2018 14:05
ruby dynamically add path to gem load path
#!/usr/bin/env ruby
ENV['GEM_PATH'] = "/path/to/directory"
require 'mygem'
if __FILE__ == $0
end
@riton
riton / v1.0.0-init.pp
Last active June 29, 2018 13:36
Upgrading types and introducing new parameters
class mymodule {
mytype { "title":
param1 => "FOO"
}
}
@riton
riton / hiera.yaml
Created February 27, 2018 13:20
hiera-eyaml-gpg gpg_gnupghome configuration
version: 5
defaults:
data_hash: 'yaml_data'
hierarchy:
- name: "EYAML backend"
lookup_key: 'eyaml_lookup_key'
paths:
- "default.yaml"