Version information
Start using this module
Add this module to your Puppetfile:
mod 'jhoblitt-policykit', '1.1.0'
Learn more about managing modules with a PuppetfileDocumentation
Puppet policykit Module
Table of Contents
Overview
Manages the policykit package
Description
Ensures that the PolicyKit or
polkit
package is
installed and provides a mechanism for managing localauthority configuration
files.
Forked
This module was forked from [git://git.sans.ethz.ch/puppet-modules/policykit] in order to update it's functionality and add basic tests.
Usage
To only ensure that the policykit software package is installed. Note that
this isn't nessicary when using the policykit::localauthority
defined type as
including the policykit
class is implied.
include policykit
Create a new authority file.
policykit::localauthority { 'Disable suspend':
identity => 'unix-user:*',
action => 'org.freedesktop.upower.suspend',
result_active => 'no',
result_any => 'no',
result_inactive => 'no',
}
To remove an existing authority configuration. Note that all of the params are still required. This is arguably a bug.
policykit::localauthority { 'Disable suspend':
ensure => absent,
identity => 'unix-user:*',
action => 'org.freedesktop.upower.suspend',
result_active => 'no',
result_any => 'no',
result_inactive => 'no',
}
Limitations
At present, only support for $::osfamily == 'RedHat'
has been implimented.
Adding other Linux distrubtions should be trivial. Policykit is not present in
releases prior to el6.x.
Tested on
- el6.x
- Debian 7.0 (wheezy)
Versioning
This module is versioned according to the Semantic Versioning 2.0.0 specification.
Support
Please log tickets and issues at github
See Also
[Current]
- ae6af9f - (Joshua Hoblitt) fix w/s
- 84ad3b4 - (Joshua Hoblitt) Merge pull request #2 from jhoblitt/debian_support
add $::osfamily == debian support
- 1b245fc - (Joshua Hoblitt) work around RubyGems 2.2.0 breaking ruby 1.8.7
Taken from https://github.com/freerange/mocha/commit/66bab2a8f4e7cd8734bf88e6f32157c0d5153125
- 922c56f - (Joshua Hoblitt) add $::osfamily == debian support
- cc3704c - (Joshua Hoblitt) fix trivial README MD formatting
- 3927cbe - (Joshua Hoblitt) update README formatting + boilerplate
- 3e91613 - (Joshua Hoblitt) Merge pull request #1 from jhoblitt/system-tests
System tests
- 95cc94a - (Joshua Hoblitt) add basic rspec-system tests
- 1bbb9ea - (Joshua Hoblitt) update stdlib dep to >= 3.0.0
- 88ca870 - (Joshua Hoblitt) trim travis test matrix
v1.0.1
v1.0.0
- fa3865f - (Joshua Hoblitt) README update
- 19574a6 - (Joshua Hoblitt) doc update
- da6d309 - (Joshua Hoblitt) add policykit::params class
- 8b01bd9 - (Joshua Hoblitt) validate policykit::localauthority params + simple rspec
- e829341 - (Joshua Hoblitt) add $result_inactive param to policykit::localauthority
- fadde46 - (Joshua Hoblitt) fix linter errors/warnings + 2 space indent
- a1b1c78 - (Joshua Hoblitt) Merge puppet-module_skel
- 85f8fa1 - (Steven Armstrong) moved definition of directory /etc/polkit-1/localauthority/50-local.d from define to class
Signed-off-by: Steven Armstrong steven.armstrong@inf.ethz.ch
- a5e3be7 - (Steven Armstrong) also allow removal
Signed-off-by: Steven Armstrong steven.armstrong@inf.ethz.ch
- 0314a9a - (Steven Armstrong) initial commit
Dependencies
- puppetlabs/stdlib (>= 3.0.0)
The original code is licensed under GPLv3 per the original README file. --- # # D-INFK SANS # =========== # # Copyright: Steven Armstrong, Nico Schottelius # # For an up-to-date version have a look at http://git.sans.ethz.ch/, # # License: GPLv3 # --- All contributions to the original code base by Joshua Hoblitt are licensed under the Apache License, Version 2.0. Copyright (C) 2013 Joshua Hoblitt <jhoblitt@cpan.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.