Граф коммитов

3918 Коммитов

Автор SHA1 Сообщение Дата
Sean E. Millichamp c8314821a2 Add detected defaults for existing SELinux file properties 2008-10-03 14:33:33 +10:00
Sean E. Millichamp 772e9b217a Refactor SELinux commands to utility module 2008-10-03 14:33:33 +10:00
Sean E. Millichamp 8153181aa3 Clean up of SELinux rspec tests so all pass 2008-10-03 14:33:32 +10:00
Brett Lentz e77ddc1657 Merged fsweetser's selinux patch against HEAD 2008-10-03 14:33:32 +10:00
Luke Kanies 7272d49149 Fixed #1613 - The client environment will be substituted when looking up settings.
This won't be perfect, because it still requires that the caller pass
in an environment, but for every case that an environment is passed in,
that environment will be substituted into settings when possible.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-03 14:15:22 +10:00
Luke Kanies 1a9b5677de Fixing #1614 - Environments no longer have to be listed out.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-03 14:07:05 +10:00
James Turnbull 397c8416f7 Fixed #1628 - Changed node search to use certname rather than Facter hostname 2008-10-03 13:45:12 +10:00
James Turnbull 9d174c4f50 Updated puppet binary documentation 2008-10-03 10:50:58 +10:00
James Turnbull 6a0b334806 Fixed error message typo 2008-10-03 10:49:07 +10:00
Luke Kanies 655f378af3 Adding a rake task for sending emails to the dev list
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-02 13:36:26 +10:00
Luke Kanies d39bab9a02 Fixing package provider tests to use the new Transaction::Change interface
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-02 13:36:26 +10:00
Luke Kanies e32256af93 Migrating the apt and dpkg tests to rspec.
I left the aptitude and aptrpm tests as an exercise
for the reader.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-02 13:36:26 +10:00
Andrew Shafer ddda80a05d Update change log with RBAC roles 2008-10-01 19:46:45 -06:00
Andrew Shafer d1abb86565 Add role support to user type and an implemention
modify user type:
    add ensure = role logic
    add roles property
    add manages_solaris_rbac feature
    refactored 'list' property to reuse logic for groups in roles
2008-10-01 19:07:55 -06:00
Andrew Shafer 2fba85af73 Some small clarifying refactors and change to objectadd to allow subclasses of
with a uid not need to be a single class us use modify

I don't like logic about subclasses in a parent class, but not in a position to
address.
2008-10-01 19:07:55 -06:00
Andrew Shafer 4a863c38ce Adding user_attr util to parse attributes on solaris
read /etc/user_attr and makes a hash based on the file contents
2008-10-01 18:35:36 -06:00
James Turnbull 93f952a210 Fixed #1586 - Specifying "fully qualified" package names in Gentoo 2008-10-02 07:40:58 +10:00
Luke Kanies 8620775135 Fixed #791 - You should now be able to create and find a user/group in one transaction.
The real problem was that the 'gid' and 'uid' methods didn't handle
the case where 'get_posix_field' didn't return a value, and
the subsequent 'get_posix_field' calls couldn't handle that.

This commit moves the tests for Posix to spec, and fixes the
specific bug.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-02 07:32:03 +10:00
Luke Kanies 63ad845878 Refactoring and adding tests to the file group property.
Drastically simplified the class, removing a lot of obsolete
code and adding tests for nearly the whole class.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-10-02 07:31:27 +10:00
James Turnbull 6bafd106de Merge branch 'tickets/0.24.x/1622' into 0.24.x
Conflicts:

	CHANGELOG
