Skip to content

Commit

Permalink
Fix parameter name (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed Mar 9, 2024
1 parent 1835448 commit 17ed47f
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 124 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 12/12/2018
ms.date: 03/09/2024
keywords: dsc,powershell,resource,gallery,setup
title: Add Parameters to a Configuration
description: DSC Configurations can be parameterized to allow more dynamic configurations based on user input.
Expand All @@ -18,7 +18,7 @@ This example starts with a basic Configuration that configures the "Spooler" ser
Configuration TestConfig
{
# It is best practice to explicitly import any required resources or modules.
Import-DSCResource -Module PSDesiredStateConfiguration
Import-DSCResource -ModuleName PSDesiredStateConfiguration
Node localhost
{
Expand Down Expand Up @@ -112,7 +112,7 @@ Configuration TestConfig
)
# It is best practice to explicitly import any required resources or modules.
Import-DSCResource -Module PSDesiredStateConfiguration
Import-DSCResource -ModuleName PSDesiredStateConfiguration
Node $ComputerName
{
Expand Down Expand Up @@ -150,7 +150,7 @@ Configuration TestConfig
)
# It is best practice to explicitly import any required resources or modules.
Import-DSCResource -Module PSDesiredStateConfiguration
Import-DSCResource -ModuleName PSDesiredStateConfiguration
Node $ComputerName
{
Expand Down Expand Up @@ -237,7 +237,7 @@ Configuration TestConfig
)
# It is best practice to explicitly import any required resources or modules.
Import-DSCResource -Module PSDesiredStateConfiguration
Import-DSCResource -ModuleName PSDesiredStateConfiguration
Node $ComputerName
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 12/12/2018
ms.date: 03/09/2024
keywords: dsc,powershell,configuration,setup
title: Specifying cross-node dependencies
description: DSC provides special resources that are used in configurations to specify dependencies on configurations on other nodes.
Expand Down Expand Up @@ -86,7 +86,7 @@ will typically want to specify a **RetryCount** and **RetryIntervalSec**.
```powershell
Configuration JoinDomain
{
Import-DscResource -Module xComputerManagement, xActiveDirectory
Import-DSCResource -ModuleName xComputerManagement, xActiveDirectory
Node myDC
{
Expand Down
6 changes: 3 additions & 3 deletions dsc/docs-conceptual/dsc-1.1/configurations/reboot-a-node.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 01/17/2019
ms.date: 03/09/2024
keywords: dsc,powershell,configuration,setup
title: Reboot a Node
description: Many configuration settings can require the computer to be rebooted for the configuration change to be complete. This article explains how to manage reboots in a configuration.
Expand Down Expand Up @@ -98,8 +98,8 @@ Configuration Example
$ExchangeAdminCredential
)
Import-DscResource -Module xExchange
Import-DscResource -Module ComputerManagementDsc
Import-DSCResource -ModuleName xExchange
Import-DSCResource -ModuleName ComputerManagementDsc
Node $AllNodes.NodeName
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 06/12/2017
ms.date: 03/09/2024
keywords: dsc,powershell,configuration,setup
title: Separating configuration and environment data
description: It can be useful to separate the data used in a DSC configuration from the configuration itself by using configuration data. By doing this, you can use a single configuration for multiple environments.
Expand Down Expand Up @@ -155,9 +155,9 @@ Let's define the configuration in a file named `MyWebApp.ps1`:
```powershell
Configuration MyWebApp
{
Import-DscResource -Module PSDesiredStateConfiguration
Import-DscResource -Module xSqlPs
Import-DscResource -Module xWebAdministration
Import-DSCResource -ModuleName PSDesiredStateConfiguration
Import-DSCResource -ModuleName xSqlPs
Import-DSCResource -ModuleName xWebAdministration
Node $AllNodes.Where{$_.Role -contains "MSSQL"}.NodeName
{
Expand Down
10 changes: 5 additions & 5 deletions dsc/docs-conceptual/dsc-1.1/getting-started/lnxGettingStarted.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 06/04/2021
ms.date: 03/09/2024
keywords: dsc,powershell,configuration,setup
title: Get started with Desired State Configuration (DSC) for Linux
description: This topic explains how to get started using PowerShell Desired State Configuration (DSC) for Linux.
Expand Down Expand Up @@ -52,10 +52,10 @@ DSC for Linux is available for download from the
[PowerShell-DSC-for-Linux](https://github.com/Microsoft/PowerShell-DSC-for-Linux/releases/tag/v1.2.1-0)
repository in the repository.

To install DSC, install the package that is appropriate for your Linux system (.rpm or .deb),
To install DSC, install the package that is appropriate for your Linux system (.rpm or .deb),
OpenSSL version, and architecture (x64/x86). RPM packages are appropriate for CentOS, Red Hat
Enterprise Linux, SUSE Linux Enterprise Server, and Oracle Linux. DEB packages are appropriate
for Debian GNU/Linux and Ubuntu Server.
for Debian GNU/Linux and Ubuntu Server.

> [!NOTE]
> Support for DSC Linux OpenSSL up to version 1.1. To determine the installed OpenSSL version,
Expand Down Expand Up @@ -87,7 +87,7 @@ document for a Linux computer using Windows PowerShell.
```powershell
Configuration ExampleConfiguration{
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
}
```
Expand All @@ -97,7 +97,7 @@ document for a Linux computer using Windows PowerShell.
```powershell
Configuration ExampleConfiguration
{
Import-DscResource -Module nx
Import-DSCResource -ModuleName nx
Node "linuxhost.contoso.com"
{
Expand Down
4 changes: 2 additions & 2 deletions dsc/docs-conceptual/dsc-1.1/overview/DscForEngineers.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 10/13/2017
ms.date: 03/09/2024
keywords: dsc,powershell,configuration,setup
title: Desired State Configuration Overview for Engineers
description: This document is intended for developer and operations teams to understand the benefits of PowerShell Desired State Configuration (DSC).
Expand Down Expand Up @@ -92,7 +92,7 @@ DSC allows you to say what you want done, and the underlying logic is abstracted
# A configuration is a special kind of PowerShell function
Configuration Sample_Share
{
Import-DscResource -Module xSmbShare
Import-DSCResource -ModuleName xSmbShare
# Nodes are the endpoint we wish to configure
# A Configuration block can have zero or more Node blocks
Node $NodeName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxArchive Resource
description: DSC for Linux nxArchive Resource
Expand Down Expand Up @@ -45,7 +45,7 @@ The following example shows how to use the **nxArchive** resource to ensure that
archive file called `website.tar` exist and are extracted at a given destination.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
nxFile SyncArchiveFromWeb
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxEnvironment Resource
description: DSC for Linux nxEnvironment Resource
Expand Down Expand Up @@ -54,7 +54,7 @@ The following example shows how to use the **nxEnvironment** resource to ensure
**TestEnvironmentVariable** is not present, it will be created.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
nxEnvironment EnvironmentExample
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxFileLine Resource
description: DSC for Linux nxFileLine Resource
Expand Down Expand Up @@ -41,7 +41,7 @@ This example demonstrates using the **nxFileLine** resource to configure the `/e
ensuring that the user: monuser is configured to not requiretty.

```powershell
Import-DscResource -Module nx
Import-DSCResource -ModuleName nx
nxFileLine DoNotRequireTTY
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxFile Resource
description: DSC for Linux nxFile Resource
Expand Down Expand Up @@ -67,7 +67,7 @@ break characters:
with the web or ftp URL to the file.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $Node
{
Expand All @@ -86,7 +86,7 @@ break characters:
property to use the Linux line-break character.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $Node
{
Expand All @@ -112,7 +112,7 @@ break characters:
Return $outputStr
}
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $Node
{
Expand All @@ -139,7 +139,7 @@ The following example ensures that the directory `/opt/mydir` exists, and that a
contents exists this directory.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node {
nxFile DirectoryExample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxGroup Resource
description: DSC for Linux nxGroup Resource
Expand Down Expand Up @@ -46,7 +46,7 @@ nxGroup <string> #ResourceName
The following example ensures that the user 'monuser' exists and is a member of the group 'DBusers'.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxPackage Resource
description: DSC for Linux nxPackage Resource
Expand Down Expand Up @@ -49,7 +49,7 @@ The following example ensures that the package named "httpd" is installed on a L
the "Yum" package manager.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxScript Resource
description: DSC for Linux nxScript Resource
Expand Down Expand Up @@ -45,7 +45,7 @@ The following example demonstrates the use of the **nxScript** resource to perfo
configuration management.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxService Resource
description: DSC for Linux nxService Resource
Expand Down Expand Up @@ -49,7 +49,7 @@ The following example shows configuration of the 'httpd' service (for Apache HTT
registered with the **SystemD** service controller.

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxSshAuthorizedKeys Resource
description: DSC for Linux nxSshAuthorizedKeys Resource
Expand Down Expand Up @@ -42,7 +42,7 @@ nxAuthorizedKeys <string> #ResourceName
The following example defines a public ssh authorized key for the user "monuser".

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ms.date: 07/17/2020
ms.date: 03/09/2024
ms.topic: reference
title: DSC for Linux nxUser Resource
description: DSC for Linux nxUser Resource
Expand Down Expand Up @@ -52,7 +52,7 @@ nxUser <string> #ResourceName
The following example ensures that the user "monuser" exists and is a member of the group "DBusers".

```powershell
Import-DSCResource -Module nx
Import-DSCResource -ModuleName nx
Node $node
{
Expand Down
Loading

0 comments on commit 17ed47f

Please sign in to comment.