Commit Graph

897 Commits (cc4be53dd4d83c33e13d4574610e793e758076aa)
 

Author SHA1 Message Date
Michael DeHaan 54e2e88da9 Merge pull request #1313 from dagwieers/vsphere_facts-cleanup
vsphere_facts: Various cleanups in documentation
12 years ago
Michael DeHaan 826b2816d6 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 0362b06944 Merge pull request #1318 from dsummersl/cron24
fixed cron library so backups are python2.4 compatible
12 years ago
Jeroen Hoekx ac427e077a Add virt_boot module to define libvirt boot parameters. 12 years ago
Dane Summers 4f5f32a15b fixed cron library so backups are python2.4 compatible 12 years ago
Aurélien Bondis b51948e111 fix issue with mysql authentication and states not dump or import 12 years ago
Ashley Penney 3075ddb634 Further cleanup to add another rc check and remove a now redundent one. 12 years ago
Ashley Penney d8e3f4db42 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 c3d8ad4565 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 f64d8622bf 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 9624e2a6c6 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 86b7d4b689 Merge pull request #1289 from abondis/mysql_migration
mysql_db: connection test, dump/import state
12 years ago
Dag Wieers b7fe1b1036 Damn you, colons... 12 years ago
Aurélien Bondis b6c5140ca7 mysql_db: use the database to test connexion, added dump and import state - requires target=path/to/a/file 12 years ago
Michael DeHaan 67b5bd97df Add .gitdir 12 years ago
Michael DeHaan bb95f2814c Merge remote branch 'dagwieers/module-mail' into devel 12 years ago
Michael DeHaan 3e851f5337 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 3e560234bc Fix typo in autogenerated docs 12 years ago
Dag Wieers 30a4f903fb 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 ffd0b830ea 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 5a9fc35200 Merge pull request #1263 from dagwieers/hpilo_facts-fix
Sigh, another retypo
12 years ago
Dag Wieers 8da637dac6 Fixes to documentation 12 years ago
Dag Wieers 79d083e80a Sigh, another retypo problem 12 years ago
Michael DeHaan a70db4fb0b Merge pull request #1250 from dagwieers/hpilo_boot-fixes
Various small fixes to boolean usage and defaults
12 years ago
Michael DeHaan 9c102d8dfc Merge pull request #1243 from dsummersl/squash2-cron
cron feature (w/o tests)
12 years ago
Michael DeHaan a0e9412180 Merge pull request #1255 from dagwieers/module-namespace
Add this module's namespace to the 'module_' namespace.
12 years ago
Tim Bielawa 7881ddd8cb Fix typo in service module docs 12 years ago
Dane Summers 1d7a5609eb added new documentation string to cron library 12 years ago
Dag Wieers d1f9644be3 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 dc11b1223d Various small fixes to boolean usage, using module.params.get and default values 12 years ago
Michael DeHaan 70a14f9a51 Merge pull request #1251 from dagwieers/hpilo_facts-fixes
Fix typo/cosmetic change
12 years ago
Dag Wieers 5651990b0f 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 da026eac76 Fix typo/cosmetic change 12 years ago
Michael DeHaan 4a22ec399f 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
Dag Wieers 1c2b8dd7a3 Module hpilo_boot to boot from specific media using an HP iLO interface
This module allows to boot a system through HP iLO and can be used to start the provisioning process.
12 years ago
Michael DeHaan 5711a371e5 Merge pull request #1240 from jpmens/hpdoc
fix examples in hpilo_facts DOCUMENTATION
12 years ago
Dane Summers d4b7d82299 cron feature (w/o tests) 12 years ago
Michael DeHaan 71a0175db1 Merge pull request #1239 from jpmens/shelldoc
fix wording of shell documentation
12 years ago
Jan-Piet Mens bd8b42381c fix examples in hpilo_facts DOCUMENTATION 12 years ago
Jan-Piet Mens 0a648e1b07 fix wording of shell documentation 12 years ago
Dag Wieers 580197f197 Use the standard 'dest' option for target files, make 'name' an alias 12 years ago
Michael DeHaan 624d0ae1af Merge pull request #1213 from dagwieers/debug-module
Module debug to assist users in understanding Ansible
12 years ago
Michael DeHaan 15817d9dba Merge pull request #1230 from dagwieers/module-vsphere_facts
Module vsphere_facts to add facts from a VMWare vSphere guest
12 years ago
Michael DeHaan d514180a88 Merge pull request #1231 from dagwieers/fail-doc-fix
This hopefully fixes the documentation for the fail module
12 years ago
Dag Wieers 029f3ff418 Module vsphere_facts to add facts from a VMWare vSphere guest
This module gathers facts from a VMWare vSphere guest by querying vSphere. The facts include OS, network info (vlan, macaddress) and system info (cpu, memory, uuid) information. Useful information for provisioning and management.
12 years ago
Dag Wieers 4dc37fe679 Module hpilo_facts to add facts from HP iLO interfaces
This module gathers facts from the hardware interface by querying HP iLO. The facts include network info (vlan, macaddress) and system info (cpu, memory, uuid) information. Useful information for provisioning and management.

This module was previously named ilo_facts and mentioned in #1080, #1085, #1125 and #1217.
12 years ago
Dag Wieers 02947eb0b9 This hopefully fixes the documentation for the fail module 12 years ago
Dag Wieers b64821d543 Module to assist users in understanding Ansible
After helping someone on IRC he was interested to have this debug module in upstream. This module simply 'prints' a message, and can be ordered to fail if needed. It helps to troubleshoot or understand inventory/facts issues and/or experiment with statements and conditions using only_if.

Here is a small example playbook:

```yaml
- hosts: all
  tasks:
  - local_action: debug msg="System $inventory_hostname has uuid ${ansible_product_uuid}"
  - local_action: debug msg="System $inventory_hostname lacks a gateway" fail=yes
    only_if: "is_unset('$ansible_default_ipv4.gateway')"
  - local_action: debug msg="System $inventory_hostname has gateway ${ansible_default_ipv4.gateway}"
    only_if: "is_set('$ansible_default_ipv4.gateway')"
```

outputting:
```
[root@moria ansible]# ansible-playbook -v -l localhost:x220 test6.yml

PLAY [all] *********************

GATHERING FACTS *********************
ok: [localhost]
ok: [x220]

TASK: [debug msg="System $inventory_hostname has uuid $ansible_product_uuid"] *********************
ok: [localhost] => {"msg": "System localhost has uuid d125a48c-364f-4e65-b225-fed42ed61fac"}
ok: [x220] => {"msg": "System x220 has uuid d125a48c-364f-4e65-b225-fed42ed61fac"}

TASK: [debug msg="System $inventory_hostname lacks a gateway" fail=yes] *********************
failed: [localhost] => {"failed": true, "msg": "System localhost lacks a gateway", "rc": 1}
ok: [x220] => {"msg": "System x220 has gateway 192.168.1.1"}

PLAY RECAP *********************
localhost                      : ok=2    changed=0    unreachable=0    failed=1
x220                           : ok=3    changed=0    unreachable=0    failed=0

```

I had some other plans for the module, like displaying host inventory and complete inventory to help understand inventory and facts modules, but that would require an action-plugin for transfering inventory information etc... And I am not sure this is wanted/best done in a module.
12 years ago
Michael DeHaan 1bd1e3ed1f Added documentation on file force parameter 12 years ago
Michael DeHaan d404737543 various small doc tweaks 12 years ago