Nigel Kersten
544a3e1ecb
remove unnecessary mk_resource_methods call
2008-12-09 14:19:42 +11:00
John Ferlito
a0a6d2cfa8
Add a unique name to objects so we can determine uniqueness when read back in
...
The nagios object definitions have been updated to correlate with Nagios
3.0.6.
In Nagios it is possible to have multiple service checks with the
same service_description. eg I could have an check with a
service_description of 'SSH' for multiple hosts. So in puppet we can't
use it as a unique name for the resource. This patch modifies the code
to use $name as the unique name. For some types eg command_name $name
ends up in the config and thus we can tell which puppet resources match
to which nagios ones. For other types like service there is no direct
mapping from $name to a nagios attibute. So we use a custom attribute
called _naginator_name.
Signed-off-by: John Ferlito <johnf@inodes.org>
2008-12-09 11:46:21 +11:00
Andrew Shafer
68ffd46c9f
Bug #1803 Zfs should auto require the ancestor file systems
2008-12-08 19:44:29 +11:00
Andrew Shafer
7e2da7eeb2
Refactor #1802 Use 'zfs get -H -o value' instead of parsing output for value
...
just simplifying code
2008-12-08 00:07:54 -07:00
Luke Kanies
8616d74b47
Fixing #1800 - tidy now correctly ignores missing files and directories
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-08 17:06:44 +11:00
Luke Kanies
6075d10373
Fixing #1794 - returning sync when it is already initialized
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-08 15:47:03 +11:00
Luke Kanies
18fe5c3ac2
Fixing #1750 again - All of the properties and now :ensure check replace?
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-08 15:45:06 +11:00
Nigel Kersten
0caa9c57c6
spec tests for type and provider and some code cleanup to adhere to DRY
2008-12-06 12:10:37 +11:00
Nigel Kersten
0f2fc88a39
Finished work on rules creation and deletion
2008-12-06 12:10:37 +11:00
Nigel Kersten
ed49153c28
new better way of doing stdin
2008-12-06 12:10:36 +11:00
Nigel Kersten
05e05bb70a
finished rights flush, working on rules
2008-12-06 12:10:36 +11:00
Nigel Kersten
1e37230c8d
macauthorization type
2008-12-06 12:10:36 +11:00
Nigel Kersten
4ed73efa94
reset macauthorization tree. Initial checkin of new type/provider
2008-12-06 12:10:36 +11:00
Nigel Kersten
5d32cd9ad0
add NetInfo deprecation notice to user and group providers, make the directoryservice user provider the default, remove default for darwin from NetInfo providers
2008-12-06 12:06:57 +11:00
Nigel Kersten
99ab9405fa
Warn that the NetInfo nameservice provider is deprecated. Use directoryservice instead
2008-12-06 12:06:56 +11:00
Nigel Kersten
c4412ec90c
add some more sanity checks around stdin
2008-12-06 12:04:29 +11:00
Nigel Kersten
7de82c387b
add support for stdin to Puppet::Util.execute
2008-12-06 12:04:28 +11:00
Jeffrey McCune
65d6b49950
Updated mcx type and provider with comprehensive spec tests.
...
Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com>
Fixed default provider error with mcx type spec.
Signed-off-by: Jeffrey McCune <mccune.jeff@gmail.com>
2008-12-02 13:34:31 +11:00
Luke Kanies
cdcbc5bceb
Fixing splaytime tests
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-01 18:04:10 -06:00
Luke Kanies
6a4c0d52bf
Removing debugging from the "resources" type
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-01 18:04:10 -06:00
Bryan Kearney
968f5cc901
Relicense under GPLv2+
2008-12-02 09:23:53 +11:00
Luke Kanies
9ab3afb542
Hopefully fixing #1703 - using a mutex around the sending of the tagmails
...
It's not really possible to test that this fixes the problem, and
I can't even reproduce it, but hopefully this will work.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-02 09:20:09 +11:00
Andrew Shafer
c005dcf274
Ticket 1780 - Solaris RBAC roles should be autorequired
...
Autorequire the roles that belong to the user so they will be created first
2008-12-01 03:08:38 -07:00
Andrew Shafer
3eff2254e6
Feature 1696 Add support for branded zones
...
Applied the patch from the ticket and wrote tests with the changes
2008-12-01 21:00:27 +11:00
Andrew Shafer
fa9820baae
Bug #1778 - Solaris RBAC profiles should maintain order
...
Created OrderedList property
Added to profile property
small refactor in List to make inheriting easier
2008-12-01 20:52:04 +11:00
Andrew Shafer
f6fa4f7b8c
Bug # 1680 Now you can set the hashed passwords on solaris
...
Straight /etc/shadow hackery
2008-12-01 19:52:13 +11:00
Andrew Shafer
0a40668b34
Feature #1783 - Add ZFS support
...
Types and providers to manage zfs and zpool
2008-12-01 18:35:16 +11:00
Andrew Shafer
047e5d073c
Handle password when user is created
...
strip out the -p and call password= after the thing is done
2008-12-01 18:27:00 +11:00
Andrew Shafer
88edf66cf8
== is not =
2008-12-01 18:27:00 +11:00
Andrew Shafer
a219c88866
Solaris doesn't have a native tool to set hashed passwords
...
Added support for passwords by directly editing /etc/shadow
(I tried to make it work with libshadow, but considering it is not packaged for Solaris and adds little benefit, I decided against it)
password and password= are now defined on the default Solaris provider
2008-12-01 18:27:00 +11:00
Jeffrey McCune
9329c95d6f
type/mcx.rb Feature #1026 - MCX Type
...
Added new MCX type and base test.
This type manages MCX settings on DirectoryService nodes. These
settings take the form of plist XML documents attached to Users,
Groups, and Computers in DirectoryService.
2008-12-01 18:05:06 +11:00
Nigel Kersten
83b3a1ec2a
Simplify launchd service provider and add tests
2008-12-01 18:04:42 +11:00
James Turnbull
65a6074852
Fixed #1695 - Solaris 10 zone provider doesn't properly handle unknown zone attributes in newer releases
2008-12-01 12:58:04 +11:00
Luke Kanies
0171e25ec4
Fixing #1749 - Splay now hopefully behaves "better" for small values.
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-01 12:55:44 +11:00
Brice Figureau
607958cb7f
Fix #1741 - Add inline_template function
2008-11-29 12:00:21 +01:00
Brice Figureau
cc45c435b7
Fix #1741 - refactor TemplateWrapper, test for template function
2008-11-29 12:00:21 +01:00
Brice Figureau
d8c741f9d3
Fix #1741 - Puppet::Parser::Functions rmfunctions and unit test
2008-11-29 12:00:16 +01:00
Thom May
3c4efa7ec2
Fixes #1773 - no longer check for absolute paths
2008-11-29 09:41:51 +11:00
Nigel Kersten
3a395095d7
make sure only types that have passwords search for the password
2008-11-28 09:42:08 +11:00
Nigel Kersten
a45c6b1b9f
fix bug with numeric uid/gid in directoryservice provider. doc string cleanups
2008-11-28 09:42:08 +11:00
James Turnbull
1f52795c43
Documentation fix for runit provider
2008-11-28 08:58:34 +11:00
James Turnbull
81a91a7321
Documentation fix for daemontools provider
2008-11-28 08:57:18 +11:00
James Turnbull
4f67a7c26a
Fixed #1776 - Trivial fix for gentoo service provider
2008-11-28 08:51:21 +11:00
Thom May
2764ab4a99
Rename migration so it's still applied
2008-11-26 15:17:02 -05:00
Thom May
965c08d8c0
Slight denormalisation to store a host's environment as a first class
...
object in the database
Fixes : #1392
2008-11-26 15:16:00 -05:00
Luke Kanies
5742966d79
Fixing #1743 - defined types get catalogs too.
...
I wasn't adding the catalog to the defined types when creating
the transportable objects.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-11-26 20:30:40 +11:00
Luke Kanies
3421954444
Fixing #1755 - handling fully qualified classes correctly.
...
This involves lexing '::class' tokens along with correctly
looking them up from the Resource::Reference class.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-11-26 16:09:47 +11:00
Nigel Kersten
d978668c03
Lots of DirectoryService work. New Computer Type. Users now use password hashes. Groups now support setting members as attributes of the group for OS X.
2008-11-26 13:02:53 +11:00
Nigel Kersten
86ce934270
launchd service provider
2008-11-26 13:01:44 +11:00
Luke Kanies
97a817706f
Refactoring the thread-safety in Puppet::Util a bit.
...
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-11-26 12:57:53 +11:00