• This repository has been archived on 02/Dec/2020
  • Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 12 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generic OS X stuffs for boxen

OSX Defaults Module for Puppet

Build Status

Provides classes for setting various defaults in Mac OS X. Also provides a means to set a "recovery message" to be displayed on the login and lock screens.

Recovery Message Usage

Displays the given message on the lock and login screens.

osx::recovery_message { 'If this Mac is found, please call 123-456-7890': }

One-Shot Settings

Just include any of these in your manifest.

Global Settings

  • osx::global::disable_key_press_and_hold - disable press-and-hold for accented character entry
  • osx::global::enable_keyboard_control_access - enables the keyboard for navigating controls in dialogs
  • osx::global::enable_standard_function_keys - enables the F1, F2, etc. keys to be treated as standard function keys
  • osx::global::expand_print_dialog - expand the print dialog by default
  • osx::global::expand_save_dialog - expand the save dialog by default
  • osx::global::disable_remote_control_ir_receiver - disable remote control infrared receiver
  • osx::global::disable_autocorrect - disables spelling autocorrection
  • osx::global::tap_to_click - enables tap to click
  • osx::global::enable_dark_mode - enables "dark mode"
  • osx::global::enable_dark_mode_shortcut - enables command + option + control + t to toggle "dark mode"

Dock Settings

  • osx::dock::2d - use the old flat dock style
  • osx::dock::autohide - automatically hide the dock
  • osx::dock::clear_dock - ensures the dock only contains apps that are running
  • osx::dock::disable - disable the dock by setting a long autohide-delay
  • osx::dock::disable_dashboard - disable the dashboard
  • osx::dock::dim_hidden_apps - dims icons of hidden apps
  • osx::dock::hide_indicator_lights - remove the indicator lights below running apps

Finder Settings

  • osx::finder::show_external_hard_drives_on_desktop
  • osx::finder::show_hard_drives_on_desktop
  • osx::finder::show_mounted_servers_on_desktop
  • osx::finder::show_removable_media_on_desktop
  • osx::finder::show_all_on_desktop - does all of the above
  • osx::finder::empty_trash_securely - enable Secure Empty Trash
  • osx::finder::unhide_library - unsets the hidden flag on ~/Library
  • osx::finder::show_hidden_files
  • osx::finder::enable_quicklook_text_selection
  • osx::finder::show_warning_before_emptying_trash
  • osx::finder::show_warning_before_changing_an_extension
  • osx::finder::show_all_filename_extensions
  • osx::finder::no_file_extension_warnings

Universal Access Settings

  • osx::universal_access::ctrl_mod_zoom - enables zoom by scrolling while holding Control
  • osx::universal_access::enable_scrollwheel_zoom - enables zoom using the scroll wheel

Safari Settings

  • include osx::safari::enable_developer_mode - enables developer mode in safari

Miscellaneous Settings

  • osx::disable_app_quarantine - disable the downloaded app quarantine
  • osx::no_network_dsstores - disable creation of .DS_Store files on network shares
  • osx::software_update - download and install software updates
  • osx::keyboard::capslock_to_control - remaps capslock to control on attached keyboards

Customizable Settings

These settings can be used like one-shots or customized.

osx::global::key_repeat_delay - the amount of time (in ms) before a key starts repeating

# Set the default value (35)
include osx::global::key_repeat_delay

# ... or set your own
class { 'osx::global::key_repeat_delay':
  delay => 10
}

osx::global::key_repeat_rate - the amount of time (in ms) before key repeat 'presses'

# Set the default value (0)
include osx::global::key_repeat_rate

# ... or set your own
class { 'osx::global::key_repeat_rate':
  rate => 2
}

osx::global::natural_mouse_scrolling - enable/disable 'natural' mouse scrolling. Requires re-login for new settings to initialize.

# Set the default value (enabled=true)
include osx::global::natural_mouse_scrolling

# ... or set your own
class { 'osx::global::natural_mouse_scrolling':
  enabled => false
}

osx::universal_access::cursor_size - the amount the cursor will be zoomed

# Set the default value (1.5)
include osx::universal_access::cursor_size

# ... or set your own
class { 'osx::universal_access::cursor_size':
  zoom => 2
}

osx::dock::icon_size - the size of the dock icons, in pixels

