Windows 2008 R2 x64 / Ruby 1.9.3 x86 using the gem
Looks good!
-
Ruby
C:\source\puppet-gem-test> ruby --version
|
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
|
-
Installation
C:\source\puppet-gem-test> gem install .\puppet-3.7.5-x86-mingw32.gem --no-ri --no-rdoc
|
Fetching: ffi-1.9.8-x86-mingw32.gem (100%)
|
Successfully installed ffi-1.9.8-x86-mingw32
|
Fetching: win32-dir-0.4.9.gem (100%)
|
Successfully installed win32-dir-0.4.9
|
Fetching: win32-security-0.2.5.gem (100%)
|
Successfully installed win32-security-0.2.5
|
Fetching: win32console-1.3.2-x86-mingw32.gem (100%)
|
Successfully installed win32console-1.3.2-x86-mingw32
|
Fetching: facter-2.4.1-x86-mingw32.gem (100%)
|
Successfully installed facter-2.4.1-x86-mingw32
|
Fetching: json_pure-1.8.2.gem (100%)
|
Successfully installed json_pure-1.8.2
|
Fetching: hiera-1.3.4.gem (100%)
|
Successfully installed hiera-1.3.4
|
Fetching: win32-eventlog-0.6.2.gem (100%)
|
Successfully installed win32-eventlog-0.6.2
|
Fetching: win32-process-0.7.5.gem (100%)
|
Successfully installed win32-process-0.7.5
|
Fetching: win32-service-0.8.6.gem (100%)
|
Successfully installed win32-service-0.8.6
|
Fetching: minitar-0.5.4.gem (100%)
|
Successfully installed minitar-0.5.4
|
Successfully installed puppet-3.7.5-x86-mingw32
|
12 gems installed
|
-
Version
C:\source\puppet-gem-test> puppet --version
|
3.7.5
|
-
Apply
C:\source\puppet-gem-test> puppet apply -e "notify {'test':}"
|
Notice: Compiled catalog for vagrant-2008r2.corp.puppetlabs.net in environment production in 0.03 seconds Notice: test
|
Notice: /Stage[main]/Main/Notify[test]/message: defined 'message' as 'test'
|
Notice: Finished catalog run in 0.02 seconds
|
C:\source\puppet-gem-test> puppet resource user
|
user { 'Administrator':
|
ensure => 'present',
|
comment => 'Built-in account for administering the computer/domain',
|
groups => ['Administrators', 'Performance Log Users'],
|
uid => 'S-1-5-21-271343509-1886877197-423808128-500',
|
}
|
user { 'Guest':
|
ensure => 'present',
|
comment => 'Built-in account for guest access to the computer/domain',
|
groups => ['Guests'],
|
uid => 'S-1-5-21-271343509-1886877197-423808128-501',
|
}
|
user { 'cyg_server':
|
ensure => 'present',
|
groups => ['Administrators', 'Users'],
|
home => 'C:\cygwin\var\empty',
|
uid => 'S-1-5-21-271343509-1886877197-423808128-1003',
|
}
|
user { 'jim':
|
ensure => 'present',
|
groups => ['Administrators'],
|
uid => 'S-1-5-21-271343509-1886877197-423808128-3438',
|
}
|
user { 'sshd':
|
ensure => 'present',
|
groups => ['Users'],
|
home => 'C:\cygwin\var\empty',
|
uid => 'S-1-5-21-271343509-1886877197-423808128-1002',
|
}
|
user { 'vagrant':
|
ensure => 'present',
|
comment => 'Vagrant User',
|
groups => ['Administrators', 'Users'],
|
uid => 'S-1-5-21-271343509-1886877197-423808128-1000',
|
}
|
|