Hello all

Was wondering if someone could help or advise where i'm going wrong 

i'm trying to install Windows 2008 R2 Remote Desktop Services via Puppet 
using either DISM or Powershell modules from the forge and getting the same 
error

When using DISM


class roles::trm::remote_desktop_services {
dism { 'AppServer':
ensure => present,
}
dism { 'AppServer-UI':
ensure => present,
}
dism { 'Printing-XPSServices-Features':
ensure => present,
}
}

when this initially runs, I get pink error messages which I assume its 
because it requires a reboot to complete the install of this service.

Question: Best approach for rebooting host, when installing features ?

Once i've rebooted the host, and rerun the puppet agent I get the following 
error:

*err: Could not find a suitable provider for dism*

So I thought it could be the dism module doesn't support Remote Desktop 
Services.

then tried the Powershell Module

#exec { 'install_remote_desktop_services':
#command       => 'Import-Module ServerManager
#                  Add-WindowsFeature -Name RDS-RD-Server -Restart  | 
Out-File 
c:\Installs\Puppet_Confirmation\install_remote_desktop_services.txt',
#provider      => powershell,
#creates       => 
'C:/Installs/Puppet_Confirmation/install_remote_desktop_services.txt',
#}


which installs fine and reboots the host etc, but upon running the agent 
again, I get the same error as above:

*err: Could not find a suitable provider for dism*
*
*
If anyone could help, it would be much appreciated

regards

Jim 



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to