forked from puppetlabs/puppetlabs-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 32-bit: Add examples of current registry key and value types Add the ability to manage 32 and 64-bit keys/values
- Loading branch information
Showing
9 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# = Class: registry_example | ||
# | ||
# This is an example of how to manage registry keys and values. | ||
# | ||
# = Parameters | ||
# | ||
# = Actions | ||
# | ||
# = Requires | ||
# | ||
# = Sample Usage | ||
# | ||
# include registry_example | ||
# | ||
# (MARKUP: http://links.puppetlabs.com/puppet_manifest_documentation) | ||
class registry_example { | ||
registry_key { 'HKLM\Software\Vendor': | ||
ensure => present, | ||
} | ||
|
||
# This should trigger a duplicate resource with HKLM | ||
# registry_key { 'HKEY_LOCAL_MACHINE\Software\Vendor': | ||
# ensure => present, | ||
# } | ||
|
||
registry_key { 'HKLM\Software\Vendor\Bar': | ||
ensure => present, | ||
} | ||
|
||
registry_value { 'HKLM\Software\Vendor\Bar\valuename1': | ||
ensure => present, | ||
type => qword, | ||
data => 100, | ||
} | ||
|
||
# # REVISIT We need to make this work | ||
# registry_value { 'HKLM\Software\Vendor\Bar\valuearray1': | ||
# ensure => present, | ||
# type => array, | ||
# data => [ 'one', 'two', 'three' ], | ||
# } | ||
|
||
# $some_string = "somestring" | ||
# registry_value { 'HKLM\Software\Vendor\Bar\valuearray2': | ||
# ensure => present, | ||
# type => array, | ||
# data => [ 'one', 'two', $some_string ], | ||
# } | ||
|
||
# $some_array = [ "array1", "array2", "array3" ] | ||
# registry_value { 'HKLM\Software\Vendor\Bar\valuearray3': | ||
# ensure => present, | ||
# type => array, | ||
# data => $some_array, | ||
# } | ||
} | ||
|
||
include registry_example |