How to perform an automatic installation of Sitecore?

My team is trying to perform an automatic installation of Sitecore through Salt using the Sitecore executable. We prefer to use .exe over the manual installation of the zip package, because the installation wizard processes the registration of Sitecore as an installed program by modifying the registry. This would theoretically allow Salt to know that the "state" has been fulfilled.

When you run the executable with /? argument, the following list of options is displayed:

/? or /help : this help screen
/i : install (default)
/x : uninstall
/q : force silent (no UI) mode
/qb : force basic UI mode
/nq : force full UI mode
/nosplash : do not display splash screen
/Log : enable logging
/LogFile [path] : specify log file
/ConfigFile [path] : specify configuration file
/ExtractCab : extract embedded components
/DisplayCab : display a list of embedded components
/DisplayConfig : display a list of configurations
/ComponentArgs ["id|display_name":"value"...] : additional component args
/ControlArgs ["id":"value" ...] : additional control values
/CompleteCommandArgs [args] : additional complete command 

Despite all our efforts, we cannot find documentation for these arguments other than those described above. I think we need to provide a configuration file to an executable (using an argument /ConfigFile) that contains the following information:

  • /
  • (/ )

/DisplayConfig .

- , / ?

+4
3

, , :

../ ///Sitecore/init.sls

Sitecore:
  7.1:
    installer: 'salt://win/repo/sitecore/Sitecore 7.1 rev. 130926.exe'
    full_name: 'Sitecore 7.1 rev. 130926 - Sitecore130926'
    reboot: False
    install_flags: ' /q /ExtractCab && msiexec.exe /qn /i SupportFiles\exe\Sitecore.msi TRANSFORMS=":InstanceId1;:ComponentGUIDTransform1.mst" MSINEWINSTANCE=1 LOGVERBOSE=1 SC_LANG="en-US" SC_CLIENTONLY="1" SKIPINSTALLSQLDATA="1" SKIPUNINSTALLSQLDATA="1" SC_INSTANCENAME="Sitecore130926" SC_LICENSE_PATH="C:\inetpub\temp\sitecore_license.xml" SC_SQL_SERVER="SERVER" SC_DBPREFIX="Sitecore130926" SC_DBTYPE="MSSQL" INSTALLLOCATION="C:\Inetpub\wwwroot\Sitecore130926" SC_DATA_FOLDER="C:\Inetpub\wwwroot\Sitecore130926\Data" SC_NET_VERSION="4" SITECORE_MVC="1" SC_INTEGRATED_PIPELINE_MODE="1" SC_IISSITE_NAME="Sitecore130926" SC_IISAPPPOOL_NAME="Sitecore130926AppPool" SC_IISSITE_HEADER="local.domain.org" SC_IISSITE_PORT="80" SC_IISSITE_ID="2" SC_PREFIX_PHYSICAL_FILES="1" SC_SQL_SERVER_CONFIG_USER="USER" SC_SQL_SERVER_CONFIG_PASSWORD="PASSWORD" /l*+v "C:\inetpub\temp\SitecoreInstaller.log"'
    uninstaller: 'salt://win/repo/sitecore/Sitecore 7.1 rev. 130926.exe'
    uninstall_flags: ' /q /ExtractCab && msiexec.exe /qn /X{D0CB9951-0EC0-55B1-A2C8-4590B816E4EC}'

../-/Sitecore/init.sls

Sitecore:
  pkg.installed:
    - refresh: true
    - require:
      - file: C:\inetpub\temp\sitecore_license.xml

C:\inetpub\temp\sitecore_license.xml:
  file.managed:
  - source: salt://sitecore/license.xml

sitecore . /salt -states/sitecore/license.xml

JermDavis !

+3

Are you attached to using this tool or open to others? My team has achieved excellent results with the SIM tool, which comes directly from the Sitecore Marketplace. It has command line features as well as an API for more complex setup options. I consider this a borderline magic utility for Sitecore :)

https://marketplace.sitecore.net/en/Modules/Sitecore_Instance_Manager.aspx

+2
source

Source: https://habr.com/ru/post/1540871/


All Articles