Git Product home page Git Product logo

puppet-osx-powermgmt's Introduction

Powermgmt - A Puppet resource for OSX Power Management.

This provider is a simple interface to pmset which will allow you to set power management features in Mac OS X.

Features

  • Set display/system sleep times
  • Set Wake on LAN magic packet
  • Set power button behaviour (sleep/power off)
  • Set auto-restart on power loss

Limitations

  • Cannot set whether the screen is dimmed or turned off during sleep.
  • Currently pmset only reports the ACTIVE profile, and so this isn't very useful for dealing with laptop power management unless you would like the same profile regardless of whether the system is running on battery or not.

Example

All of the parameters supplied below are optional.

The namevar is just a placeholder for the set of values you are using.

powermgmt { "never sleep":
	sleep               => 0, # System sleep time (in minutes) zero means never sleep
	disk_sleep          => 0, # Disk spin down time (in minutes)
	display_sleep       => 0, # Display sleep time (in minutes)
	wake_on_lan         => true, # Turn on wake on lan
	power_button_sleeps => true, # Pressing the power button sleeps instead of shutting down.
	autorestart         => true, # Automatically restart on power outage.
}

puppet-osx-powermgmt's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.