mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
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:
commit
df4759fee3
2 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 `
|
||||
|
|
|
|||
Loading…
Reference in a new issue