Merge pull request #547 from Icinga:docs/wrong_install-icinga_arguments

Docs: Fixes wrong argument on Install-Icinga from file
This commit is contained in:
Lord Hepipud 2022-08-18 13:35:47 +02:00 committed by GitHub
commit df4759fee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ The installation commands and answer files are simple JSON strings, containing r
'{"IfW-DirectorSelfServiceKey":{"Values":["651f889ca5f364e89ed709eabde6237fb02050ff"]},"IfW-DirectorUrl":{"Values":["https://icinga.example.com/icingaweb2/director"]}}'
```
If you want to use them as answer files, you can simply copy them as mentioned below inside a simple text file without modifications. This is required if you are using the `-AnswerFile` argument.
If you want to use them as answer files, you can simply copy them as mentioned below inside a simple text file without modifications. This is required if you are using the `-InstallFile` argument.
### Usage Examples
@ -20,10 +20,10 @@ Using the `-InstallCommand` argument for `Install-Icinga`:
Install-Icinga -InstallCommand '{"IfW-DirectorSelfServiceKey":{"Values":["651f889ca5f364e89ed709eabde6237fb02050ff"]},"IfW-DirectorUrl":{"Values":["https://icinga.example.com/icingaweb2/director"]}}';
```
Using the `-AnswerFile` argument for `Install-Icinga`:
Using the `-InstallFile` argument for `Install-Icinga`:
```powershell
Install-Icinga -AnswerFile 'C:\Users\Public\icinga_installation.json';
Install-Icinga -InstallFile 'C:\Users\Public\icinga_installation.json';
```
**Note:** You can use the same arguments on the `IcingaForWindows.ps1` as described in the [Getting Started](01-Getting-Started.md) page, for a full automation without user interaction.

View file

@ -12,7 +12,7 @@ function Show-IcingaForWindowsManagementConsoleInstallationFileExport()
@{
'Caption' = '';
'Command' = 'Export-IcingaForWindowsManagementConsoleInstallationAnswerFile';
'Help' = 'This will all you to export the answer file with the given configuration. You can install Icinga for Windows with this file by using the command "Install-Icinga -AnswerFile <path to the file>".';
'Help' = 'This will all you to export the answer file with the given configuration. You can install Icinga for Windows with this file by using the command "Install-Icinga -InstallFile <path to the file>".';
}
) `
-AddConfig `