Created
October 21, 2010 00:46
-
-
Save glarizza/637684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------macauth.pp----------------------- | |
#!/usr/bin/env puppet | |
macauthorization { 'system.device.dvd.setregion.initial': | |
auth_class => 'user', | |
comment => 'Changed by Puppet - Used by DVD Player for Region Code', | |
group => 'staff', | |
shared => 'true', | |
} | |
macauthorization {'sys.openfile.readwrite./private/etc/httpd/httpd.conf': | |
auth_class => 'user', | |
group => 'dumbadmin', | |
mechanisms => ['builtin:authenticate'], | |
shared => 'false', | |
} | |
---------------------------------Running with puppet apply------------------------ | |
bash-3.2# puppet apply macauth.pp | |
notice: /Stage[main]//Macauthorization[sys.openfile.readwrite./private/etc/httpd/httpd.conf]/ensure: created | |
err: /Stage[main]//Macauthorization[sys.openfile.readwrite./private/etc/httpd/httpd.conf]: Could not evaluate: flush requested for unknown type. | |
notice: /Stage[main]//Macauthorization[system.device.dvd.setregion.initial]/comment: comment changed 'Used by the DVD player to set the region code the first time. Note that changing the region code after it has been set requires a different right (system.device.dvd.setregion.change).' to 'Changed by Puppet - Used by DVD Player for Region Code' | |
notice: /Stage[main]//Macauthorization[system.device.dvd.setregion.initial]/group: group changed 'admin' to 'staff' | |
err: /Stage[main]//Macauthorization[system.device.dvd.setregion.initial]: Could not evaluate: flush requested for unknown type. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to include "auth_type => 'right'" for the system.preferences top level site