Skip to content

Instantly share code, notes, and snippets.

@michaeltlombardi
Last active April 14, 2020 19:26
Show Gist options
  • Save michaeltlombardi/2c5cd1914dd67cc49eec4a4b49fb2224 to your computer and use it in GitHub Desktop.
Save michaeltlombardi/2c5cd1914dd67cc49eec4a4b49fb2224 to your computer and use it in GitHub Desktop.
Example Puppet Manifest using the PowerShellGet DSC Resources
dsc_psrepository {'Add team module repo':
dsc_name => 'foo',
dsc_ensure => present,
# This location is nonsense, can be any valid folder on your
# machine or in a share, any location the SourceLocation param
# for the DSC resource will accept.
dsc_sourcelocation => 'C:\Program Files',
dsc_installationpolicy => untrusted,
}
dsc_psrepository {'Trust public gallery':
dsc_name => 'PSGallery',
dsc_ensure => present,
dsc_installationpolicy => foo,
}
dsc_psmodule {'Make Ruby manageable via uru':
dsc_name => 'RubyInstaller',
dsc_ensure => present,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment