Open CliveSW-online opened 5 years ago
I was unable to edit above to add a follow-up question.
If you are working in a and secure and "Disconnected Environment" is Chef or PowerShell environment the better solution??
@CliveSW-online - there are easier ways to get the ArcGIS Module on a machine. Essentially a x-copy of the module into the PowerShell module folder should do the trick. This location is typically in Program Files/PowerShell/Modules
Apologies, perhaps my question wasn't clear. I wasn't able to edit/update the question.
1) For PowerShell to work on a secure and "Disconnected Environment, do you have to install NuGet.server??
2) Does Chef or Powershell work better in an automated Base Deployment working in a secure and "Disconnected Environment??
On the on-line machine there are two repositories: Get-PSRepository
Name InstallationPolicy SourceLocation
PSGallery Trusted https://www.powershellgallery.com/api/v2
LocalPSRepo Trusted F:\localhost\PSRepoLocal\
I copied LocalPSRepo to the server in a disconnected environment. I have a number of packages listed: PowerShellGet and NuGet
But I get an error asking me to install NuGet??
@Clives-online @CliveSW-online You don't need to use NuGet Server. You'll need to get the NuGet provider and nuget.exe onto the disconnected machine. Check out: https://docs.microsoft.com/en-us/powershell/scripting/gallery/how-to/getting-support/bootstrapping-nuget?view=powershell-6#manually-bootstrapping-nugetexe-to-support-publish-operations-on-a-machine-that-is-not-connected-to-the-internet
These are the steps I used to get Install-Module working with a local repository in a disconnected environment:
Hope that helps!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Apologies if this is a dummy question.
We are doing a Base Deployment in a secure and "Disconnected Environment" that does not have access to any external resources, internet...blagh...blagh.
I was reading through the help documents for downloading PowerShell Module for Server Offline. If I understood the documents you have a choice of setting-up a NuGet.server or an offline repository.
The pros and cons of NuGet.server vs offline repository. Suggested that the offline repository can't process the xml required to install to do a "disconnected" Base deployment??? In the following article, Working with local PowerShellGet Repositories: https://docs.microsoft.com/en-us/powershell/scripting/gallery/how-to/working-with-local-psrepositories?view=powershell-6
Is this correct or am I missing something??? So you have to set-up a NuGet.serve in order to do a PowerShell Base Deployment??
Thanks,
Clive