1 # RDE Puppet Windows config
3 # This subclass defines the configuration for RDE Windows machines
7 #$win_software_repo = '\\az251dp2ch2d\Software' # A software repo. Currently on the machine under test but can be on any share
10 $cyg_setup = "$win_software_repo\\Cygwin-2.9-Win64\\setup-x86_64.exe"
11 $cyg_repo = "-L -l $win_software_repo\\Cygwin-2.9-Win64"
12 $cyg_categories = "-C Base"
13 $cyg_root = 'C:\Cygwin'
14 $cyg_install_to = "-R $cyg_root"
15 $cyg_pkgs = "-P openssh,cygrunsrv,bzip2,unzip,zip,gcc-core,gcc-G++,git,git-gui,make,vim,vim-common,perl,perl_base,perl-Term-ReadLine-Gnu,perl-Term-ReadKey,php,python2,python3,dos2unix,rlwrap,wget,xorg-server,xorg-server-common,xorg-x11-fonts-dpi100,xauth,xclock,xload,xterm,gnome-terminal,dbus-x11"
17 exec { 'Install Cygwin':
18 command => "$cyg_setup -q $cyg_repo $cyg_install_to $cyg_categories $cyg_pkgs",
20 timeout => 600, # Cygwin takes some time to install
24 path => "$cyg_root\\bin",
25 command => "bash /usr/bin/ssh-host-config2 -y -u cyg_server -w 'Ranroot!'",
26 creates => "$cyg_root/etc/sshd_config",
27 logoutput => 'on_failure',
30 windows::path { "$cyg_root\\bin": }
32 windows::unzip { "$win_software_repo\\ProcessExplorer.zip":
33 destination => 'C:\Windows\System32',
34 creates => 'C:\Windows\System32\Procexp.exe',
37 exec { 'Install Firefox':
38 command => "$win_software_repo\\FirefoxInstaller.exe -ms",
39 creates => 'C:\Program Files\Mozilla Firefox\firefox.exe',
42 exec { 'Install Adobe Reader':
43 command => "$win_software_repo\\AcroRdrDC1801120040_en_US.exe /sAll",
44 creates => 'C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe',