Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for disabling services dir via JSON config #362

Closed
wants to merge 1 commit into from
Closed

Add support for disabling services dir via JSON config #362

wants to merge 1 commit into from

Conversation

PleaseStopAsking
Copy link
Contributor

This commit adds support for disabling the services directory for ArcGIS Server or Portal via the JSON config files and Invoke-ArcGISConfiguration. Users can now add DisableServiceDirectory = <bool> to either the Server or Portal blocks as needed.

The Sample Configs as well as the Wiki references would need to be updated as well.

Note: Support for this was already present in Invoke-ArcGISConfiguration and this commit only added support for Server.

Example

{
    "AllNodes": [
        {
            "NodeName": "[Machine Name]",
            "DataStoreTypes": [
                "Relational"
            ],
            "Role": [
                "Server",
                "Portal",
                "DataStore",
                "ServerWebAdaptor",
                "PortalWebAdaptor"
            ]
        }
    ],
    "ConfigData": {
        "Version": "[Version of ArcGIS Deployment]",
        "ServerContext": "server",
        "PortalContext": "portal",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "UserName": "[ServiceAccount Username - Can be a Domain Account]",
                "Password": "[ServiceAccount Password]",
                "IsDomainAccount": false,
                "IsMSAAccount": false
            },
            "ADServiceUser": {
                "UserName": "[ADServiceUser Username - Active Directory Service user for enabling use of Integrated Windows Authentication with your portal.]",
                "Password": "[ADServiceUser Password]"
            }
        },
        "Server": {
            "LicenseFilePath": "[License File Path - Server ]",
            "Installer": {
                "Path": "[Server Installer Path]",
                "InstallDir": "[Server Install Dir - Ex. C:\\ArcGIS\\Server]",
                "InstallDirPython": "[Python Install Dir - Ex. C:\\Python27] ",
                "PatchesDir": "[Path to Directory with Patches for Server]",
                "EnableArcMapRuntime": "[ Optional - True (Default) | False - Enables ArcMapRuntime. Available starting 10.9.1]",
                "EnableDotnetSupport": "[ Optional - True | False (Default)  - Enables .Net Extension Support. Available starting 10.9.1]"
            },
            "DisableServiceDirectory": true,
            "ServerDirectoriesRootLocation": "C:\\arcgisserver\\directories",
            "ConfigStoreLocation": "C:\\arcgisserver\\config-store",
            "LocalRepositoryPath": "C:\\arcgisserver\\local",
            "ServerLogsLocation": "C:\\arcgisserver\\logs",
            "ServerDirectories": [
                {
                    "name": "arcgiscache",
                    "physicalPath": "C:\\arcgisserver\\directories\\arcgiscache",
                    "directoryType": "CACHE",
                    "cleanupMode": "NONE",
                    "maxFileAge": 0
                },
                {
                    "name": "arcgisjobs",
                    "physicalPath": "C:\\arcgisserver\\directories\\arcgisjobs",
                    "directoryType": "JOBS",
                    "cleanupMode": "TIME_ELAPSED_SINCE_LAST_MODIFIED",
                    "maxFileAge": 360
                },
                {
                    "name": "arcgisoutput",
                    "physicalPath": "C:\\arcgisserver\\directories\\arcgisoutput",
                    "directoryType": "OUTPUT",
                    "cleanupMode": "TIME_ELAPSED_SINCE_LAST_MODIFIED",
                    "maxFileAge": 10
                },
                {
                    "name": "arcgissystem",
                    "physicalPath": "C:\\arcgisserver\\directories\\arcgissystem",
                    "directoryType": "SYSTEM",
                    "cleanupMode": "NONE",
                    "maxFileAge": 0
                }
            ],
            "RegisteredDirectories": [
                {
                    "name": "BasemapsCacheDir",
                    "physicalPath": "C:\\arcgisserver\\additionaldirs\\cache",
                    "directoryType": "CACHE"
                },
                {
                    "name": "TestOutputDir",
                    "physicalPath": "C:\\arcgisserver\\additionaldirs\\testOutput",
                    "directoryType": "OUTPUT"
                },
                {
                    "name": "TestJobsDir",
                    "physicalPath": "C:\\arcgisserver\\additionaldirs\\testJobs",
                    "directoryType": "JOBS"
                }
            ],
            "PrimarySiteAdmin": {
                "UserName": "[PrimarySiteAdmin Username]",
                "Password": "[PrimarySiteAdmin Password]"
            }
        },
        "Portal": {
            "LicenseFilePath": "[License File Path - Portal ]",
            "PortalLicenseUserTypeId": "[Portal License User Type Id- Required for 10.7 and above]",
            "Installer": {
                "Path": "[Portal Installer Path]",
                "WebStylesPath": "[Optional Parameter starting ArcGIS Enterprise 10.7.1 - Portal Web Styles Installer Path]",
                "InstallDir": "[Portal Install Dir - Ex. C:\\ArcGIS\\Portal]",
                "ContentDir": "[Portal Content Dir for Install- Ex. C:\\arcgisportal",
                "PatchesDir": "[Path to Directory with Patches for Portal]"
            },
            "ContentDirectoryLocation":"C:\\arcgisportal\\content",
            "EnableAutomaticAccountCreation": true,
            "DisableServiceDirectory": true,
            "DefaultRoleForUser": "[Optional - Values: account_user | account_publisher | <custom role ID>]",
            "DefaultUserLicenseTypeIdForUser": "[Optional (Valid for 10.7 and later) - Values: fieldWorkerUT | GISProfessionalStdUT | GISProfessionalBasicUT | GISProfessionalAdvUT | creatorUT | editorUT | viewerUT]",
            "PortalAdministrator": {
                "UserName": "[PortalAdministrator Username]",
                "Email": "[PortalAdministrator Email]",
                "Password": "[PortalAdministrator Password]",
                "SecurityQuestionIndex": 1,
                "SecurityAnswer": "vanilla"
            },
            "EmailSettings":{
                "SMTPServerAddress":"[SMTP Server Host Address]",
                "From":"[SMTP Server Host Email From]",
                "Label":"[SMTP Server Host Email From Label]",
                "AuthenticationRequired":"[SMTP Server Host Authentication required flag - False | True]",
                "SMTPPort":"[SMTP Server Host Port]",
                "UserName": "[SMTP Server Host Authentication Username]",
                "Password": "[SMTP Server Host Authentication Password]",
                "PasswordFilePath": "[SMTP Server Host Authentication Password File Path]",
                "EncryptionMethod": "[SMTP Server Host Encryption Method - SSL,TLS,NONE]"
            }
        },
        "DataStore": {
            "ContentDirectoryLocation": "[Content Dir DataStore - C:\\arcgisdatastore]",
            "EnableFailoverOnPrimaryStop": false,
            "EnablePointInTimeRecovery": false,
            "Installer": {
                "Path": "[DataStore Installer Path]",
                "InstallDir": "[DataStore Install Dir - Ex. C:\\ArcGIS\\DataStore]",
                "PatchesDir": "[Path to Directory with Patches for DataStore]"
            }
        },
        "WebAdaptor": {
            "AdminAccessEnabled": true,
            "Installer": {
                "Path": "[WebAdaptor Installer Path]",
                "PatchesDir": "[Path to Directory with Patches for Web Adaptor]"
            },
            "WebSiteId": 1
        }
    }
}

@cameronkroeker
Copy link
Contributor

Thanks @PleaseStopAsking, support for this has been included in v3.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants