Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-513

exportet resources via create_resources

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • puppet-agent 1.6.1
    • None
    • None
    • None

    Description

      puppet --version
      4.6.1
      

      #test.pp
      node 'default' {
       
        $filehash = {
          '/tmp/testfile' => {
            ensure => file,
          }
        }
        create_resources("@@file",$filehash)
       
        $filehash2 = {
          '/tmp/testfile2' => {
            ensure => file,
          }
        }
        create_resources("file",$filehash2)
       
      }
      

      root@XXX:~# puppet apply test.pp
      Notice: Compiled catalog for thegoodthings.cosmoshop.net in environment production in 0.20 seconds
      Notice: /Stage[main]/Main/Node[default]/File[/tmp/testfile]/ensure: created
      Notice: /Stage[main]/Main/Node[default]/File[/tmp/testfile2]/ensure: created
      Notice: Applied catalog in 0.46 seconds
      root@XXX:~#
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpuppet jpuppet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support