<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet.git/lib/puppet/provider, branch ticket/master/7841</title>
<subtitle>Puppet repo</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/'/>
<entry>
<title>SELinux module headers are always little endian.</title>
<updated>2011-08-31T15:22:14+00:00</updated>
<author>
<name>Ricky Zhou</name>
<email>ricky@fedoraproject.org</email>
</author>
<published>2011-06-08T21:42:07+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=b51961446995a8c3b62f710e61630a658798fd8c'/>
<id>b51961446995a8c3b62f710e61630a658798fd8c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '2.7.x'</title>
<updated>2011-08-24T22:42:03+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-24T22:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=da4a2def42639817c4522fc0162bd691956998da'/>
<id>da4a2def42639817c4522fc0162bd691956998da</id>
<content type='text'>
Conflicts:
	lib/puppet/feature/base.rb
	lib/puppet/file_serving/configuration.rb
	spec/unit/indirector/ssl_file_spec.rb
	spec/unit/parser/functions/extlookup_spec.rb
	spec/unit/resource/catalog_spec.rb
	test/language/ast/variable.rb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	lib/puppet/feature/base.rb
	lib/puppet/file_serving/configuration.rb
	spec/unit/indirector/ssl_file_spec.rb
	spec/unit/parser/functions/extlookup_spec.rb
	spec/unit/resource/catalog_spec.rb
	test/language/ast/variable.rb
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Add missing tests for Windows service provider methods.</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Cameron Thomas</name>
<email>cameron@puppetlabs.com</email>
</author>
<published>2011-07-27T22:30:19+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=4237cb1b12851d42504c9829fc61fe31cb84866c'/>
<id>4237cb1b12851d42504c9829fc61fe31cb84866c</id>
<content type='text'>
Added missing spec tests for Windows service provider methods:
  :stop, :enable, :disable, and :manual_start
Refactored to match Nick's previous work.

Reviewed By: Nick Lewis [nick@puppetlabs.com]
(cherry picked from commit d08ae7fd2180c95d1fcafa149128d25cc4680c6c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added missing spec tests for Windows service provider methods:
  :stop, :enable, :disable, and :manual_start
Refactored to match Nick's previous work.

Reviewed By: Nick Lewis [nick@puppetlabs.com]
(cherry picked from commit d08ae7fd2180c95d1fcafa149128d25cc4680c6c)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8409) Add a default group provider for Windows</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-09T20:04:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=a32c8be4b32cfbc0588648e56e9194f3a75bbaa6'/>
<id>a32c8be4b32cfbc0588648e56e9194f3a75bbaa6</id>
<content type='text'>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
groups. It can only manage group existence and memberships, but is fully
functional in those regards.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit 01f09f5f395bab66b90a4e81e958aa89025977b4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
groups. It can only manage group existence and memberships, but is fully
functional in those regards.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit 01f09f5f395bab66b90a4e81e958aa89025977b4)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8408) Add a default user provider for Windows</title>
<updated>2011-08-19T20:52:59+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-08-09T20:04:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=4f7170a0fd7d77d7d9941001cdb7dbcb0662d6b4'/>
<id>4f7170a0fd7d77d7d9941001cdb7dbcb0662d6b4</id>
<content type='text'>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
users. It can currently only manage group memberships, comments, and home
directories, which are the only fields that can be managed via ADSI.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit ac00e9e289f8fdc81f060e7dd289e1a8e0f133c0)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provider, windows_adsi, uses the Puppet::Util::ADSI module to manage
users. It can currently only manage group memberships, comments, and home
directories, which are the only fields that can be managed via ADSI.

Based on work by: Joel Rosario &lt;joel.r@.internal.directi.com&gt;
Based on work by: Cameron Thomas &lt;cameron@puppetlabs.com&gt;
Reviewed-By: Matt Robinson &lt;matt@puppetlabs.com&gt;
(cherry picked from commit ac00e9e289f8fdc81f060e7dd289e1a8e0f133c0)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8644) Host provider on Windows</title>
<updated>2011-08-19T20:52:58+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>josh@puppetlabs.com</email>
</author>
<published>2011-07-29T20:30:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=7259e1e5877b81dc5fd9b6ff090a4cccfc37c2f4'/>
<id>7259e1e5877b81dc5fd9b6ff090a4cccfc37c2f4</id>
<content type='text'>
The host provider did not work on Windows because it didn't know where
to find its hosts file. The provider now uses Win32::Resolv, which is
part of the standard ruby library, to find it.

