Skip to content

Instantly share code, notes, and snippets.

View malnick's full-sized avatar
💭
🦄 Figment of your imagination

Jeff Malnick malnick

💭
🦄 Figment of your imagination
  • Boonville, CA
View GitHub Profile
On my agent:
root@timeagent puppet]# rm -rf ssl/
[root@timeagent puppet]# puppet agent -t
Info: Creating a new SSL key for timeagent.puppetlabs.vm
Info: Caching certificate for ca
Info: Creating a new SSL certificate request for timeagent.puppetlabs.vm
Info: Certificate Request fingerprint (SHA256): F7:58:9F:AC:92:9E:44:61:BE:51:05:7D:BB:55:1E:1F:7B:78:A6:7C:09:4D:65:6D:B5:59:8E:AC:B9:CC:D2:E0
Exiting; no certificate found and waitforcert is disabled
[root@timeagent puppet]# puppet agent -t
@malnick
malnick / gist:9124296
Created February 20, 2014 22:07
Best Practices Idea
## Wordpress Deployment using Puppet Best Pracices
This is a wordpress module that deploys a wordpress blog using puppet best
practices. It's not meant to be a production module but rather an instancia
tion of the CURRENT best practices we at Puppet promote.
This module defines our wordpress blog using the following modules:
- hunner/wordpress
- puppetlabs/apache
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ ls
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ cd ..
root@bohr [/Users/malnick/projects/courseware]$ ls
.git InstructorGuide.md Templates
.gitignore Language_Constructs Windows
About_Puppet Live_Management _demos
Advanced_Classes Mini_Fundamentals _files
Appendix Mini_Fundamentals.json _fonts
Capstone_Lab Mini_Fundamentals_part2.json _images
Classification Modules_and_Classes _instructor
⚡ root@bohr  /Users/malnick/projects/courseware  ± master  rake prepare
Start the presentation by running `rake present`.
AFter you have finished the training, please run `rake submit` to send collected stats back to the Edu team.
⚡ root@bohr  /Users/malnick/projects/courseware  ± master  cd fundamentals
⚡ root@bohr  /Users/malnick/projects/courseware/fundamentals  ± master  rake present
What version is printed at the bottom of the course manuals you received? [v3.2.0] v3.1.4
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
WARN: image sizing disabled - install rmagick
root@bohr [/Users/malnick/projects/courseware]$ git checkout master
Previous HEAD position was b6aa49f... Updating for release v3.1.4
Switched to branch 'master'
root@bohr [/Users/malnick/projects/courseware]$ ls
.git Rakefile _preshow architect intro stats
.gitignore Windows _support extending mini
README.md _fonts advanced fundamentals practitioner
root@bohr [/Users/malnick/projects/courseware]$ cd fundamentals/
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ git fetch courseware --tags
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ git checkout v3.1.4
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ rake present --trace
** Invoke present (first_time)
** Invoke parse_showoff (first_time)
** Execute parse_showoff
** Execute present
What version is printed at the bottom of the course manuals you received? [v3.2.0] v3.1.4
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
WARN: image sizing disabled - install rmagick
WARN: pdf generation disabled - install pdfkit
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir': No such file or directory - stats (Errno::ENOENT)
@malnick
malnick / gist:9733633
Created March 24, 2014 03:27
good to go
root@bohr [/Users/malnick/projects/courseware/fundamentals]$ rake present
What version is printed at the bottom of the course manuals you received? [v3.2.0] v3.2.0
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (9/9), done.
From github.com:puppet-training/courseware
- [tag update] Fundamentals-v3.1.3 -> Fundamentals-v3.1.3
* [new tag] show -> show
- [tag update] v3.2.0 -> v3.2.0
@malnick
malnick / gist:216f1a6af621c1c8780c
Created June 23, 2014 16:41
My recent courseware log
* 89665cb Jeff 5 days ago Merge remote-tracking branch 'upstream/master' merging upstream with local, personal copy (HEAD, origin/master, origin/jeffsChanges, origin/HEAD, master, jeffsChanges)
|\
| * d7bc33b Ben Ford 6 days ago Updating for Architect release v0.0.1 (tag: Architect-v0.0.1, upstream/master)
| * 54b77fc Ben Ford 6 days ago updating release notes
| * 7b17547 Brad Hamilton 6 days ago Merge pull request #464 from binford2k/fix/practitioner/add_haproxy_export_note
| |\
| | * a930a71 Ben Ford 6 days ago Add a note clarifying the export
[vagrant@d1p3100mgmt-puppet-b puppet]$ r10k deploy environment -p --verbose debug2
[R10K::Git::Cache - DEBUG1] Execute: "git branch, args: {:git_dir=>\"/var/cache/r10k/git@git.vchslabs.vmware.com-vchs-vchs-control-repo\"}"
[R10K::Git::Cache - DEBUG2] [git branch, args: {:git_dir=>"/var/cache/r10k/git@git.vchslabs.vmware.com-vchs-vchs-control-repo"}] STDOUT: add_r10k_webhook
* production
puppet_iam
puppet_pe_master
puppet_presto
timezone
[R10K::Task::Deployment::DeployEnvironments - INFO] Loading environments from all sources
[R10K::Git::Cache - DEBUG1] Execute: "git fetch --prune, args: {:git_dir=>\"/var/cache/r10k/git@git.vchslabs.vmware.com-vchs-vchs-control-repo\"}"
** mkdir -p /opt/puppet/var/lib/pgsql/9.2
** /opt/puppet/bin/erb -T - '/root/puppet-enterprise-3.3.0-el-6-i386/erb/postgresql_server.pp.erb' | /opt/puppet/bin/puppet apply --no-report --modulepath=/opt/puppet/share/puppet/modules -v
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/pe_postgresql/lib/facter/pe_postgres_default_version.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/pe_staging/lib/facter/staging_http_get.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_version.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/ip6tables_version.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb^[[0m
^[[0;32mInfo: Loading facts in /opt/puppet/share/puppet/modules/pe_puppetdb/lib/facter/pe_puppetdb_server_statu