Commit Graph

699 Commits (5bb8dcea08d0edb3aafcabc3af76f8832edfcfe2)

Author SHA1 Message Date
Michael DeHaan 5bb8dcea08 Fix help text 12 years ago
Michael DeHaan 6f14e35c36 Merge pull request #1335 from phgrau/devel
Use && for executing next command if, and only if, command1 returns an e...
12 years ago
Michael DeHaan 7583704144 "force=" code under the file module is problematic, remove it 12 years ago
Jan-Piet Mens e35d5188f9 typo 12 years ago
Philipp Grau 4290a904ff Add note: Debian Squeeze has no add-apt-repository 12 years ago
Maxim Burgerhout 2f6b9e69a7 Test for python-pip as well as pip
On Red Hat, CentOS and Fedora systems, the pip binary will be called python-pip
instead of pip. This commit makes the pip module also check for python-pip.

The reason we check for python-pip *first*, is to have ansible fail on not
finding 'pip' and reporting *that*. This is consistent with current behaviour
and will not confuse users of Debian et al., where the 'python-pip' binary
never exists.

Tested on Fedora 18 and Ubuntu 12.04.
12 years ago
Tim Bielawa 8831e59700 The pause 'prompt' parameter now requires quotes around the message. 12 years ago
Michael DeHaan 8dadf8a905 Use 'path' in file documentation, though src/dest work, it's less intuitive. 12 years ago
Michael DeHaan 2c90298841 Merge pull request #1314 from apenney/bugfix/git
Check rc instead of parsing for errors.
12 years ago
Michael DeHaan c5d2f6b0d3 implement lookup plugins for arbitrary enumeration over arbitrary things. See the mailing list for some cool examples. 12 years ago
Michael DeHaan 29d49d415f fix mentioning of redundant aliases in module docs, remove was removed anyway 12 years ago
Michael DeHaan 621708e976 user module should be using module.BOOLEANS for choices 12 years ago
Michael DeHaan aa98c84a62 HP and vsphere modules are crazy awesome but I am thinking these belong in contrib not core. 12 years ago
Brian Coca 6886683e16 small patch to fact gathering for when no dmesg.boot exists on freebsd, mainly happens in jails
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
12 years ago
Michael DeHaan 35163bce96 Merge pull request #1310 from dagwieers/hpilo_boot-cleanup
hpilo_boot: Various clean ups in documentation and code
12 years ago
Michael DeHaan b1ccda00f8 Merge pull request #1311 from dagwieers/hpilo_facts-cleanup
hpilo_facts: Various clean ups in documentation and code
12 years ago
Michael DeHaan 1487b6a1bb Merge pull request #1313 from dagwieers/vsphere_facts-cleanup
vsphere_facts: Various cleanups in documentation
12 years ago
Michael DeHaan a82522a5c4 Merge pull request #1317 from abondis/fix_mysql_db
fix issue with mysql authentication and states not dump or import
12 years ago
Michael DeHaan 20a7227056 Merge pull request #1318 from dsummersl/cron24
fixed cron library so backups are python2.4 compatible
12 years ago
Jeroen Hoekx 25e415c031 Add virt_boot module to define libvirt boot parameters. 12 years ago
Dane Summers 7399224428 fixed cron library so backups are python2.4 compatible 12 years ago
Aurélien Bondis 1f91a70310 fix issue with mysql authentication and states not dump or import 12 years ago
Ashley Penney f4484f800b Further cleanup to add another rc check and remove a now redundent one. 12 years ago
Ashley Penney 6042419624 Check rc instead of parsing for errors. This now catches the case where the remote branch has been deleted and you're still trying to pull against it. 12 years ago
Dag Wieers 5927373c26 Various clean ups in documentation and code
This commit improves the following items:
 - Remove the 'match' functionality, this can now be achieve by using the `fail` module together with `only_if` after running the `hpilo_facts` module. Since this gives more functionality, e.g. comparing server names, but also serial numbers or uuids with other inventory information, this is prefered. An example is added to show how this is achieved.
 - Clean up all C() calls in documentation
 - Added state=poweroff in order to power off a server. The use-case is here that in general we do not want to provision systems that are already running (this enforcement can be disabled using force=yes) but for test systems we should be able to power them off so we can start the normal provisioning process. (We could also force boot them, but that's less elegant)
 - The module now correctly indicates when something has changed. So if a server is powered off that was not off already, this is indicated, or when media boot-settings have been changed, this is also correctly indicated. Previously every call to hpilo_boot was (incorrectly) considered a change.
12 years ago
Dag Wieers 5fe8205d36 vsphere_facts: Various cleanups in documentation
This commit improves the following items:
 - Clean up all C() calls in documentation
 - Reindent the documentation
12 years ago
Dag Wieers 5612cce4a4 hpilo_facts: Various clean ups in documentation and code
This commit improves the following items:
 - Remove the 'match' functionality, this can now be achieve by using the `fail` module together with `only_if` after running the `hpilo_facts` module. Since this gives more functionality, e.g. comparing server names, but also serial numbers or uuids with other inventory information **and** a proper message, this is prefered. An example is added to show how this is achieved.
 - Clean up all C() calls in documentation
 - Remove trailing spaces in HP iLO's Serial Number output so that they can be compared to CMDB or other inventory information
12 years ago
Michael DeHaan dfaef8061a Merge pull request #1289 from abondis/mysql_migration
mysql_db: connection test, dump/import state
12 years ago
Dag Wieers dfdf4ab8eb Damn you, colons... 12 years ago
Aurélien Bondis 1a51af0e38 mysql_db: use the database to test connexion, added dump and import state - requires target=path/to/a/file 12 years ago
Michael DeHaan e74b9e1d34 Add .gitdir 12 years ago
Michael DeHaan e593c828b4 Merge remote branch 'dagwieers/module-mail' into devel 12 years ago
Michael DeHaan 7788dea238 Merge pull request #1268 from dagwieers/hpilo-reboot-fix
Workaround for when HP iLO is in a state it won't accept requests
12 years ago
Michael DeHaan f1dfddc5e5 Fix typo in autogenerated docs 12 years ago
Dag Wieers 2f74cd84bd Module mail to send out emails as an action
Sending mails could be part of the workflow to have teams/responsibles perform specific task. Or simply to notify that a process has finished successfully (e.g. provisioning).
12 years ago
Dag Wieers 790ed81b14 Workaround for when HP iLO is in a state it won't accept requests
This workaround is recommended from HP iLO's documentation, but may not be sufficient in all cases. Time will tell.

I also made a few cosmetic changes with no impact.
12 years ago
Michael DeHaan 06688efb24 Merge pull request #1263 from dagwieers/hpilo_facts-fix
Sigh, another retypo
12 years ago
Dag Wieers 98624cb394 Fixes to documentation 12 years ago
Dag Wieers 3f149e09bc Sigh, another retypo problem 12 years ago
Michael DeHaan 612561ad0e Merge pull request #1250 from dagwieers/hpilo_boot-fixes
Various small fixes to boolean usage and defaults
12 years ago
Michael DeHaan 62a56a219b Merge pull request #1243 from dsummersl/squash2-cron
cron feature (w/o tests)
12 years ago
Michael DeHaan 1b36446ab3 Merge pull request #1255 from dagwieers/module-namespace
Add this module's namespace to the 'module_' namespace.
12 years ago
Tim Bielawa 1e35ac7603 Fix typo in service module docs 12 years ago
Dane Summers c3a6e8dfd6 added new documentation string to cron library 12 years ago
Dag Wieers b39aed8736 Add this module's namespace to the 'module_' namespace.
Much like we currently have *setup* register the variable `module_setup`, we would like other facts-modules register their own namespace. This means that:

 - *network_facts* registers `module_network`
 - *hpilo_facts* registers `module_hw`
 - *vsphere_facts* registers `module_hw`

In retrospect, it would have made more sense to have `setup` register `module_ansible` instead as the setup module uses the `ansible_` namesepace.

Having the `module_` namespace allows us to check whether a certain namespace has already been loaded so we can avoid running the facts module a second time using only_if.

```yaml
 - action: network_facts host=${ansible_hostname_short}
   only_if: is_unset('$module_network')
```
12 years ago
Dag Wieers 5503cfaa44 Various small fixes to boolean usage, using module.params.get and default values 12 years ago
Michael DeHaan c8854a23ea Merge pull request #1251 from dagwieers/hpilo_facts-fixes
Fix typo/cosmetic change
12 years ago
Dag Wieers 250f52bfba Add an alias 'name=' for guest
This is the opposite as library/virt, but much better than using name= as the default option name.
12 years ago
Dag Wieers 8c5a146013 Fix typo/cosmetic change 12 years ago
Michael DeHaan c5d7ef3d7f Merge pull request #1249 from dagwieers/module-hpilo_boot
Module hpilo_boot to boot from specific media using an HP iLO interface
12 years ago