FAQ
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.

Search Discussions

  • Felix Frank at Nov 27, 2013 at 9:55 am
    Hi,

    uhm, looking at your log, it would appear that the package in question
    is not part of your catalog at all.

    I gotta ask: Are you including the max-firefox class at all?

    Aside: Please note that dashes in class names are not strictly valid
    syntax and should be avoided.

    HTH,
    Felix
    On 11/23/2013 07:23 PM, Zachary Vida wrote:
    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. ...
    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
    --
    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/5295C181.1050304%40alumni.tu-berlin.de.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Zachary Vida at Nov 27, 2013 at 6:03 pm
    Frank,

    I was doing a puppet apply --debug init.pp to get the output shown above.

    I forgot when apply manifest directly in that manner that I would need a
    have an include somewhere. I just removed my outside class as this is just
    a test at this point, and everything starting to work.

    Thanks for the help.


    On Wednesday, November 27, 2013 4:55:13 AM UTC-5, Felix.Frank wrote:

    Hi,

    uhm, looking at your log, it would appear that the package in question
    is not part of your catalog at all.

    I gotta ask: Are you including the max-firefox class at all?

    Aside: Please note that dashes in class names are not strictly valid
    syntax and should be avoided.

    HTH,
    Felix
    On 11/23/2013 07:23 PM, Zachary Vida wrote:
    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. ...
    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
    --
    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/aed1f51d-46f8-41a2-867c-3152fc13f77f%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedNov 23, '13 at 6:48p
activeNov 27, '13 at 6:03p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Zachary Vida: 2 posts Felix Frank: 1 post

People

Translate

site design / logo © 2022 Grokbase