Skip to content

Instantly share code, notes, and snippets.

scheduled_task { 'Test':
ensure => present,
enabled => true,
command => 'C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.exe',
arguments => "-Q \"EXECUTE [master].[dbo].[DatabaseBackup] @Databases = 'ALL_DATABASES', @Directory = N'C:\\backups\\sql'\" -b -o C:\\backups\\sql\\logs\\DatabaseBackup.txt",
trigger => {
schedule => daily,
start_date => '2013-12-30',
start_time => '20:00',
}
C:/work/puppet/lib/puppet/util/windows/file.rb:140: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0059 p:0105 s:0266 b:0266 l:000265 d:000265 METHOD C:/work/puppet/lib/puppet/util/windows/file.rb:140
c:0058 p:0015 s:0261 b:0261 l:000260 d:000260 METHOD C:/work/puppet/lib/puppet/util/windows/file.rb:182
c:0057 p:0113 s:0256 b:0256 l:000255 d:000255 METHOD C:/work/puppet/lib/puppet/file_system/file19windows.rb:15
c:0056 p:0022 s:0252 b:0252 l:000251 d:000251 METHOD C:/work/puppet/lib/puppet/file_system.rb:148
c:0055 p:0036 s:0248 b:0248 l:000235 d:000247 BLOCK C:/work/puppet/lib/puppet/util/autoload.rb:88
c:0054 p:---- s:0245 b:0245 l:000244 d:000244 FINISH
This file has been truncated, but you can view the full file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style media="all" type="text/css">
table {
border-collapse: collapse;
border: 1px solid #CCC;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
line-height: normal;
$ be rspec spec
..............................................................................................................................................................................................................................................................................................................................................................*..............*..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................No metadata server available at http://169.254.
set _ORIGINAL_GEM_PATH=
set BUNDLE_BIN_PATH=c:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.4/bin/bundle
set BUNDLE_GEMFILE=c:/work/puppet/Gemfile
set GEM_HOME=c:/work/puppet/vendor/cache/ruby/1.9.1
set GEM_PATH=
set RUBYOPT=-Ic:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.2.4/lib -rbundler/setup
"ruby.exe" "C:\work\puppet\vendor\cache\ruby\1.9.1\bin\rspec" -r yarjuf -f JUnit -o result.xml -fp spec
irb(main):008:0> (Puppet::FileSystem.stat('c:/target.txt').mode & 0777).to_s(8)
=> "644"
irb(main):009:0> (Puppet::Util::Windows::Security.get_mode('c:/target.txt') & 0777).to_s(8)
=> "700"
...
irb(main):018:0> sd = Puppet::Util::Windows::Security.get_security_descriptor('c:/target.txt')
=> BUILTIN\Administrators
WIN-QP47VOHA2P4\None
BUILTIN\Administrators: 0x1f01ff
NT AUTHORITY\SYSTEM:(I) 0x1f01ff
# Start new agent, 11 requests
#
$ be puppet agent -t --server arcturus.local
Warning: Request GET /production/certificate/ca?
Warning: Request GET /production/certificate/arcturus?
Warning: Request GET /production/certificate_request/arcturus?
Warning: Request PUT /production/certificate_request/arcturus
Warning: Request GET /production/certificate/arcturus?
Warning: Request GET /production/certificate/ca?
diff --git a/lib/puppet/indirector/indirection.rb b/lib/puppet/indirector/indirection.rb
index 0c0cb20..1d759eb 100644
--- a/lib/puppet/indirector/indirection.rb
+++ b/lib/puppet/indirector/indirection.rb
@@ -11,15 +11,19 @@ require 'puppet/util/instrumentation/instrumentable'
class Puppet::Indirector::Indirection
include Puppet::Util::MethodHelper
include Puppet::Util::Docs
+
+ puts "Puppet::Indirector::Indirection extending Instrumentable"
0 ~/work $ openssl speed
To get the most accurate results, try to run this
program when this computer is idle.
Doing md2 for 3s on 16 size blocks: 450653 md2's in 3.00s
Doing md2 for 3s on 64 size blocks: 231259 md2's in 3.00s
Doing md2 for 3s on 256 size blocks: 78604 md2's in 3.00s
Doing md2 for 3s on 1024 size blocks: 21568 md2's in 2.99s
Doing md2 for 3s on 8192 size blocks: 2778 md2's in 3.00s
Doing mdc2 for 3s on 16 size blocks: 2647178 mdc2's in 2.99s
Doing mdc2 for 3s on 64 size blocks: 752570 mdc2's in 3.00s
C:\work\puppet>bundle exec puppet module install --target-dir z:\tmp puppetlabs-registry
Notice: Preparing to install into z:/tmp ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
Error: Permission denied - (C:/ProgramData/PuppetLabs/puppet/var/puppet-module/cache/tmp-unpacker-e926810f946305eb0d2b65
c2166fc38507c6b70f/puppetlabs-registry-1.0.0, z:/tmp/registry)
Error: Try 'puppet help module install' for usage