# Set the default value (36)
include osx::dock::icon_size

# ... or set your own
class { 'osx::dock::icon_size':
  size => 36
}

osx::dock::position - the location of the dock on the screen ('right', 'left', 'top', 'bottom')

# Set the default value ('right')
include osx::dock::position

# ... or set your own
class { 'osx::dock::position':
  position => 'right'
}

osx::dock::pin_position - the location to pin the dock to ('start', 'middle', 'end')

# Set the default value ('start')
include osx::dock::pin_position

# ... or set your own
class { 'osx::dock::pin_position':
  position => 'start'
}

osx::dock::hot_corner - configure the action for a hot corner

# Make the top left corner display the Dashboard
osx::dock::hot_corner { 'Top Left':
  action => 'Dashboard'
}

# Make the bottom right corner show the desktop
osx::dock::hot_corner { 'Show the desktop':
  position => 'Bottom Right',
  action => 'Desktop'
}

osx::dock::hot_corners - configure the hot corners

# Make the top right corner start the screen saver and the bottom left corner launch Mission Control
class { 'osx::dock::hot_corners':
  top_right => "Start Screen Saver",
  bottom_left => "Mission Control"
}

osx::sound::interface_sound_effects - enable interface sound effects (true, false)

# Set the default value (true)
include osx::sound::interface_sound_effects

# ... or set your own
class { 'osx::sound::interface_sound_effects':
  enable => false
}

osx::mouse::button_mode - the button mode for multitouch mice (1, 2) Requires re-login for new settings to initialize.

# Set the default mode (1)
include osx::mouse::button_mode

# ... or set your own
class { 'osx::mouse::button_mode':
  mode => 2
}

osx::mouse::smart_zoom - enable/disable smart zoom for multitouch mice Requires re-login for new settings to initialize.

# Set the default value (enabled=false)
include osx::mouse::smart_zoom

# ... or set your own
class { 'osx::mouse::smart_zoom':
  enabled => true
}

osx::mouse::swipe_between_pages - enable/disable swipe between pages for multitouch mice Requires re-login for new settings to initialize.

# Set the default value (enabled=false)
include osx::mouse::swipe_between_pages

# ... or set your own
class { 'osx::mouse::swipe_between_pages':
  enabled => true
}

osx::dock::magnification - size of dock icon magnification

# Set the default value (true, 128)
include osx::dock::magnification

# ... or set your own
class { 'osx::dock::magnification':
  magnification => true,
  magnification_size => 84
}

Required Puppet Modules

  • boxen
  • puppetlabs-stdlib

Developing

Write code.

Run script/cibuild.

More Repositories

1

our-boxen

Copy me for your team.
Ruby
2,595
star
2

boxen

Manage Mac development boxes with love (and Puppet).
Ruby
1,580
star
3

boxen-web

Automate your team's Boxen installations.
Ruby
210
star
4

puppet-template

An example Puppet module for Boxen.
Ruby
84
star
5

puppet-boxen

Boxen's fundamental modules and types.
Ruby
76
star
6

puppet-brewcask

A homebrew-cask provider for Puppet's package type
Ruby
38
star
7

puppet-ruby

Installs Ruby versions with Boxen
Ruby
38
star
8

puppet-homebrew

Install Homebrew.
Ruby
24
star
9

cardboard

Development tools for Boxen's Puppet repositories.
Ruby
16
star
10

phantomenv

PhantomJS version manager, heavily inspired by rbenv
Shell
16
star
11

boxen.github.com

Deprecated.
HTML
16
star
12

puppet-nodejs

Ruby
15
star
13

puppet-iterm2

Puppet
13
star
14

puppet-java

Install Java
Ruby
13
star
15

puppet-dropbox

Install Dropbox.
11
star
16

puppet-python

Ruby
11
star
17

puppet-chrome

Install Google Chrome.
10
star
18

puppet-postgresql

Install Postgresql
Ruby
10
star
19

puppet-mongodb

Ruby
9
star
20

puppet-virtualbox

Ruby
9
star
21

puppet-dnsmasq

Install the dnsmasq DNS forwarder.
Ruby
9
star
22

puppet-git

Install Git.
Ruby
9
star
23

puppet-mysql

Ruby
9
star
24

puppet-redis

Ruby
8
star
25

puppet-alfred

