fixed password issues with windows server vagrant VM and updated manifest files

This commit is contained in:
christopher.lawrence 2020-02-13 12:05:41 +00:00
parent 2214da1ef3
commit c6341c9b55
2 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@ class profile::custom_windows::config_server (
$user_group = 'mygroup', $user_group = 'mygroup',
$user_groups = ['BUILTIN\Administrators', 'BUILTIN\Users'], $user_groups = ['BUILTIN\Administrators', 'BUILTIN\Users'],
$user_home = "C:/Users/myuser", $user_home = "C:/Users/myuser",
$user_password = 'puppet', $user_password = 'Puppetlabs01!',
$ensure = 'present', $ensure = 'present',
$manage_home = true, $manage_home = true,
$user_dir = 'mydir', $user_dir = 'mydir',

View File

@ -30,6 +30,11 @@ class profile::custom_windows::install_package (
provider => $package_provider, provider => $package_provider,
} }
package { 'vim':
ensure => '8.2.0246',
provider => $package_provider,
}
class { 'staging': class { 'staging':
path => 'C:/tmp', path => 'C:/tmp',
} }
@ -40,9 +45,9 @@ class profile::custom_windows::install_package (
staging::extract { 'master.zip': staging::extract { 'master.zip':
target => "${install_dir}/downloads", target => "${install_dir}/downloads",
#unless => '7z',
unless => 'cmd.exe /c type C:\tmp\7zip', unless => 'cmd.exe /c type C:\tmp\7zip',
require => Staging::File['master.zip'], require => Staging::File['master.zip'],
notify => Exec['7z1900-x64'],
} }
exec { '7z1900-x64': exec { '7z1900-x64':
@ -50,7 +55,7 @@ class profile::custom_windows::install_package (
command => 'cmd.exe /c C:\Users\myuser\Downloads\7z1900-x64.exe', command => 'cmd.exe /c C:\Users\myuser\Downloads\7z1900-x64.exe',
path => $::path, path => $::path,
unless => 'cmd.exe /c type C:\tmp\7zip', unless => 'cmd.exe /c type C:\tmp\7zip',
require => Staging::Extract['master.zip'], # unless => '7z',
} }
file { 'C:/tmp/7zip': file { 'C:/tmp/7zip':