Skip to content

Instantly share code, notes, and snippets.

View kplimack's full-sized avatar
💭
went skiing

Jake Plimack kplimack

💭
went skiing
View GitHub Profile
# deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 NETINST 20170617-13:06]/ stretch main
#deb cdrom:[Debian GNU/Linux 9.0.0 _Stretch_ - Official amd64 NETINST 20170617-13:06]/ stretch main
deb http://httpredir.debian.org/debian stretch main
deb-src http://httpredir.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
root@default-debian-90:~# apt-get update
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
0% [Waiting for headers]^C
root@default-debian-90:~# fg
emacs /etc/apt/sources.list
root@default-debian-90:~# apt-get update
log_level :info
log_location STDOUT
node_name 'jplimack'
client_key '/Users/jplimack/.chef/jplimack.pem'
validation_client_name 'chef-validator'
validation_key '/Users/jplimack/.chef/chef-validator.pem'
chef_server_url 'https://chef.ops.sendgrid.net/organizations/sendgrid'
syntax_check_cache_path '/Users/jplimack/.chef/syntax_check_cache'
cookbook_path ["/Users/jplimack/Downloads/cookbook_backup"]
This file has been truncated, but you can view the full file.
13858 1493070879.002343 execve("/usr/bin/chef-server-ctl", ["chef-server-ctl", "reconfigure"], [/* 30 vars */]) = 0 <0.000122>
13858 1493070879.002538 brk(0) = 0x15dc000 <0.000004>
13858 1493070879.002567 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd69baed000 <0.000006>
13858 1493070879.002601 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000006>
13858 1493070879.002647 open("/etc/ld.so.cache", O_RDONLY) = 3 <0.000008>
13858 1493070879.002669 fstat(3, {st_mode=S_IFREG|0644, st_size=40504, ...}) = 0 <0.000004>
13858 1493070879.002688 mmap(NULL, 40504, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd69bae3000 <0.000006>
13858 1493070879.002719 close(3) = 0 <0.000005>
13858 1493070879.002740 open("/lib64/libtinfo.so.5", O_RDONLY) = 3 <0.000007>
13858 1493070879.002758 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\310\200!=\0\0\0@\0\0\0\0\0\0\0\10\7\2\0\0\0\0\0\0\0\0\0@\0008\0\6\0@\0\36\0\35\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\20
basedir = '/opt/foo'
%w( bar bat test ).each do |d|
directory File.join(basedir, d) do
recursive true
end
end
#!/bin/sh
# This is a (relatively) quick script you can use to
# configure bonding on production servers like splunk
# db's or any other prod bare metal.
# Usage is straight forward, invoke the script with
# the standard ./bondinator , and hopefully the server
# comes back with a clean and bonded interface. If not,
# to the IPMI-mobile to resurect. Backups of the
# network-scripts files are stored in
[root@default-centos-7 ~]# foreman-installer
NetworkManager is not running.
Execution of '/usr/bin/yum -d 0 -e 0 -y list tfm-rubygem-foreman_setup' returned 1: Error: No matching Packages to list
/usr/share/ruby/vendor_ruby/puppet/util/execution.rb:197:in `execute'
/usr/share/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
/usr/share/ruby/vendor_ruby/puppet/provider.rb:237:in `block in has_command'
/usr/share/ruby/vendor_ruby/puppet/provider.rb:463:in `block in create_class_and_instance_method'
/usr/share/ruby/vendor_ruby/puppet/provider/package/yum.rb:96:in `install'
/usr/share/ruby/vendor_ruby/puppet/type/package.rb:73:in `block (3 levels) in <module:Puppet>'
yum_repository 'foreman' do
baseurl 'http://yum.theforeman.org/releases/latest/el7/x86_64/'
gpgcheck false
action :create
notifies :makecache, 'yum_repository[foreman]'
end
yum_repository 'sclo-rh' do
baseurl 'http://mirror.centos.org/centos/7/sclo/x86_64/rh/'
gpgcheck false
[sclo]
name=Yum Repository
baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/sclo/
enabled=1
gpgcheck=0
[root@default-centos-7 yum.repos.d]# cat sclo-rh.repo
# This file was generated by Chef
# Do NOT modify this file by hand.
[sclo-rh]
[vagrant@default-centos-73 ~]$ sudo -i
[root@default-centos-73 ~]# yum repolist
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 151 kB 00:00:00
(2/4): base/7/x86_64/group_gz | 155 kB 00:00:00
(3/4): base/7/x86_64/primary_