Several host type/provider spec tests were marked as fails_on_windows,
but now that the provider is working, I removed the tag from those
tests, and verified that the tests now pass. There are two tests in
resources_spec that fail because the user and exec providers are not
supported on Windows yet, so those tests are marked as fails_on_windows.

Reviewed-by: Pieter van de Bruggen &lt;pieter@puppetlabs.com&gt;
(cherry picked from commit 82c6b3cb41397c989c011cf767066bcf1e403db2)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The host provider did not work on Windows because it didn't know where
to find its hosts file. The provider now uses Win32::Resolv, which is
part of the standard ruby library, to find it.

Several host type/provider spec tests were marked as fails_on_windows,
but now that the provider is working, I removed the tag from those
tests, and verified that the tests now pass. There are two tests in
resources_spec that fail because the user and exec providers are not
supported on Windows yet, so those tests are marked as fails_on_windows.

Reviewed-by: Pieter van de Bruggen &lt;pieter@puppetlabs.com&gt;
(cherry picked from commit 82c6b3cb41397c989c011cf767066bcf1e403db2)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Allow disabled Windows services to be started</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-07-26T22:59:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=28b16584d13399f911577a47a355e866d8601085'/>
<id>28b16584d13399f911577a47a355e866d8601085</id>
<content type='text'>
Because Windows allows a service to be both running and disabled, we now
support that capability. If a service is explicitly requested to be running and
disabled, we will set it to manual start if necessary, start it, and then
disable it. If the service is requested to be running and enabled, we will now
enable it before attempting to start it (previously, this would simply try to
start it and fail).

The exception to this rule is a service which is disabled, and for which we are
not managing the enable property. In that case, we assume that some other
authority has disabled the service, and respect that, failing to start. Thus,
if the user actually wants a service to be running and disabled, they must
explicitly declare that intent.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 12d0018f93e5a72a728c6decffb351a693a86344)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because Windows allows a service to be both running and disabled, we now
support that capability. If a service is explicitly requested to be running and
disabled, we will set it to manual start if necessary, start it, and then
disable it. If the service is requested to be running and enabled, we will now
enable it before attempting to start it (previously, this would simply try to
start it and fail).

The exception to this rule is a service which is disabled, and for which we are
not managing the enable property. In that case, we assume that some other
authority has disabled the service, and respect that, failing to start. Thus,
if the user actually wants a service to be running and disabled, they must
explicitly declare that intent.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 12d0018f93e5a72a728c6decffb351a693a86344)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Use symbols instead of booleans for enabled property on Windows</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-07-26T22:58:31+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=881c3858e88b6cc3d2c0e7bea6785fcbf091e4c0'/>
<id>881c3858e88b6cc3d2c0e7bea6785fcbf091e4c0</id>
<content type='text'>
Because the enable property of the service type uses :true and :false as its
valid values, rather than true and false, we need to return :true and :false
from our enabled? method. Otherwise, the property was being synced every time
it was enabled or disabled, regardless of whether it was actually in sync or
not.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 44e2d494f499e2005c1b31b92b97834189d4224d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because the enable property of the service type uses :true and :false as its
valid values, rather than true and false, we need to return :true and :false
from our enabled? method. Otherwise, the property was being synced every time
it was enabled or disabled, regardless of whether it was actually in sync or
not.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 44e2d494f499e2005c1b31b92b97834189d4224d)
</pre>
</div>
</content>
</entry>
<entry>
<title>(#8272) Fixup logging in Windows service provider</title>
<updated>2011-08-19T20:52:57+00:00</updated>
<author>
<name>Nick Lewis</name>
<email>nick@puppetlabs.com</email>
</author>
<published>2011-07-26T18:38:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=9c575bd9106b3ffed92c357ead8ff06c01c484d5'/>
<id>9c575bd9106b3ffed92c357ead8ff06c01c484d5</id>
<content type='text'>
We want to use self.debug for logging in the provider, so that log messages are
properly associated with the resource, rather than generically coming from
Puppet.

Also fix the self.instances method to not use an unnecessary extra variable
when collecting.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 38c181d00e87ecc699c6a3e23dd2155f716a6602)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want to use self.debug for logging in the provider, so that log messages are
properly associated with the resource, rather than generically coming from
Puppet.

