Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

By using File resource ,can able to create folder which name stored in variable. code below:

class currentgen::backup::folder_backup
($prodequ_backup_loc        = $prodequ_backup_loc,
  $time=$::windows_time,
 ) {
file{"${prodequ_backup_loc}\\${time}":,
      ensure => directory,
     }
 }