#1157: 0.24.4rc1: resources inside of @@defines are not being created nor 
exported
----------------------------------------------+-----------------------------
 Reporter:  Fujin                             |        Owner:  community 
     Type:  defect                            |       Status:  new       
 Priority:  normal                            |    Milestone:            
Component:  library                           |      Version:  0.24.3    
 Severity:  normal                            |   Resolution:            
 Keywords:  resources virtual defines export  |        Stage:  Unreviewed
    Patch:  None                              |   Complexity:  Unknown   
----------------------------------------------+-----------------------------
Comment (by Fujin):

 Right, let's try that again. A simplified manifest, which, by my
 reckonings, should export some files for collection to the database, and
 also suck them into /tmp/{testa,testb}:

 {{{
 class testing {
    File <<| tag == 'testing' |>>

    define testvirtual($dir, $content = '', $ensure = present) {
       file { "${dir}/${name}":
          ensure => $ensure, content => $content, alias =>
 "cf_part_${name}";
       }
    }

    @@testvirtual {
       "testa":
          dir => "/tmp", content => "testa\n", tag => "testing";
       "testb":
          dir => "/tmp", content => "testb\n", tag => "testing";
    }
 }
 }}}

 Puppetmaster:
 {{{
 info: Caching node puppettest.maxnet.net.nz
 info: Stored catalog for puppettest.maxnet.net.nz in 0.29 seconds
 notice: Compiled configuration for puppettest.maxnet.net.nz in 0.33
 seconds
 }}}

 Node:
 {{{
 [EMAIL PROTECTED]:/tmp# runpuppet
 running puppet on puppettest, standby.
 info: Loading fact configured_ntp_servers
 info: Loading fact netmask
 info: Loading fact interfaces
 info: Loading fact acpi_available
 info: Retrieving plugins
 notice: Ignoring cache
 info: Caching catalog at /var/lib/puppet/state/localconfig.yaml
 notice: Starting catalog run
 notice: Finished catalog run in 0.82 seconds
 }}}

 Storeconfigs MySQL output (the interesting bit!)
 {{{
 mysql> select * from resources where exported is not null\G
 *************************** 1. row ***************************
             id: 17
          title: testb
        restype: Testing::Testvirtual
        host_id: 1
 source_file_id: 3
       exported: 1
           line: 15
     updated_at: 2008-03-26 02:56:34
 *************************** 2. row ***************************
             id: 18
          title: testa
        restype: Testing::Testvirtual
        host_id: 1
 source_file_id: 3
       exported: 1
           line: 15
     updated_at: 2008-03-26 02:56:34
 2 rows in set (0.00 sec)
 }}}

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1157#comment:2>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to