2008-10-02 07:29:44 +10:00
Luke Kanies 7da41528e8 Modified the group and zone resource types to no longer call
'currentpropvalues' as a means of setting all values to absent.
There should be no behaviour change from this change.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 22:34:05 -05:00
Luke Kanies ee579641f7 Modified the behaviour of resource-level 'retrieve' -- it only
calls 'retrieve' on each property if the resource exists.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 22:04:38 -05:00
Luke Kanies 0fb4693f74 Updating changelog for #1622
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 18:12:10 -05:00
Luke Kanies 2afc4f5f15 Adding tests for the user retrieve method
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 18:08:55 -05:00
Luke Kanies 679fede620 Removing commented code from the user type from about 2005
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 17:51:10 -05:00
Luke Kanies 2480654aa0 The Netinfo and DirectoryService providers can now create user and group simultaneously.
This required selectively using property#sync if a 'should' value
is present, so that the user's gid property can do the conversion
if necessary.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 17:50:31 -05:00
Luke Kanies 4c998fe67d Fixing #1622 - The user type only looks up groups when necessary.
Also added a bunch of tests to the user type, and refactored
as necessary for this to work.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 17:49:18 -05:00
Luke Kanies 6bc56aecdb Aliasing the rspec 'should' method to 'must'
so it does not conflict with the RAL 'should' method.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 16:44:14 -05:00
Luke Kanies b9c75cd14c Rewriting the user tests, in preparation for enhancing them
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-09-30 13:33:10 -05:00
James Turnbull 99de920833 Fixed #1620 - Add 'sles' to Puppet confines when 'suse' is used 2008-10-01 01:42:00 +10:00
Brice Figureau 4cf9710bd2 Add parser for arbitrary expressions
The expressions can be used in if 'test' and in the
right side of assignements.

The expressions can contain any number of sub-expressions
combined by either arithmetic operators, comparison operators,
or boolean operators.

Random Usage Examples:
$result = ((( $two + 2) / $one) + 4 * 5.45) - (6 << 7) + (0x800 + -9)
or
if ($a < 10) and ($a + 10 != 200) {
...
}
2008-10-01 01:35:03 +10:00
Brice Figureau cfa230a2d7 Add arithmetic operators to AST
This changeset adds +,-,/,*,<< and >> computation and
AST parse nodes.
2008-09-30 17:22:07 +02:00
Brice Figureau 850e0baf0f Add not operator to AST 2008-09-30 17:08:52 +02:00
Brice Figureau 9cdecfecce Add comparison operators (< > == != <= >=) to AST 2008-09-30 17:08:52 +02:00
Brice Figureau 8372dc4ca8 Add boolean operators to AST 2008-09-30 17:08:52 +02:00
Paul Nasrat e6698c2b86 Add warning and forcibly set to :md5 fixing #1564 2008-09-30 22:23:08 +10:00
Paul Nasrat af8c70650b Fix metadata class for cases when checksum_type set 2008-09-30 22:21:49 +10:00
James Turnbull 860bdb120d Fixed #1603 - Added support for running Puppet inside a Rack application 2008-09-30 22:13:08 +10:00
Paul Nasrat b2f0d872a2 Fix ticket 1596 in new fileset code, use tmpdir in fileserver tests. 2008-09-30 13:50:31 +10:00
Paul Nasrat a30ecf2aef Make fileserver use fileset for recursion and handle dangling links by ignoring them fixing #1544 2008-09-30 13:48:41 +10:00
Paul Nasrat 3b807633e3 Add tests for FileServer::Mount list for #1544 2008-09-30 13:48:40 +10:00
Luke Kanies b96bdc6a63 Merge branch '0.24.x' of git://github.com/jamtur01/puppet into 0.24.x 2008-09-27 21:30:49 +02:00
James Turnbull 3749267093 Fixed #1610 - Raise "Filebucketed" messages to Notice priority 2008-09-26 14:26:45 +10:00
Brett Lentz 1b512a9a41 Merged fsweetser's selinux patch against HEAD 2008-09-25 14:30:12 +10:00
James Turnbull f792b645fa Added a number of confines to package providers 2008-09-25 14:19:52 +10:00
James Turnbull 074abd4d0d Fixed #1609 - Added confines for the Gentoo, FreeBSD and SMF (Solaris) service providers 2008-09-25 14:02:15 +10:00
James Turnbull 2da6d19d8a Fixed #1608 - Added ubuntu to defaultfor for apt provider 2008-09-25 13:23:16 +10:00
James Turnbull aa629ec3c0 Fixed #1607 - Added ubuntu to defaultfor for Debian service provider 2008-09-25 13:10:06 +10:00
James Turnbull 774c0f9ca8 Fixed #1588 - Fixed puppetca --clean --all 2008-09-25 10:24:04 +10:00
Luke Kanies 98e79f8b7d Fixed #1472 -- defined, exported resources in the current compile now get expanded
correctly.

This was working for defined resources in the db, but not in the current compile.
I just had to mark the resources as non-exported.
2008-09-25 09:35:27 +10:00