Install the Alfred productivity app.
8
star
26

puppet-hub

Install hub.
Ruby
6
star
27

puppet-bash

Ruby
6
star
28

puppet-caffeine

Install the Caffeine Mac OS X app.
6
star
29

puppet-elasticsearch

Install elasticsearch.
Puppet
6
star
30

puppet-nginx

CSS
6
star
31

puppet-firefox

5
star
32

puppet-zsh

Ruby
5
star
33

puppet-packer

Puppet module for installing Packer, for Boxen.
Ruby
5
star
34

puppet-sublime_text_2

Ruby
5
star
35

puppet-repository

Repository management for Boxen
Ruby
5
star
36

puppet-slate

4
star
37

puppet-heroku

Install Heroku plugins.
Ruby
4
star
38

puppet-imagemagick

4
star
39

puppet-emacs

Install GNU Emacs
4
star
40

puppet-phantomjs

Install PhantomJS
Ruby
4
star
41

puppet-cassandra

Shell
4
star
42

puppet-seil

Boxen puppet module to install seil
Ruby
4
star
43

puppet-xquartz

Ruby
3
star
44

puppet-rdio

3
star
45

puppet-go

Puppet
3
star
46

puppet-textmate

3
star
47

puppet-googledrive

A Boxen puppet module to install Google Drive Sync
3
star
48

puppet-tower

Boxen module to setup Tower Git
3
star
49

puppet-nvm

Shell
3
star
50

puppet-sysctl

Ruby
3
star
51

puppet-mou

Puppet Boxen module for Mou
Ruby
3
star
52

puppet-sublime_text

New home for boxen/puppet-sublime_text_2 with versions as config options
Ruby
3
star
53

puppet-wget

Puppet module for installing wget, for Boxen
3
star
54

puppet-gitx

Install GitX.
3
star
55

puppet-onepassword

2
star
56

puppet-osxfuse

Ruby
2
star
57

puppet-augeas

Install the augeas configuration editor.
Ruby
2
star
58

puppet-erlang

Install Erlang.
Ruby
2
star
59

puppet-arq

Install the Arq backup app.
2
star
60

puppet-macvim

MacVim is the text editor Vim for Mac OS X
2
star
61

puppet-memcached

Ruby
2
star
62

puppet-cyberduck

2
star
63

puppet-gh

Ruby
2
star
64

puppet-fig

Puppet module for installing Fig, for Boxen
Ruby
2
star
65

puppet-inifile

Ruby
2
star
66

puppet-asciiio

2
star
67

puppet-fitbit

2
star
68

puppet-minecraft

1
star
69

puppet-hipchat

1
star
70

puppet-tor

TorBrowser Module for Boxen
1
star
71

puppet-ghostscript

Install Ghostscript.
1
star
72

puppet-wkhtmltopdf

Ruby
1
star
73

puppet-fonts

Boxen Module for installing Fonts
Puppet
1
star
74

puppet-rubymine

1
star
75

puppet-nmap

boxen nmap module
1
star
76

puppet-geoip

Install GeoIP.
1
star
77

puppet-transmission

1
star
78

puppet-fluid

1
star
79

puppet-dashlane

1
star
80

puppet-graphviz

Install GraphViz.
1
star
81

puppet-gyp

GYP module for Boxen
1
star
82

puppet-zeromq

1
star
83

puppet-qt

Ruby
1
star
84

puppet-gpgme

Install GPGme.
1
star
85

puppet-undercover

1
star
86

puppet-divvy

Install Divvy, a window resizer.
1
star
87

puppet-sparrow

1
star
88

puppet-istatmenus4

iStat Menus v4
1
star
89

puppet-pycharm

1
star
90

puppet-solr

Install Solr
1
star
91

puppet-skitch

Install Skitch 1.0
1
star
92

puppet-shiftit

1
star
93

puppet-clojure

Install the Clojure programming language.
1
star
94

puppet-vmware_fusion

Ruby
1
star
95

puppet-sudo

Ruby
1
star
96

puppet-autoconf

Install the autoconf development framework.
1
star
97

puppet-league_of_legends

Puppet Boxen module for League of Legends
1
star
98

puppet-zshgitprompt

ZSH Git Prompt, for great justice
1
star
99

puppet-colloquy

Install the Colloquy IRC client.
1
star