Skip to content

Commit d0cbfca

Browse files
authored
Merge branch 'develop' into feature/128
2 parents 71e0729 + 340c0f9 commit d0cbfca

28 files changed

+189
-151
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[bumpversion]
22
commit = False
33
tag = False
4-
current_version = 1.7.0
4+
current_version = 1.7.1
55

66
[bumpversion:file:galaxy.yml]

CHANGELOG.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ codeaffen.phpipam Release Notes
44

55
.. contents:: Topics
66

7+
v1.7.1
8+
======
9+
10+
Bugfixes
11+
--------
12+
13+
- Fix \#123 - `app_id` defaults to `ansible` if not defined
714

815
v1.7.0
916
======
@@ -17,7 +24,7 @@ Enhancements
1724
------------
1825

1926
- Add `folder` module to manage folders and nested folders
20-
- Refactor `subnet` module to handle subnets in folders
27+
- Refactore `subnet` module to handle subnets in folders
2128

2229
New Modules
2330
-----------
@@ -181,3 +188,4 @@ New Modules
181188

182189
v0.1.0
183190
======
191+

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ install-deps:
9393

9494
setup-phpipam: test-setup
9595
docker-compose -f tests/docker/docker-compose.yml up -d
96-
sleep 30
97-
sh tests/docker/setup_database.sh
96+
sh tests/docker/setup_phpipam.sh
9897

9998
FORCE:
10099

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,34 @@ The following dependencies have to be fulfiled by the Ansible controller.
5151
* ipaddress
5252
* phpypam>=1.0.0
5353

54+
## Compatibility notice
55+
56+
To ensure `phpipam-ansible-modules` work correctly with phpIPAM versions 1.7 and above, you need to modify the phpIPAM configuration to stringify API results. This is crucial because newer phpIPAM versions might return numerical values directly, which the Ansible modules might expect as strings.
57+
58+
Here's how to implement the workaround:
59+
60+
**1. Modify phpIPAM Configuration**
61+
62+
You need to set the `api_stringify_results` variable to `true` in your phpIPAM configuration. This change should be made in the `config.php` file, which is typically located in the phpIPAM installation directory (e.g., `/var/www/html/phpipam/config.php` or `/var/www/phpipam/config.php`).
63+
64+
Add or modify the following line in your `config.php` file:
65+
66+
```
67+
<?php
68+
/*
69+
* phpIPAM config.php
70+
*
71+
* ... existing configuration ...
72+
*/
73+
74+
// Required for Ansible modules with phpIPAM v1.7 and above
75+
$api_stringify_results = true;
76+
77+
/*
78+
* ... rest of your configuration ...
79+
*/
80+
?>
81+
```
5482
## Need help?
5583

5684
If you’ve found any issues in this release please head over to github and open a bug so we can take a look.

changelogs/changelog.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ releases:
170170
name: folder
171171
namespace: ''
172172
release_date: '2023-09-01'
173+
1.7.1:
174+
changes:
175+
bugfixes:
176+
- Fix \#123 - `app_id` defaults to `ansible` is not defined
177+
fragments:
178+
- app_id_default.yaml
179+
release_date: '2025-04-18'

docs/plugins/address_module.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.. Document meta
32
43
:orphan:
@@ -7,7 +6,7 @@
76
:trim:
87

98
.. meta::
10-
:antsibull-docs: 2.5.0
9+
:antsibull-docs: 2.16.3
1110

1211
.. Anchors
1312
@@ -23,7 +22,7 @@ codeaffen.phpipam.address module -- Manage addresses
2322
.. Collection note
2423
2524
.. note::
26-
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.0).
25+
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.1).
2726

2827
It is not included in ``ansible-core``.
2928
To check whether it is installed, run :code:`ansible-galaxy collection list`.
@@ -348,7 +347,7 @@ Parameters
348347

349348
<div class="ansible-option-cell">
350349

351-
IP address to hanle
350+
IP address to handle
352351

353352

354353
.. raw:: html
@@ -879,7 +878,6 @@ Examples
879878

880879
.. code-block:: yaml+jinja
881880

882-
883881
- name: "Reserve an IP address"
884882
codeaffen.phpipam.address:
885883
username: "admin"
@@ -904,7 +902,6 @@ Examples
904902

905903

906904

907-
908905
.. Facts
909906
910907
@@ -942,4 +939,3 @@ Collection links
942939

943940

944941
.. Parsing errors
945-

docs/plugins/device_module.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.. Document meta
32
43
:orphan:
@@ -7,7 +6,7 @@
76
:trim:
87

98
.. meta::
10-
:antsibull-docs: 2.5.0
9+
:antsibull-docs: 2.16.3
1110

1211
.. Anchors
1312
@@ -23,7 +22,7 @@ codeaffen.phpipam.device module -- Manage devices
2322
.. Collection note
2423
2524
.. note::
26-
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.0).
25+
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.1).
2726

2827
It is not included in ``ansible-core``.
2928
To check whether it is installed, run :code:`ansible-galaxy collection list`.
@@ -294,7 +293,7 @@ Parameters
294293

295294
Rack where the device belongs to.
296295