Also fix the self.instances method to not use an unnecessary extra variable
when collecting.

Reviewed-By: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 38c181d00e87ecc699c6a3e23dd2155f716a6602)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add basic service provider for Windows</title>
<updated>2011-08-19T20:52:56+00:00</updated>
<author>
<name>Cameron Thomas</name>
<email>cameron@puppetlabs.com</email>
</author>
<published>2011-07-22T22:09:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/ricky/public_git/puppet.git/commit/?id=3be4d79d288f43f0476f0fa8666936c184d2ca35'/>
<id>3be4d79d288f43f0476f0fa8666936c184d2ca35</id>
<content type='text'>
This provider allows us to query the system state through "puppet
resource", and manage the ensure, and enabled properties of services on
Windows.

This also adds support for a new enabled value of 'manual' on Windows
only.  With this we support the three major start types for services on
Windows, with the following mapping of enabled to start type:

  true   =&gt; Automatic
  false  =&gt; Disabled
  manual =&gt; Manual (Demand)

We use the win32-service gem to provide access to the Windows APIs for
our operations.  This does add a new gem requirement for running Puppet
on Windows, but we were already requiring some gems from the same suite
that win32-service is a part of.

When referring to a service, the simple service name must be used,
instead of the display name.  For example, "snmptrap", instead of
"SNMP Trap".

All system services are reported in 'puppet resource service',
including those started prior to run level 3 (system, device drivers,
etc.).  These services should probably not be managed, without careful
thought and planning.

This currently does not support being able to move a service from
{enabled =&gt; false, ensure =&gt; stopped} to {enabled =&gt; true, ensure =&gt;
running} (or enabled =&gt; manual) in a single Puppet run, since Puppet
currently always tries to sync ensure before any other property.
Because of this, the puppet run will fail every time, and the service
must first be managed as {ensure =&gt; stopped, enabled =&gt; true} (or
enabled =&gt; manual), before it can be managed as running and automatic
start or manual start.

Reviewed by: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 82476e8be41b62ce1767ab6854a72b481b917380)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provider allows us to query the system state through "puppet
resource", and manage the ensure, and enabled properties of services on
Windows.

This also adds support for a new enabled value of 'manual' on Windows
only.  With this we support the three major start types for services on
Windows, with the following mapping of enabled to start type:

  true   =&gt; Automatic
  false  =&gt; Disabled
  manual =&gt; Manual (Demand)

We use the win32-service gem to provide access to the Windows APIs for
our operations.  This does add a new gem requirement for running Puppet
on Windows, but we were already requiring some gems from the same suite
that win32-service is a part of.

When referring to a service, the simple service name must be used,
instead of the display name.  For example, "snmptrap", instead of
"SNMP Trap".

All system services are reported in 'puppet resource service',
including those started prior to run level 3 (system, device drivers,
etc.).  These services should probably not be managed, without careful
thought and planning.

This currently does not support being able to move a service from
{enabled =&gt; false, ensure =&gt; stopped} to {enabled =&gt; true, ensure =&gt;
running} (or enabled =&gt; manual) in a single Puppet run, since Puppet
currently always tries to sync ensure before any other property.
Because of this, the puppet run will fail every time, and the service
must first be managed as {ensure =&gt; stopped, enabled =&gt; true} (or
enabled =&gt; manual), before it can be managed as running and automatic
start or manual start.

Reviewed by: Jacob Helwig &lt;jacob@puppetlabs.com&gt;
(cherry picked from commit 82476e8be41b62ce1767ab6854a72b481b917380)
</pre>
</div>
</content>
</entry>
</feed>
