Commit Graph

75 Commits (b72dedc36e60dcb5857da4f35274409c0ecced83)

Author SHA1 Message Date
Bernhard Weitzhofer 7d3af457b5 user module: return public SSH key
Return public SSH key if the user module is called with generate_ssh_key=yes.
Since "user" doesn't overwrite files, this also allows querying of existing
public keys.

Used in playbooks together with the "register" keyword, the returned key can be
passed to the "authorized_key" module allowing easy setup of SSH public key
authentication between remote hosts.
12 years ago
mavimo e5fe7f1afc Double quoted version_added in documentation 12 years ago
Brian Coca c3f122fb6a now check moded returnes 'changed' instead of failure when there are
modifications needed.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Serge van Ginderachter 90e51b2a5e rename user option nonunique tot non_unique 12 years ago
Serge van Ginderachter 56592d70c9 Add nonunique option to user module, translating to the -o/--non-unique option to useradd and usermod. 12 years ago
Dag Wieers d4bb57d42d Fix the documentation booleans so they use "yes" and "no"
Both modules seboolean and zfs have not been adapted since they defer from the default (either by having a 'null' or special state, or prefering "on"/"off" for state indication.
12 years ago
Michael DeHaan 84527b1d31 Add type casting to user/group modules, remove executable bit from other modules 12 years ago
Daniel Hokka Zakrisson 1dadd70d9f Remove choices=BOOLEANS as it is no longer needed 12 years ago
Daniel Hokka Zakrisson 0150f18a3b Use argument type checking to convert to boolean 12 years ago
Daniel Hokka Zakrisson 6a68a4b101 check_mode is a module property 12 years ago
Michael DeHaan 65b826a8a8 'make pep8' is now clean 12 years ago
Michael DeHaan 69784f0215 Teach the user module to understand check mode. 12 years ago
Michael DeHaan 455f4b3ba6 Merge branch 'aix-fixes' of git://github.com/dagwieers/ansible into devel
Conflicts:
	library/setup

Tweak formatting.
12 years ago
Michael DeHaan d177b89b4c Merge branch 'devel' of git://github.com/trendels/ansible into testing 12 years ago
Mark Maas f3c619784e Added support for AIX 5.3 and 6.1
A collegue of mine has added basix AIX support to the setup, user and group modules.

We have tested this on AIX 5.3 and 6.1 and it works "as advertised"
12 years ago
Javier Candeira 81cf3aa02c fix remote execution NameError in module 'user' 12 years ago
Stanis Trendelenburg e225a90abc Handle 'groups=' (empty string) in user module (Linux)
Makes it possible to remove a user from all but the primary group.

Setting 'groups=' is the equivalent to passing '-G ""' to
useradd/usermod, which is interpreted as "no group" on Linux.
12 years ago
Stephen Fromm e4964f42e0 Update modules to use run_command in module_common.py
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
12 years ago
Daniel Hokka Zakrisson f16ab9169c Python 2.4 fixes for modules 12 years ago
Jan-Piet Mens d184f72aa9 DOCUMENTATION strings 12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Romeo Theriault 75be1835a5 minor linux user module fixups 12 years ago
Michael DeHaan 3067bd6b78 Merge pull request #1590 from romeotheriault/minor-freebsd-user-module-fixes
minor freebsd user fixes
12 years ago
Romeo Theriault a4192bb4f4 minor freebsd user fixes 12 years ago
Romeo Theriault 6ab4fbc196 Add solaris support to user module 12 years ago
Stephen Fromm f49d2bc557 Fix to user module to use self when calling group_exists 12 years ago
Nigel Metheringham fc3b04e281 FreeBSD user mod only fires when there are changes
Also fix missing -G on groups change
12 years ago
Nigel Metheringham c6c7189e23 Take SHADOWFILE from existing user object rather than class 12 years ago
Nigel Metheringham ed5bf78485 Use the existing framework when running ssh_keygen 12 years ago
Nigel Metheringham eecf6cf94f Ensure user owns their ssh key directory on creation
Lost section from commit 8049777
12 years ago
Michael DeHaan ade071eb29 Fix user example 12 years ago
Michael DeHaan 61a4674413 Merge branch 'nigelm_freebsd' of git://github.com/nigelm/ansible into merge-service
Make things more reusable, correct some errors along the SSH key path

Conflicts:
	library/user
12 years ago
Nigel Metheringham 871d3afdf4 Added some documentation to the classes 12 years ago
Stephen Fromm f0d2a1260b Make sure ownership is set correctly for user's new ssh keys 12 years ago
Nigel Metheringham 0fc939d33f Turn off some of the additional debug syslogging 12 years ago
Nigel Metheringham 346f8ffe0e Rework of user module to support portability
Split module into a main calling function, and a generic
(Linux useradd/usermod/userdel) User class.
Added a __new__ function that selects most appropriate superclass
Added a FreeBSD User class
Tested against FreeBSD 9.0
12 years ago
Michael DeHaan d55e7f35cd Merge pull request #1455 from bleader/devel
user module: fix typo in documentation
12 years ago
Michael DeHaan 24637fa9b0 Merge pull request #1448 from jpmens/user_user1
User is alias for name in 'user' module
12 years ago
bleader fd650d783a user module: fix typo in documentation
tyep -> type

Signed-off-by: bleader <bleader@ratonland.org>
12 years ago
Jan-Piet Mens 9484f55581 User is alias for name in 'user' module 12 years ago
Stephen Fromm d7b5cbb6ac Skip check of primary group when checking other group membership 12 years ago
Jan-Piet Mens ecbb1eb63b fix DOCUMENTATION for user 12 years ago
Stephen Fromm ccb4f41b73 Document ssh_key options are in version 0.9 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Stephen Fromm fb87376b1b Use os.path.join where appropriate 12 years ago
Stephen Fromm 213b2306be Add ability to create SSH key for user in user module
This allows one to create a SSH key for user.  You may define:
ssh_key_type, ssh_key_bits, ssh_key_file, ssh_key_comment,
and ssh_key_passphrase.  If no passphrase is provided, the
key will be passphrase-less.  This will not overwrite an existing key.
In the JSON returned, it will provide the ssh_fingerprint and
ssh_key_file.
12 years ago
Luke Antins 980b1c4b74 Add examples to user module documentation. 12 years ago
Michael DeHaan 6f4c3deb11 user module should be using module.BOOLEANS for choices 12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
Stephen Fromm f5d39b8677 Add module documentation for git, group, service, and user 12 years ago