297-
If set \ :emphasis:`starting\_rack\_unit`\ and \ :emphasis:`rack\_units`\ are also required.
296+
If set :emphasis:`starting\_rack\_unit` and :emphasis:`rack\_units` are also required.
298297

299298

300299
.. raw:: html
@@ -328,9 +327,9 @@ Parameters
328327

329328
<div class="ansible-option-cell">
330329

331-
Size of device in \ :emphasis:`U`\ .
330+
Size of device in :emphasis:`U`.
332331

333-
If set \ :emphasis:`rack`\ and \ :emphasis:`starting\_rack\_unit`\ are also required.
332+
If set :emphasis:`rack` and :emphasis:`starting\_rack\_unit` are also required.
334333

335334

336335
.. raw:: html
@@ -844,7 +843,7 @@ Parameters
844843

845844
Which is the starting rack unit where the device is mounted.
846845

847-
If set \ :emphasis:`rack`\ and \ :emphasis:`racK\_units`\ are also required.
846+
If set :emphasis:`rack` and :emphasis:`racK\_units` are also required.
848847

849848

850849
.. raw:: html
@@ -924,9 +923,9 @@ Parameters
924923

925924
The value has to reflect values from device types configured.
926925

927-
Default device types are \ :emphasis:`Switch`\ , \ :emphasis:`Router`\ , \ :emphasis:`Firewall`\ , \ :emphasis:`Hub`\ , \ :emphasis:`Wireless`\ , \ :emphasis:`Database`\ , \ :emphasis:`Workstation`\ , \ :emphasis:`Laptop`\ and \ :emphasis:`Other`\ .
926+
Default device types are :emphasis:`Switch`\ , :emphasis:`Router`\ , :emphasis:`Firewall`\ , :emphasis:`Hub`\ , :emphasis:`Wireless`\ , :emphasis:`Database`\ , :emphasis:`Workstation`\ , :emphasis:`Laptop` and :emphasis:`Other`.
928927

929-
User defined types can be created either via UI, API (e.g. \ :emphasis:`device\_type`\ ansible module within this collection).
928+
User defined types can be created either via UI, API (e.g. :emphasis:`device\_type` ansible module within this collection).
930929

931930

932931
.. raw:: html
@@ -1026,7 +1025,6 @@ Examples
10261025

10271026
.. code-block:: yaml+jinja
10281027

1029-
10301028
- name: "Create device"
10311029
codeaffen.phpipam.device:
10321030
username: "admin"
@@ -1049,7 +1047,6 @@ Examples
10491047

10501048

10511049

1052-
10531050
.. Facts
10541051
10551052
@@ -1087,4 +1084,3 @@ Collection links
10871084

10881085

10891086
.. Parsing errors
1090-

docs/plugins/device_type_module.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.. Document meta
32
43
:orphan:
@@ -7,7 +6,7 @@
76
:trim:
87

98
.. meta::
10-
:antsibull-docs: 2.5.0
9+
:antsibull-docs: 2.16.3
1110

1211
.. Anchors
1312
@@ -23,7 +22,7 @@ codeaffen.phpipam.device_type module -- Manage device types
2322
.. Collection note
2423
2524
.. note::
26-
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.0).
25+
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.1).
2726

2827
It is not included in ``ansible-core``.
2928
To check whether it is installed, run :code:`ansible-galaxy collection list`.
@@ -400,7 +399,6 @@ Examples
400399

401400
.. code-block:: yaml+jinja
402401

403-
404402
- name: "Create device type"
405403
codeaffen.phpipam.device_type:
406404
username: "admin"
@@ -421,7 +419,6 @@ Examples
421419

422420

423421

424-
425422
.. Facts
426423
427424
@@ -459,4 +456,3 @@ Collection links
459456

460457

461458
.. Parsing errors
462-

docs/plugins/domain_module.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.. Document meta
32
43
:orphan:
@@ -7,7 +6,7 @@
76
:trim:
87

98
.. meta::
10-
:antsibull-docs: 2.5.0
9+
:antsibull-docs: 2.16.3
1110

1211
.. Anchors
1312
@@ -23,7 +22,7 @@ codeaffen.phpipam.domain module -- Manage L2 routing domains
2322
.. Collection note
2423
2524
.. note::
26-
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.0).
25+
This module is part of the `codeaffen.phpipam collection <https://galaxy.ansible.com/ui/repo/published/codeaffen/phpipam/>`_ (version 1.7.1).
2726

2827
It is not included in ``ansible-core``.
2928
To check whether it is installed, run :code:`ansible-galaxy collection list`.
@@ -434,7 +433,6 @@ Examples
434433

435434
.. code-block:: yaml+jinja
436435

437-
438436
- name: "Create domain"
439437
codeaffen.phpipam.domain:
440438
username: "admin"
@@ -456,7 +454,6 @@ Examples
456454

457455

458456

459-
460457
.. Facts
461458
462459
@@ -494,4 +491,3 @@ Collection links
494491

495492

496493
.. Parsing errors
497-

docs/plugins/environment_variables.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
:orphan:
32

43
.. meta::
5-
:antsibull-docs: 2.5.0
4+
:antsibull-docs: 2.16.3
65

76
.. _list_of_collection_env_vars:
87

0 commit comments

Comments
 (0)