Fixes docs for wrong argument on Install-Icinga

This commit is contained in:
Lord Hepipud 2022-08-18 13:34:33 +02:00
parent 2c8a92fab5
commit 8107e1152e
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"]}}' '{"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 ### 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"]}}'; 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 ```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. **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' = ''; 'Caption' = '';
'Command' = 'Export-IcingaForWindowsManagementConsoleInstallationAnswerFile'; '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 ` -AddConfig `