Howdy,
Trying to install dmg files with puppet. However, after running my manifest
the .dmg file is never downloaded by curl. I tried pkgdmg and appdmg. I
also tried using a local directory as the source. It seems to ignore any
path I give as the source even totally bogus ones.
1 define pkg_deploy($sourcedir = false) {
2 $sourcedir_real = $sourcedir ? {
3 false => "http://webserver/folder/",
4 default => $sourcedir
5 }
6 package { $name:
7 ensure => installed,
8 provider => appdmg,
9 source => "$sourcedir_real/$name"
10 }
11 }
12
13 class mac-firefox {
14 pkg_deploy { "Firefox-25.0.1.dmg": }
15 }
I have confirmed that a curl to the webserver/folder/firefox.dmg does work.
I did have to symlink my ruby environments to get puppet to even work. as
this is a known bug in 3.3.2 (
*https://projects.puppetlabs.com/issues/18205)*
sudo ln -s /usr/lib/ruby/site_ruby/1.8/puppet
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/puppet
sudo ln -s /usr/lib/ruby/site_ruby/1.8/puppet.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/puppet.rb
sudo ln -s /usr/lib/ruby/site_ruby/1.8/semver.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/semver.rb
sudo ln -s /usr/lib/ruby/site_ruby/1.8/facter
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/facter
sudo ln -s /usr/lib/ruby/site_ruby/1.8/facter.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/facter.rb
sudo ln -s /usr/lib/ruby/site_ruby/1.8/hiera
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/hiera
sudo ln -s /usr/lib/ruby/site_ruby/1.8/hiera.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/site_ruby/2.0.0/hiera.r
kernel => Darwin
kernelmajversion => 13.0
kernelrelease => 13.0.0
kernelversion => 13.0.0
macosx_buildversion => 13A603
macosx_productname => Mac OS X
macosx_productversion => 10.9
macosx_productversion_major => 10.9
macosx_productversion_minor => 0
operatingsystem => Darwin
operatingsystemrelease => 13.0.0
osfamily => Darwin
path => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
puppetversion => 3.3.2
rubysitedir => /Library/Ruby/Site/2.0.0
rubyversion => 2.0.0
Notice: Compiled catalog for hostname.domain in environment
production in 0.02 seconds
Debug: Creating default schedules
Debug: Failed to load library ''selinux'' for feature
''selinux''
Debug: Using settings: adding file resource ''confdir'':
''File[/Users/zach/.puppet]{:path=>"/Users/zach/.puppet",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''vardir'':
''File[/Users/zach/.puppet/var]{:path=>"/Users/zach/.puppet/var",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''logdir'':
''File[/Users/zach/.puppet/var/log]{:path=>"/Users/zach/.puppet/var/log",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''statedir'':
''File[/Users/zach/.puppet/var/state]{:path=>"/Users/zach/.puppet/var/state",
:mode=>"1755", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''rundir'':
''File[/Users/zach/.puppet/var/run]{:path=>"/Users/zach/.puppet/var/run",
:mode=>"755", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''libdir'':
''File[/Users/zach/.puppet/var/lib]{:path=>"/Users/zach/.puppet/var/lib",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''certdir'':
''File[/Users/zach/.puppet/ssl/certs]{:path=>"/Users/zach/.puppet/ssl/certs",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''ssldir'':
''File[/Users/zach/.puppet/ssl]{:path=>"/Users/zach/.puppet/ssl",
:mode=>"771", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''publickeydir'':
''File[/Users/zach/.puppet/ssl/public_keys]{:path=>"/Users/zach/.puppet/ssl/public_keys",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''requestdir'':
''File[/Users/zach/.puppet/ssl/certificate_requests]{:path=>"/Users/zach/.puppet/ssl/certificate_requests",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''privatekeydir'':
''File[/Users/zach/.puppet/ssl/private_keys]{:path=>"/Users/zach/.puppet/ssl/private_keys",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''privatedir'':
''File[/Users/zach/.puppet/ssl/private]{:path=>"/Users/zach/.puppet/ssl/private",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''statefile'':
''File[/Users/zach/.puppet/var/state/state.yaml]{:path=>"/Users/zach/.puppet/var/state/state.yaml",
:mode=>"660", :ensure=>:file, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''clientyamldir'':
''File[/Users/zach/.puppet/var/client_yaml]{:path=>"/Users/zach/.puppet/var/client_yaml",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''client_datadir'':
''File[/Users/zach/.puppet/var/client_data]{:path=>"/Users/zach/.puppet/var/client_data",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''clientbucketdir'':
''File[/Users/zach/.puppet/var/clientbucket]{:path=>"/Users/zach/.puppet/var/clientbucket",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''lastrunfile'':
''File[/Users/zach/.puppet/var/state/last_run_summary.yaml]{:path=>"/Users/zach/.puppet/var/state/last_run_summary.yaml",
:mode=>"644", :ensure=>:file, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''lastrunreport'':
''File[/Users/zach/.puppet/var/state/last_run_report.yaml]{:path=>"/Users/zach/.puppet/var/state/last_run_report.yaml",
:mode=>"640", :ensure=>:file, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Using settings: adding file resource ''graphdir'':
''File[/Users/zach/.puppet/var/state/graphs]{:path=>"/Users/zach/.puppet/var/state/graphs",
:ensure=>:directory, :loglevel=>:debug, :links=>:follow,
:backup=>false}''
Debug: Failed to load library ''shadow'' for feature
''libshadow''
Debug: /File[/Users/zach/.puppet/var]: Autorequiring
File[/Users/zach/.puppet]
Debug: /File[/Users/zach/.puppet/var/log]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/state]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/run]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/lib]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/ssl/certs]: Autorequiring
File[/Users/zach/.puppet/ssl]
Debug: /File[/Users/zach/.puppet/ssl]: Autorequiring
File[/Users/zach/.puppet]
Debug: /File[/Users/zach/.puppet/ssl/public_keys]: Autorequiring
File[/Users/zach/.puppet/ssl]
Debug: /File[/Users/zach/.puppet/ssl/certificate_requests]: Autorequiring
File[/Users/zach/.puppet/ssl]
Debug: /File[/Users/zach/.puppet/ssl/private_keys]: Autorequiring
File[/Users/zach/.puppet/ssl]
Debug: /File[/Users/zach/.puppet/ssl/private]: Autorequiring
File[/Users/zach/.puppet/ssl]
Debug: /File[/Users/zach/.puppet/var/state/state.yaml]: Autorequiring
File[/Users/zach/.puppet/var/state]
Debug: /File[/Users/zach/.puppet/var/client_yaml]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/client_data]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/clientbucket]: Autorequiring
File[/Users/zach/.puppet/var]
Debug: /File[/Users/zach/.puppet/var/state/last_run_summary.yaml]:
Autorequiring File[/Users/zach/.puppet/var/state]
Debug: /File[/Users/zach/.puppet/var/state/last_run_report.yaml]:
Autorequiring File[/Users/zach/.puppet/var/state]
Debug: /File[/Users/zach/.puppet/var/state/graphs]: Autorequiring
File[/Users/zach/.puppet/var/state]
Debug: Finishing transaction 70179889069280
Debug: Loaded state in 0.00 seconds
Debug: Loaded state in 0.00 seconds
Info: Applying configuration version ''1385230408''
Debug: Finishing transaction 70179851846920
Debug: Storing state
Debug: Stored state in 0.01 seconds
Notice: Finished catalog run in 0.02 seconds
Debug: Using settings: adding file resource ''rrddir'':
''File[/Users/zach/.puppet/var/rrd]{:path=>"/Users/zach/.puppet/var/rrd",
:mode=>"750", :ensure=>:directory, :loglevel=>:debug,
:links=>:follow,
:backup=>false}''
Debug: Finishing transaction 70179887254940
Debug: Received report to process from hostname.domain
Debug: Processing report from hostname.domain with processor
Puppet::Reports::Store
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/322694ef-349d-4380-85b0-e4e73868913c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.