Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
rockpapergoat / amz1.log
Created January 16, 2020 03:44
json installs on amazon linux 1 and 2 containers
bash-4.2# ruby -v
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
bash-4.2# which ruby
/opt/chef/embedded/bin/ruby
bash-4.2# cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
---
cuda::install::cuda_pkgs:
'cuda-6.0':
ensure: 'absent'
'cuda-7.5':
ensure: 'present'
uchiwa::sensu_api_endpoints:
-
host: 'sensu02'
name: 'boston'
ssl: false
insecure: false
user: 'sensu'
pass: 'random_string'
-
host: '127.0.0.1'
file { '/scratch/cuda-7.5':
ensure => directory,
}
package { 'cuda-7-5':
ensure => installed,
provider => 'yum',
install_options => [{'--installroot' => '/scratch/cuda-7.5'}],
require => File['/scratch/cuda-7.5'],
}
begin
Facter.puppet_classes
rescue
Facter.loadfacts()
end
Facter.add("hostname_base") do
setcode do
Facter.value("hostname").gsub(/\d+$/, "")
end
bedtime routine:
6:30: dinner at the table
7:00 start the bath water
7:30: finish bath, put on diaper, pajamas
8:00: read 2 books, emmett shuts off the light, tuck into bed
host:
source: /net/host/share
destination: /backups/01/host
hour: "20"
minute: "00"
@rockpapergoat
rockpapergoat / config.pp
Created September 5, 2014 15:32
puppet defined type + hiera hash data
define samba::config($includeconf = '', $log_level = '2') {
include samba
if $::operatingsystemrelease =~ /^6/ {
$smb_config='smb.conf_el6.erb'
}
elsif $::operatingsystemrelease =~ /^5/ {
$smb_config='smb.conf_el6.erb'
}
file { '/etc/samba/smb.conf':
2014-07-29 22:25:31,596 INFO [c.p.mq] Setting ActiveMQ StoreUsage limit to 10240 MB
2014-07-29 22:25:31,727 INFO [c.p.mq] Setting ActiveMQ TempUsage limit to 10240 MB
2014-07-29 22:25:32,038 WARN [o.e.j.h.HttpParser] badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@420bc237{r=1,a=IDLE,uri=-}
2014-07-29 22:25:32,043 WARN [o.e.j.h.HttpParser] badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@5d84d74b{r=1,a=IDLE,uri=-}
2014-07-29 22:25:32,049 WARN [o.e.j.h.HttpParser] badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@3a673258{r=1,a=IDLE,uri=-}
2014-07-29 22:25:32,337 WARN [o.e.j.h.HttpParser] badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@332d56ed{r=1,a=IDLE,uri=-}
2014-07-29 22:25:32,504 WARN [o.e.j.h.HttpParser] badMessage: java.lang.IllegalStateException: too much data after closed for HttpChannelOverHttp@1b8a
@rockpapergoat
rockpapergoat / hiera.yaml
Last active August 29, 2015 14:00
simple roles/profiles example
---
:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hieradata
:hierarchy:
- %{::clientcert}
- %{::role}
- common