puppet - Ordering of virtual resources -


I have seen examples of sorting with virtual resources, but I can not find anybody how I decide dependency Can I order with them? This syntax fails to check:

test.pp
  @file {"/ usr / local / new-dir": make sure => Directory,} (file ["/ usr / local / new-dir"]) - & gt; Exec {"Copy old stuff to new": command = & gt; "CP-R / USR / Local / Old-Diamonds / USR / Local / New-DIR",}   

and test syntax:

  $ Verify puppet analyzer test.pp: error: could not be parsed for environmentally produced: '- & gt;' On the syntax error /home/vagrant/test.pp:6: Try 'Puppet Help Analyzer' to use   

I can sometimes think that I order virtual resources I want to do this, so how did this happen?

Any help or insight will be greatly appreciated.

You can use a collector instead of realizing it, and then, apply the command: < / P>

  @file {"/ usr / local / new-dir": make sure = & gt; Directory, exec {"copy old stuff to new": command = & gt; "CP-R / USR / Local / Old-Day / USR / Local / New-DIR",} file & lt; | Title == "/ usr / local / new-dir" | & Gt; - & gt; Exec ["Copy old stuff to new"]    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -