Advertisement
Guest User

Class

a guest
Sep 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.82 KB | None | 0 0
  1. class uxrobot ($uxtests = '',)
  2. {
  3.     include uxrobot::pwxusers
  4.     include uxrobot::files
  5.     include uxrobot::packages
  6.     include uxrobot::execs
  7.     include uxrobot::pwxservices
  8.     class { 'chocolatey':
  9.         chocolatey_version => '0.9.9.12',
  10.         chocolatey_download_url => 'https://packages.chocolatey.org/chocolatey.0.9.9.12.nupkg',
  11.     }
  12.     define uxtests() {
  13.         file { "C:/PWX/${name}/":
  14.                 ensure => 'directory',
  15.                 source => "puppet:///modules/uxrobot/UXTests/${name}/",
  16.                 recurse => true,
  17.                 purge =>true,
  18.                 require => File['c:/PWX'],
  19.                 source_permissions => ignore,
  20.         }
  21.     }
  22.     if ($uxtests != '') {
  23.         $uxtests.each | $index, $value | {
  24.             uxtests {$value:
  25.             }
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement